mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
ff5ae1981c
ld: error: unable to find library -lomp
43 lines
882 B
Makefile
43 lines
882 B
Makefile
PORTNAME= gds3d
|
|
DISTVERSION= g20210503
|
|
CATEGORIES= cad
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Application for rendering IC (chip) layouts in 3D
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/../LICENSE.txt
|
|
|
|
USES= gl gmake localbase:ldflags xorg
|
|
USE_XORG= x11
|
|
USE_GL= gl
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= trilomix
|
|
GH_PROJECT= ${PORTNAME:tu}
|
|
GH_TAGNAME= bcdb97a
|
|
|
|
WRKSRC_SUBDIR= linux
|
|
|
|
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
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME:tu} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
do-test:
|
|
@cd ${WRKSRC}/.. && \
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME:tu} -a assembly/as_example.assembly
|
|
|
|
.include <bsd.port.mk>
|