2016-03-03 11:21:30 +01:00
|
|
|
# Created by: Tobias Kortkamp <t@tobik.me>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libconcurrent
|
2017-12-14 18:28:54 +01:00
|
|
|
PORTVERSION= 0.0.20160629
|
2016-03-03 11:21:30 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
2017-02-15 13:28:29 +01:00
|
|
|
MAINTAINER= tobik@FreeBSD.org
|
2016-03-03 11:21:30 +01:00
|
|
|
COMMENT= Tiny asymmetric-coroutine library
|
|
|
|
|
|
|
|
LICENSE= ZLIB
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2017-12-14 18:28:54 +01:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS= nasm:devel/nasm
|
2016-03-03 11:21:30 +01:00
|
|
|
|
2017-12-14 18:28:54 +01:00
|
|
|
USES= gmake compiler:c11
|
2016-03-03 11:21:30 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= sharow
|
|
|
|
# Rolling release
|
2017-12-14 18:28:54 +01:00
|
|
|
GH_TAGNAME= d84e7374c89be147ed7c0ba0fe844dad7f7ebb3e
|
2016-03-03 11:21:30 +01:00
|
|
|
|
|
|
|
MAKEFILE= makefile
|
|
|
|
MAKE_ARGS= LIBCONCURRENT_DESTDIR=${STAGEDIR}${PREFIX}
|
2017-12-14 18:28:54 +01:00
|
|
|
TEST_TARGET= test
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
2016-03-03 11:21:30 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
# libconcurrent's makefile resets ${ARCH} internally and the ports
|
|
|
|
# system interferes with that for some reason, so replace it with a
|
2017-12-14 18:28:54 +01:00
|
|
|
# more neutral variant. Same with ${DESTDIR}.
|
|
|
|
@${REINPLACE_CMD} -e 's/ARCH/LIBCONCURRENT_ARCH/g' \
|
|
|
|
-e 's/DESTDIR/LIBCONCURRENT_DESTDIR/g' \
|
|
|
|
${WRKSRC}/makefile
|
2016-03-03 11:21:30 +01:00
|
|
|
|
|
|
|
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>
|