1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/devel/docopt.cpp/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

29 lines
674 B
Makefile

# $FreeBSD$
PORTNAME= docopt.cpp
DISTVERSION= 0.6.2-6
PORTREVISION= 1
DISTVERSIONSUFFIX= -g7476f8e
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++11 options parser based on help messages
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE-MIT
TEST_DEPENDS= python${PYTHON_DEFAULT}:lang/python${PYTHON_DEFAULT:S/.//}
USES= cmake compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= docopt
USE_LDCONFIG= yes
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DWITH_TESTS=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
python${PYTHON_DEFAULT} run_tests
.include <bsd.port.mk>