svn commit: r451798 - head/devel/libftdi
Baptiste Daroussin
bapt at FreeBSD.org
Wed Oct 11 20:59:31 UTC 2017
Author: bapt
Date: Wed Oct 11 20:59:30 2017
New Revision: 451798
URL: https://svnweb.freebsd.org/changeset/ports/451798
Log:
Use swig 3.0
Use options helpers
Modified:
head/devel/libftdi/Makefile
Modified: head/devel/libftdi/Makefile
==============================================================================
--- head/devel/libftdi/Makefile Wed Oct 11 20:49:31 2017 (r451797)
+++ head/devel/libftdi/Makefile Wed Oct 11 20:59:30 2017 (r451798)
@@ -28,11 +28,11 @@ BOOST_CMAKE_BOOL= FTDIPP
BOOST_CXXFLAGS= -I${LOCALBASE}/include
PYTHON_DESC= Python bindings
-PYTHON_BUILD_DEPENDS= swig2.0:devel/swig20
+PYTHON_BUILD_DEPENDS= swig3.0:devel/swig30
PYTHON_CMAKE_BOOL= PYTHON_BINDINGS
PYTHON_USES= python
-.include <bsd.port.options.mk>
+BINARY_ALIAS= swig=swig3.0
post-patch:
@${REINPLACE_CMD} \
@@ -43,11 +43,9 @@ post-patch:
@${REINPLACE_CMD} 's|SITEPACKAGE.*ABSOLUTE|SITEPACKAGE ${PYTHON_SITELIBDIR} ABSOLUTE|' \
${WRKSRC}/bindings/CMakeLists.txt
-post-install:
-.if ${PORT_OPTIONS:MPYTHON}
+post-install-PYTHON-on:
${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_ftdi.so
-.endif
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list