freebsd-ports/graphics/partio/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

53 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= partio
PORTVERSION= 1.5.5
DISTVERSIONPREFIX= v
CATEGORIES= graphics math
MAINTAINER= ports@FreeBSD.org
COMMENT= C++ library for manipulating animation particle formats
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= swig3.0:devel/swig30
USES= cmake gl python shebangfix
SHEBANG_FILES= src/tools/partedit.py src/tools/partjson.py
USE_GL= gl glu glut
USE_LDCONFIG= yes
USE_XORG= xi xmu
USE_GITHUB= yes
GH_ACCOUNT= wdas
OPTIONS_DEFINE= DOCS DOXYGEN
OPTIONS_DEFAULT= DOCS
# DOCS must be selected for PORTDOCS to work
DOXYGEN_IMPLIES= DOCS
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_ALL_TARGET= all doc
DOCS_BUILD_DEPENDS= doxygen:devel/doxygen
BINARY_ALIAS= swig=swig3.0
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's|python -c|${PYTHON_CMD} -c|' \
${WRKSRC}/src/py/CMakeLists.txt \
${WRKSRC}/src/tools/CMakeLists.txt
@${REINPLACE_CMD} -e '/install(TARGETS/d' \
${WRKSRC}/src/tests/CMakeLists.txt
post-patch-DOCS-off:
@${REINPLACE_CMD} -e '/ADD_SUBDIRECTORY.*src\/doc.*/d' \
${WRKSRC}/CMakeLists.txt
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/src/doc && ${INSTALL_DATA} tutorial.txt partio.tex ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>