41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
PORTNAME= pika
|
|
DISTVERSION= 0.34.0
|
|
PORTREVISION= 4
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= C++ library for concurrency and parallelism
|
|
WWW= https://github.com/pika-org/pika
|
|
|
|
LICENSE= BSL
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt
|
|
|
|
BUILD_DEPENDS= boost-libs>=0:devel/boost-libs
|
|
LIB_DEPENDS= libfmt.so:devel/libfmt \
|
|
libhwloc.so:devel/hwloc2 \
|
|
libspdlog.so:devel/spdlog
|
|
|
|
USES= cmake:testing compiler:c++17-lang
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= pika-org
|
|
|
|
CMAKE_ON= PIKA_WITH_MALLOC
|
|
CMAKE_ON+= PIKA_WITH_GENERIC_CONTEXT_COROUTINES # prerequisite, build breaks on aarch64, armv6 w/out it
|
|
CMAKE_TESTING_ON= PIKA_WITH_TESTS PIKA_WITH_TESTS_UNIT PIKA_WITH_TESTS_REGRESSIONS # see https://pikacpp.org/usage.html#testing
|
|
CMAKE_TESTING_TARGET= tests # first build the tests, according to https://pikacpp.org/usage.html#testing
|
|
|
|
BINARY_ALIAS= git=false
|
|
|
|
post-install:
|
|
@${RM} -r ${STAGEDIR}${DATADIR} # remove copy of license
|
|
|
|
post-test: # run the tests according to https://pikacpp.org/usage.html#testing (make tests test doesn't work)
|
|
@cd ${BUILD_WRKSRC} && \
|
|
${MAKE_CMD} test
|
|
|
|
# tests as of 0.34.0: 99% tests passed, 1 tests failed out of 530, see https://github.com/pika-org/pika/issues/1437
|
|
|
|
.include <bsd.port.mk>
|