1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/textproc/castxml/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

63 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= castxml
PORTVERSION= g20181115
CATEGORIES= textproc devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= C-family Abstract Syntax Tree XML Output
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= clang${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
RUN_DEPENDS= clang${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
TEST_DEPENDS= ${LOCALBASE}/lib/libxml2.so:textproc/libxml2
USES= cmake
USE_GITHUB= yes
GH_ACCOUNT= CastXML
GH_PROJECT= CastXML
GH_TAGNAME= c3a239d
CMAKE_ARGS= -DLLVM_DIR:STRING=${LOCALBASE}/llvm${LLVM_VERSION}/lib/cmake/llvm
OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT= DOCS LLVM_${LLVM_DEFAULT}
OPTIONS_SUB= yes
LLVM_DESC= LLVM Version
OPTIONS_SINGLE= LLVM
OPTIONS_SINGLE_LLVM= LLVM_DEVEL LLVM_70 LLVM_60 LLVM_50 LLVM_40
LLVM_DEVEL_DESC= llvm-devel
LLVM_DEVEL_VARS= LLVM_VERSION=-devel
LLVM_70_DESC= LLVM 7
LLVM_70_VARS= LLVM_VERSION=70
LLVM_60_DESC= LLVM 6
LLVM_60_VARS= LLVM_VERSION=60
LLVM_50_DESC= LLVM 5
LLVM_50_VARS= LLVM_VERSION=50
LLVM_40_DESC= LLVM 4
LLVM_40_VARS= LLVM_VERSION=40
DOCS_CMAKE_BOOL= SPHINX_MAN
DOCS_CMAKE_ON= -DSPHINX_EXECUTABLE=${LOCALBASE}/bin/sphinx-build
DOCS_BUILD_DEPENDS= ${LOCALBASE}/bin/sphinx-build:textproc/py-sphinx
post-stage: # autoplist: plist changes with llvm versions
@cd ${STAGEDIR}${PREFIX} && \
${FIND} * -type f -or -type l | ${SED} 's|castxml\.1|castxml.1.gz|' > ${TMPPLIST}
do-test: # tests fail: https://github.com/CastXML/CastXML/issues/130
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>