aboutsummaryrefslogtreecommitdiff
path: root/math/triangle
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-08-05 05:10:50 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-08-05 05:10:50 +0000
commit010edb9819fa83a8efba77334a99c455f50d7263 (patch)
treed0cfefdef0fc529b9c1ed95bebd544606e566e8c /math/triangle
parent49d85b6eb736f84809ccc6ae8d9308aafd13f4a9 (diff)
Notes
Diffstat (limited to 'math/triangle')
-rw-r--r--math/triangle/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/math/triangle/Makefile b/math/triangle/Makefile
index 180172c2db05..706aa3809e13 100644
--- a/math/triangle/Makefile
+++ b/math/triangle/Makefile
@@ -3,7 +3,7 @@
PORTNAME= triangle
PORTVERSION= 1.6
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= math
MASTER_SITES= NL/voronoi
DISTNAME= ${PORTNAME}
@@ -26,13 +26,14 @@ PLIST_FILES= bin/${PORTNAME} bin/showme \
lib/lib${PORTNAME}.so.${PORTVERSION}
post-build:
- @cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -shared -fPIC -Wl,-soname,lib${PORTNAME}.so.${PORTVERSION} -o lib${PORTNAME}.so.${PORTVERSION} ${PORTNAME}.c
+ @cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -DTRILIBRARY -shared -fPIC -Wl,-soname,lib${PORTNAME}.so.${PORTVERSION} -o lib${PORTNAME}.so.${PORTVERSION} ${PORTNAME}.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${WRKSRC}/showme ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/lib${PORTNAME}.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib
cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s lib${PORTNAME}.so.${PORTVERSION} lib${PORTNAME}.so
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.${PORTVERSION}
do-test: build
@cd ${INSTALL_WRKSRC} && ./${PORTNAME} -p A.poly && ./showme A.1.poly