summaryrefslogtreecommitdiff
path: root/math/triangle
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-08-05 01:23:35 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-08-05 01:23:35 +0000
commit0ee4dde0d7e1ef08b20d5c693468a8bda19e18f6 (patch)
tree78edddaf983ff8839ec75edff8c57d1d41640b40 /math/triangle
parentmath/triangle: Install the header; build and install the shared library (diff)
math/triangle: Add SONAME to the shared library
Diffstat (limited to 'math/triangle')
-rw-r--r--math/triangle/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/math/triangle/Makefile b/math/triangle/Makefile
index 81ed26a3ff4a..180172c2db05 100644
--- a/math/triangle/Makefile
+++ b/math/triangle/Makefile
@@ -3,7 +3,7 @@
PORTNAME= triangle
PORTVERSION= 1.6
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= math
MASTER_SITES= NL/voronoi
DISTNAME= ${PORTNAME}
@@ -22,15 +22,17 @@ USE_LDCONFIG= yes
PLIST_FILES= bin/${PORTNAME} bin/showme \
include/${PORTNAME}.h \
- lib/lib${PORTNAME}.so
+ lib/lib${PORTNAME}.so \
+ lib/lib${PORTNAME}.so.${PORTVERSION}
post-build:
- @cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -shared -fPIC -o lib${PORTNAME}.so ${PORTNAME}.c
+ @cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -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 ${STAGEDIR}${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/lib${PORTNAME}.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib
+ cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s lib${PORTNAME}.so.${PORTVERSION} lib${PORTNAME}.so
do-test: build
@cd ${INSTALL_WRKSRC} && ./${PORTNAME} -p A.poly && ./showme A.1.poly