diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2009-04-29 07:35:00 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2009-04-29 07:35:00 +0000 |
commit | 8147e7ec57ba4c9eca80dd308a52c2ca0e54bf43 (patch) | |
tree | 926fc893052abc34d7db03a6209f4c2d1c0a01e6 /devel/tbb | |
parent | 205e6c58e991a2a5c65a0e3867223bfeca0436f5 (diff) | |
download | ports-8147e7ec57ba4c9eca80dd308a52c2ca0e54bf43.tar.gz ports-8147e7ec57ba4c9eca80dd308a52c2ca0e54bf43.zip |
Update devel/tbb to version 2.1 (20080605).
Changes to the port :
- Includes a script to generate version info string for freeBSD
- Use ${COPYTREE_SHARE} to install headers
- Use ${PTHREAD_LIBS} instead of -lpthread
PR: ports/129686
Submitted by: Ganael Laplanche
Approved by: maintainer timeout
Notes
Notes:
svn path=/head/; revision=232940
Diffstat (limited to 'devel/tbb')
-rw-r--r-- | devel/tbb/Makefile | 22 | ||||
-rw-r--r-- | devel/tbb/distinfo | 6 | ||||
-rw-r--r-- | devel/tbb/files/patch-build-FreeBSD.inc | 11 | ||||
-rw-r--r-- | devel/tbb/files/version_info_FreeBSD.sh | 15 | ||||
-rw-r--r-- | devel/tbb/pkg-plist | 4 |
5 files changed, 47 insertions, 11 deletions
diff --git a/devel/tbb/Makefile b/devel/tbb/Makefile index c7a8faf8ee87..8d97c8d4b2e0 100644 --- a/devel/tbb/Makefile +++ b/devel/tbb/Makefile @@ -6,30 +6,36 @@ # PORTNAME= tbb -PORTVERSION= 2.0 +PORTVERSION= 2.1 CATEGORIES= devel -MASTER_SITES= http://threadingbuildingblocks.org/uploads/76/95/2.0/ -DISTNAME= tbb20_20080207oss_src +MASTER_SITES= http://www.threadingbuildingblocks.org/uploads/77/111/2.1/ +DISTNAME= tbb21_20080605oss_src +EXTRACT_SUFX= .tgz MAINTAINER= arun@FreeBSD.org COMMENT= A library that provides thread building blocks -PATCH_STRIP= -p1 - ONLY_FOR_ARCHS= amd64 i386 ia64 ONLY_FOR_ARCHS_REASON= has not been ported to this platform USE_LDCONFIG= yes USE_GMAKE= yes ALL_TARGET= default +WRKSRC= ${WRKDIR}/tbb21_20080605oss + +post-extract: + @${CP} ${FILESDIR}/version_info_FreeBSD.sh ${WRKSRC}/build/ + +post-patch: + @${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/build/FreeBSD.gcc.inc + do-install: cd ${WRKSRC}; \ ${INSTALL_DATA} build/FreeBSD*release/libtbb.so \ ${PREFIX}/lib/libtbb.so; \ ${INSTALL_DATA} build/FreeBSD*release/libtbbmalloc.so \ ${PREFIX}/lib/libtbbmalloc.so; \ - ${MKDIR} ${PREFIX}/include/tbb/machine; \ - ${FIND} include -type f -name '*.h' -exec \ - ${INSTALL_DATA} \{\} ${PREFIX}/\{\} \; + ${MKDIR} ${PREFIX}/include/tbb/; \ + cd include/tbb/ && ${COPYTREE_SHARE} \* ${PREFIX}/include/tbb/ .include <bsd.port.mk> diff --git a/devel/tbb/distinfo b/devel/tbb/distinfo index 0bbaf50608b8..424f92d6f370 100644 --- a/devel/tbb/distinfo +++ b/devel/tbb/distinfo @@ -1,3 +1,3 @@ -MD5 (tbb20_20080207oss_src.tar.gz) = c5109c27f54ba758550561feea9e255d -SHA256 (tbb20_20080207oss_src.tar.gz) = b2a7f3e3f44f4a2461c78aca9e92591f5158f5304b114c5a6cd4b4b395fc9b75 -SIZE (tbb20_20080207oss_src.tar.gz) = 830100 +MD5 (tbb21_20080605oss_src.tgz) = 6accb7e86dff355cd8cfbc9de1225c8d +SHA256 (tbb21_20080605oss_src.tgz) = c326c9f718d3fe45bd678e6cee4bafbf5194b1483e0f5697993060e4b6586927 +SIZE (tbb21_20080605oss_src.tgz) = 1107680 diff --git a/devel/tbb/files/patch-build-FreeBSD.inc b/devel/tbb/files/patch-build-FreeBSD.inc new file mode 100644 index 000000000000..3f078337ccc1 --- /dev/null +++ b/devel/tbb/files/patch-build-FreeBSD.inc @@ -0,0 +1,11 @@ +--- build/FreeBSD.inc.orig 2008-06-07 08:56:22.000000000 +0200 ++++ build/FreeBSD.inc 2008-12-16 09:32:21.710673762 +0100 +@@ -54,7 +54,7 @@ + MD?=mkdir -p + NUL= /dev/null + SLASH=/ +-MAKE_VERSIONS=sh $(tbb_root)/build/version_info_linux.sh $(CPLUS) $(CPLUS_FLAGS) $(INCLUDES) >version_string.tmp ++MAKE_VERSIONS=sh $(tbb_root)/build/version_info_FreeBSD.sh $(CPLUS) $(CPLUS_FLAGS) $(INCLUDES) >version_string.tmp + MAKE_TBBVARS=sh $(tbb_root)/build/generate_tbbvars.sh + + ifdef LD_LIBRARY_PATH diff --git a/devel/tbb/files/version_info_FreeBSD.sh b/devel/tbb/files/version_info_FreeBSD.sh new file mode 100644 index 000000000000..c0be567dd263 --- /dev/null +++ b/devel/tbb/files/version_info_FreeBSD.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# Script used to generate version info string +echo "#define __TBB_VERSION_STRINGS \\" +echo '"TBB:' "BUILD_HOST\t\t"`hostname -s`" ("`uname -p`")"'" ENDL \' +echo '"TBB:' "BUILD_OS\t\t"`uname -sr`'" ENDL \' +echo '"TBB:' "BUILD_KERNEL\t"`uname -rv`'" ENDL \' +echo '"TBB:' "BUILD_GCC\t\t"`g++ -v </dev/null 2>&1 | grep 'gcc.*version'`'" ENDL \' +[ -z "$COMPILER_VERSION" ] || echo '"TBB:' "BUILD_COMPILER\t"$COMPILER_VERSION'" ENDL \' +echo '"TBB:' "BUILD_GLIBC\t"`ldconfig -r | grep -oE '/lib/libc.so.[0-9]+' | sort -rn | head -n 1 | sed 's|/lib/libc\.so\.||'`'" ENDL \' +echo '"TBB:' "BUILD_LD\t\t"`ld -v | grep 'version'`'" ENDL \' +echo '"TBB:' "BUILD_TARGET\t$arch on $runtime"'" ENDL \' +echo '"TBB:' "BUILD_COMMAND\t"$*'" ENDL \' +echo "" +echo "#define __TBB_DATETIME \""`date -u`"\"" diff --git a/devel/tbb/pkg-plist b/devel/tbb/pkg-plist index d7a4543f6499..b45db464c259 100644 --- a/devel/tbb/pkg-plist +++ b/devel/tbb/pkg-plist @@ -36,7 +36,11 @@ include/tbb/tbb_stddef.h include/tbb/tick_count.h include/tbb/_tbb_windef.h include/tbb/partitioner.h +include/tbb/task_scheduler_observer.h +include/tbb/tbb_allocator.h +include/tbb/tbb_exception.h include/tbb/tbb_machine.h +include/tbb/tbb_thread.h lib/libtbb.so lib/libtbbmalloc.so @dirrm include/tbb/machine |