forked from Lainports/freebsd-ports
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= partio
|
|
PORTVERSION= 1.10.1
|
|
PORTREVISION= 1
|
|
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 compiler:c++11-lang gl python:2.7 shebangfix
|
|
SHEBANG_FILES= src/tools/partedit.py src/tools/partinspect.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 EXAMPLES
|
|
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= *
|
|
PORTEXAMPLES= *
|
|
|
|
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
|
|
|
|
# Remove those files that don't yet work
|
|
post-install:
|
|
${RM} ${STAGEDIR}${PREFIX}/bin/partedit ${STAGEDIR}${PREFIX}/bin/partinspect
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/src/doc && ${INSTALL_DATA} tutorial.txt partio.tex ${STAGEDIR}${DOCSDIR}
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
cd ${WRKSRC}/src/data && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|