From owner-svn-ports-all@freebsd.org Thu Oct 13 19:49:04 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B772C101B1; Thu, 13 Oct 2016 19:49:04 +0000 (UTC) (envelope-from martymac@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EE8D2EDF; Thu, 13 Oct 2016 19:49:03 +0000 (UTC) (envelope-from martymac@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9DJn3WZ097209; Thu, 13 Oct 2016 19:49:03 GMT (envelope-from martymac@FreeBSD.org) Received: (from martymac@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9DJn2Dt097206; Thu, 13 Oct 2016 19:49:02 GMT (envelope-from martymac@FreeBSD.org) Message-Id: <201610131949.u9DJn2Dt097206@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: martymac set sender to martymac@FreeBSD.org using -f From: Ganael LAPLANCHE Date: Thu, 13 Oct 2016 19:49:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r423934 - in head/devel/tbb: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 19:49:04 -0000 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 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