cad/gds3d: fix build on powerpc

ld: error: unable to find library -lomp
This commit is contained in:
Piotr Kubaj 2021-11-16 12:03:45 +00:00
parent 38b2862d44
commit ff5ae1981c

View file

@ -23,6 +23,12 @@ MAKE_ARGS= CC=${CXX}
PLIST_FILES= bin/${PORTNAME:tu}
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc
USE_GCC= yes
.endif
post-patch: # workaround for https://github.com/trilomix/GDS3D/issues/14
@${REINPLACE_CMD} -e 's|Index = NULL;|Index = 0;|' ${WRKSRC}/../libgdsto3d/gdspolygon.cpp