svn commit: r451796 - head/graphics/partio
Baptiste Daroussin
bapt at FreeBSD.org
Wed Oct 11 20:46:29 UTC 2017
Author: bapt
Date: Wed Oct 11 20:46:27 2017
New Revision: 451796
URL: https://svnweb.freebsd.org/changeset/ports/451796
Log:
Use swig3.0 instead of swig 1.3
While here, use options helpers
Modified:
head/graphics/partio/Makefile
Modified: head/graphics/partio/Makefile
==============================================================================
--- head/graphics/partio/Makefile Wed Oct 11 20:45:32 2017 (r451795)
+++ head/graphics/partio/Makefile Wed Oct 11 20:46:27 2017 (r451796)
@@ -23,30 +23,27 @@ OPTIONS_DEFAULT= PYTHON
DOCS_BUILD_DEPENDS= doxygen:devel/doxygen
PYTHON_USES= python:2.7+
-PYTHON_BUILD_DEPENDS= swig:devel/swig13
+PYTHON_BUILD_DEPENDS= swig3.0:devel/swig30
+BINARY_ALIAS= swig=swig3.0
PORTDOCS= *
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|python -c|${PYTHON_CMD} -c|; \
s|lib64/python$${PYTHON_VERSION}/site-packages|${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}|' \
${WRKSRC}/src/py/CMakeLists.txt
@${REINPLACE_CMD} -e '/install(TARGETS/d' \
${WRKSRC}/src/tests/CMakeLists.txt
-.if !${PORT_OPTIONS:MPYTHON}
+
+post-patch-PYTHON-off:
@${REINPLACE_CMD} -e '/ADD_SUBDIRECTORY.*src\/py.*/d' \
${WRKSRC}/CMakeLists.txt
-.endif
-.if !${PORT_OPTIONS:MDOCS}
+
+post-patch-DOCS-off:
@${REINPLACE_CMD} -e '/ADD_SUBDIRECTORY.*src\/doc.*/d' \
${WRKSRC}/CMakeLists.txt
-.endif
-.if ${PORT_OPTIONS:MDOCS}
-post-build:
+post-build-DOCS-on:
@(cd ${BUILD_WRKSRC}; ${MAKE_CMD} doc)
-.endif
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list