ports/devel/libconcurrent/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

50 lines
1.3 KiB
Makefile

# Created by: Tobias Kortkamp <t@tobik.me>
# $FreeBSD$
PORTNAME= libconcurrent
PORTVERSION= 0.0.20160629
PORTREVISION= 3
CATEGORIES= devel
MAINTAINER= tobik@FreeBSD.org
COMMENT= Tiny asymmetric-coroutine library
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64 i386
BUILD_DEPENDS= nasm:devel/nasm
USES= gmake compiler:c11
USE_GITHUB= yes
GH_ACCOUNT= sharow
# Rolling release
GH_TAGNAME= d84e7374c89be147ed7c0ba0fe844dad7f7ebb3e
MAKEFILE= makefile
MAKE_ARGS= LIBCONCURRENT_DESTDIR=${STAGEDIR}${PREFIX}
TEST_TARGET= test
OPTIONS_DEFINE= EXAMPLES
post-patch:
# libconcurrent's makefile resets ${ARCH} internally and the ports
# system interferes with that for some reason, so replace it with a
# more neutral variant. Same with ${DESTDIR}.
@${REINPLACE_CMD} -e 's/ARCH/LIBCONCURRENT_ARCH/g' \
-e 's/DESTDIR/LIBCONCURRENT_DESTDIR/g' \
${WRKSRC}/makefile
post-patch-EXAMPLES-on:
# Fix examples makefile to work out-of-tree
@${REINPLACE_CMD} 's|INCDIR+=-I../include|INCDIR+=-I${PREFIX}/include|g' \
${WRKSRC}/examples/makefile
@${REINPLACE_CMD} 's|-L../|-L${PREFIX}/lib|g' \
${WRKSRC}/examples/makefile
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>