2021-10-04 07:08:15 +00:00
|
|
|
PORTNAME= gds3d
|
2022-07-24 05:40:13 +00:00
|
|
|
DISTVERSION= g20220203
|
2021-10-04 07:08:15 +00:00
|
|
|
CATEGORIES= cad
|
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= Application for rendering IC (chip) layouts in 3D
|
2022-09-07 21:06:12 +00:00
|
|
|
WWW= https://github.com/trilomix/GDS3D
|
2021-10-04 07:08:15 +00:00
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/../LICENSE.txt
|
|
|
|
|
|
|
|
USES= gl gmake localbase:ldflags xorg
|
|
|
|
USE_XORG= x11
|
|
|
|
USE_GL= gl
|
|
|
|
|
2022-07-21 20:24:12 +00:00
|
|
|
.if !exists(/usr/include/omp.h)
|
|
|
|
BROKEN= requires OpenMP support that is missing on this architecture
|
|
|
|
.endif
|
|
|
|
|
2021-10-04 07:08:15 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= trilomix
|
|
|
|
GH_PROJECT= ${PORTNAME:tu}
|
2022-07-24 05:40:13 +00:00
|
|
|
GH_TAGNAME= 173da0c
|
2021-10-04 07:08:15 +00:00
|
|
|
|
|
|
|
WRKSRC_SUBDIR= linux
|
|
|
|
|
|
|
|
MAKE_ARGS= CC=${CXX}
|
|
|
|
|
|
|
|
PLIST_FILES= bin/${PORTNAME:tu}
|
|
|
|
|
2021-11-16 12:03:45 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == powerpc
|
|
|
|
USE_GCC= yes
|
|
|
|
.endif
|
|
|
|
|
2021-10-04 07:08:15 +00:00
|
|
|
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>
|