aboutsummaryrefslogtreecommitdiffstats
path: root/devel/tbb/Makefile
blob: 7d2e5bb7c109303271ad70ab310119ebb71cd2fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# New ports collection makefile for:    tbb
# Date created:             30 Sept 2007
# Whom:                 Arun Sharma <arun@sharma-home.net>
#
# $FreeBSD$
#

PORTNAME=   tbb
PORTVERSION=    3.0
CATEGORIES= devel
MASTER_SITES=   http://www.threadingbuildingblocks.org/uploads/78/154/3.0/
DISTNAME=   tbb30_018oss_src
EXTRACT_SUFX=   .tgz

MAINTAINER= ganael.laplanche@martymac.org
COMMENT=    A library that provides thread building blocks

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
MAKE_ENV=   CPLUS=${CXX}

WRKSRC= ${WRKDIR}/tbb30_018oss

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.3; \
    ${LN} -fs ${PREFIX}/lib/libtbb.so.3 ${PREFIX}/lib/libtbb.so; \
    ${INSTALL_DATA} build/FreeBSD*release/libtbbmalloc.so \
        ${PREFIX}/lib/libtbbmalloc.so.3; \
    ${LN} -fs ${PREFIX}/lib/libtbbmalloc.so.3 ${PREFIX}/lib/libtbbmalloc.so; \
    ${MKDIR} ${PREFIX}/include/tbb/; \
    cd include/tbb/ && ${COPYTREE_SHARE} \* ${PREFIX}/include/tbb/

.include <bsd.port.mk>