Date: Thu, 13 Oct 2016 19:49:02 +0000 (UTC) From: Ganael LAPLANCHE <martymac@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r423934 - in head/devel/tbb: . files Message-ID: <201610131949.u9DJn2Dt097206@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: martymac Date: Thu Oct 13 19:49:02 2016 New Revision: 423934 URL: https://svnweb.freebsd.org/changeset/ports/423934 Log: - Add pkgconfig file [1] - Do not use absolute paths for shlibs links PR: 213373 [1] Submitted by: rozhuk.im@gmail.com [1] MFH: 2016Q4 Added: head/devel/tbb/files/tbb.pc.in (contents, props changed) Modified: head/devel/tbb/Makefile head/devel/tbb/pkg-plist Modified: head/devel/tbb/Makefile ============================================================================== --- head/devel/tbb/Makefile Thu Oct 13 19:37:17 2016 (r423933) +++ head/devel/tbb/Makefile Thu Oct 13 19:49:02 2016 (r423934) @@ -3,6 +3,7 @@ PORTNAME= tbb PORTVERSION= 4.4.2 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://threadingbuildingblocks.org/sites/default/files/software_releases/source/ \ LOCAL/martymac @@ -13,6 +14,12 @@ COMMENT= Library that provides thread bu LICENSE= GPLv2 +SUB_FILES= tbb.pc +SUB_LIST= prefix="${PREFIX}" \ + name="${PORTNAME}" \ + description="${COMMENT}" \ + version="${PORTVERSION}" + OPTIONS_DEFINE= DOCS PORTDOCS= * @@ -45,15 +52,18 @@ do-install: cd ${WRKSRC}; \ ${INSTALL_LIB} build/FreeBSD*release/libtbb.so \ ${STAGEDIR}${PREFIX}/lib/libtbb.so.4; \ - ${LN} -sf ${PREFIX}/lib/libtbb.so.4 \ + ${LN} -sf libtbb.so.4 \ ${STAGEDIR}${PREFIX}/lib/libtbb.so; \ ${INSTALL_LIB} build/FreeBSD*release/libtbbmalloc.so \ ${STAGEDIR}${PREFIX}/lib/libtbbmalloc.so.4; \ - ${LN} -sf ${PREFIX}/lib/libtbbmalloc.so.4 \ + ${LN} -sf libtbbmalloc.so.4 \ ${STAGEDIR}${PREFIX}/lib/libtbbmalloc.so; \ ${MKDIR} ${STAGEDIR}${PREFIX}/include/tbb/; \ cd include/tbb/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/tbb/ ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} +post-install: + ${INSTALL_DATA} ${WRKDIR}/tbb.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig + .include <bsd.port.post.mk> Added: head/devel/tbb/files/tbb.pc.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/tbb/files/tbb.pc.in Thu Oct 13 19:49:02 2016 (r423934) @@ -0,0 +1,10 @@ +prefix=%%prefix%% +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: %%name%% +Description: %%description%% +Version: %%version%% +Libs: -L${libdir} -ltbb +Cflags: -I${includedir} Modified: head/devel/tbb/pkg-plist ============================================================================== --- head/devel/tbb/pkg-plist Thu Oct 13 19:37:17 2016 (r423933) +++ head/devel/tbb/pkg-plist Thu Oct 13 19:49:02 2016 (r423934) @@ -103,3 +103,4 @@ lib/libtbb.so lib/libtbb.so.4 lib/libtbbmalloc.so lib/libtbbmalloc.so.4 +libdata/pkgconfig/tbb.pc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610131949.u9DJn2Dt097206>