freebsd-ports/devel/xtl-quant-stack/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

32 lines
856 B
Makefile

# $FreeBSD$
PORTNAME= xtl
DISTVERSION= 0.5.2
CATEGORIES= devel
PKGNAMESUFFIX= -quant-stack
MAINTAINER= yuri@FreeBSD.org
COMMENT= Template library that supports other quantstack projects
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json
RUN_DEPENDS= nlohmann-json>0:devel/nlohmann-json
TEST_DEPENDS= nlohmann-json>0:devel/nlohmann-json \
googletest>0:devel/googletest
USES= cmake
USE_GITHUB= yes
GH_ACCOUNT= QuantStack
NO_BUILD= yes
NO_ARCH= yes
do-test: # tests fail to build: https://github.com/QuantStack/xtl/issues/106
@cd ${WRKSRC}/test && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -Dxtl_DIR:STRING=${STAGEDIR}${PREFIX}/lib/cmake/xtl && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} xtest
.include <bsd.port.mk>