aboutsummaryrefslogtreecommitdiffstats
path: root/devel/tbb/Makefile
blob: 8ceebf0e095f0a3e60ac13c0ffde869cf1da92b7 (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
45
46
47
48
49
50
51
52
53
54
# Created by: Arun Sharma <arun@sharma-home.net>
# $FreeBSD$

PORTNAME=   tbb
PORTVERSION=    4.1.3
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   http://threadingbuildingblocks.org/sites/default/files/software_releases/source/ \
        LOCAL/martymac
DISTNAME=   tbb41_20130314oss_src
EXTRACT_SUFX=   .tgz

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

LICENSE=    GPLv2

ONLY_FOR_ARCHS= amd64 i386 ia64
ONLY_FOR_ARCHS_REASON=  has not been ported to this platform

USE_LDCONFIG=   yes
USES=   gmake
ALL_TARGET= default

WRKSRC= ${WRKDIR}/tbb41_20130314oss

post-extract:
.if ${CC} != "gcc"
    @${CP} ${WRKSRC}/build/FreeBSD.gcc.inc ${WRKSRC}/build/FreeBSD.${CC}.inc
.endif
    @${CP} ${FILESDIR}/version_info_FreeBSD.sh ${WRKSRC}/build/

post-patch:
    @${REINPLACE_CMD} -e 's|gcc|${CC}|g' -e 's|g++|${CXX}|g' \
        ${WRKSRC}/build/FreeBSD.${CC}.inc

do-install:
    cd ${WRKSRC}; \
    ${INSTALL_DATA} build/FreeBSD*release/libtbb.so \
        ${STAGEDIR}${PREFIX}/lib/libtbb.so.4; \
    ${LN} -sf ${PREFIX}/lib/libtbb.so.4 \
        ${STAGEDIR}${PREFIX}/lib/libtbb.so; \
    ${INSTALL_DATA} build/FreeBSD*release/libtbbmalloc.so \
        ${STAGEDIR}${PREFIX}/lib/libtbbmalloc.so.4; \
    ${LN} -sf ${PREFIX}/lib/libtbbmalloc.so.4 \
        ${STAGEDIR}${PREFIX}/lib/libtbbmalloc.so; \
    ${MKDIR} ${STAGEDIR}${PREFIX}/include/tbb/; \
    cd include/tbb/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/tbb/

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtbb.so.4
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtbbmalloc.so.4

.include <bsd.port.mk>