1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-01 10:59:55 +00:00
freebsd-ports/devel/tbb/Makefile
Ganael LAPLANCHE 06b736848d Update devel/tbb to 2020.1
No dependency bump required since the ABI should remain compatible.

Changelog: https://github.com/intel/tbb/blob/tbb_2020/CHANGES
2020-01-24 19:20:30 +00:00

79 lines
1.9 KiB
Makefile

# Created by: Arun Sharma <arun@sharma-home.net>
# $FreeBSD$
PORTNAME= tbb
PORTVERSION= 2020.1
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= martymac@FreeBSD.org
COMMENT= Library that provides thread building blocks
LICENSE= APACHE20
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64
ONLY_FOR_ARCHS_REASON= has not been ported to this platform
USES= compiler gmake tar:tgz
USE_GITHUB= yes
GH_ACCOUNT= intel
SUB_FILES= tbb.pc
SUB_LIST= prefix="${PREFIX}" \
name="${PORTNAME}" \
description="${COMMENT}" \
version="${PORTVERSION}"
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \
dot:graphics/graphviz
USE_LDCONFIG= yes
ALL_TARGET= default
CC_BASENAME= ${CC:C,^.*/,,}
.include <bsd.port.pre.mk>
post-extract:
.if ${CC_BASENAME} != ${COMPILER_TYPE}
@${LN} -sf FreeBSD.${COMPILER_TYPE}.inc ${WRKSRC}/build/FreeBSD.${CC_BASENAME}.inc
.endif
@${CP} ${FILESDIR}/version_info_FreeBSD.sh ${WRKSRC}/build/
post-patch:
@${REINPLACE_CMD} \
-e '/^CONLY =/s|^CONLY =.*|CONLY = ${CC}|' \
-e '/^CPLUS =/s|^CPLUS =.*|CPLUS = ${CXX}|' \
${WRKSRC}/build/FreeBSD.${COMPILER_TYPE}.inc
post-build-DOCS-on:
cd ${WRKSRC}; \
${MAKE_CMD} doxygen
do-install:
cd ${WRKSRC}; \
${INSTALL_LIB} build/FreeBSD*release/libtbb.so \
${STAGEDIR}${PREFIX}/lib/libtbb.so.2; \
${LN} -sf libtbb.so.2 \
${STAGEDIR}${PREFIX}/lib/libtbb.so; \
${INSTALL_LIB} build/FreeBSD*release/libtbbmalloc.so \
${STAGEDIR}${PREFIX}/lib/libtbbmalloc.so.2; \
${LN} -sf libtbbmalloc.so.2 \
${STAGEDIR}${PREFIX}/lib/libtbbmalloc.so; \
${MKDIR} ${STAGEDIR}${PREFIX}/include/tbb/; \
cd include/tbb/ && \
${COPYTREE_SHARE} \
. ${STAGEDIR}${PREFIX}/include/tbb/ "! -name *\.html"
post-install:
${INSTALL_DATA} ${WRKDIR}/tbb.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/html && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>