mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
84a4428ef7
Changelog: https://github.com/ericniebler/range-v3/releases/tag/0.11.0 Also: * Replace TEST option with 'test' target * Remove EXAMPLES option, add 'build-examples' target instead PR: 255505 Approved by: henry.hu.sh@gmail.com (maintainer)
36 lines
909 B
Makefile
36 lines
909 B
Makefile
PORTNAME= range-v3
|
|
DISTVERSION= 0.11.0
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= henry.hu.sh@gmail.com
|
|
COMMENT= Experimental range library for C++11/14/17
|
|
|
|
LICENSE= BSL
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
USES= cmake compiler:c++11-lang
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= ericniebler
|
|
|
|
CMAKE_OFF= RANGE_V3_TESTS RANGE_V3_EXAMPLES
|
|
|
|
NO_ARCH= yes
|
|
|
|
post-install:
|
|
@${RM} ${STAGEDIR}${PREFIX}/include/module.modulemap
|
|
|
|
do-test:
|
|
@cd ${BUILD_WRKSRC} && \
|
|
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DRANGE_V3_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
|
|
|
|
build-examples: build
|
|
@cd ${BUILD_WRKSRC} && \
|
|
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DRANGE_V3_EXAMPLES:BOOL=ON ${CMAKE_SOURCE_PATH} && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET}
|
|
|
|
|
|
.include <bsd.port.mk>
|