Date: Sun, 5 Aug 2018 05:10:50 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r476389 - head/math/triangle Message-ID: <201808050510.w755AoGU073178@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Sun Aug 5 05:10:50 2018 New Revision: 476389 URL: https://svnweb.freebsd.org/changeset/ports/476389 Log: math/triangle: Add -DTRILIBRARY for the shared library build, otherwise some symbols aren't defined; Add shared library stripping Modified: head/math/triangle/Makefile Modified: head/math/triangle/Makefile ============================================================================== --- head/math/triangle/Makefile Sun Aug 5 04:16:28 2018 (r476388) +++ head/math/triangle/Makefile Sun Aug 5 05:10:50 2018 (r476389) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808050510.w755AoGU073178>