diff options
author | bapt <bapt@FreeBSD.org> | 2017-10-12 04:59:30 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2017-10-12 04:59:30 +0800 |
commit | ed70f7fd5d4b9f91dee98ba4ed3e390bd7ce2da2 (patch) | |
tree | 23a6486e5a2a38c9a5fd9d455e9a1fc8ee655743 /devel | |
parent | c7b692c7d05336677e74377a0d805c49c2288e93 (diff) | |
download | freebsd-ports-gnome-ed70f7fd5d4b9f91dee98ba4ed3e390bd7ce2da2.tar.gz freebsd-ports-gnome-ed70f7fd5d4b9f91dee98ba4ed3e390bd7ce2da2.tar.zst freebsd-ports-gnome-ed70f7fd5d4b9f91dee98ba4ed3e390bd7ce2da2.zip |
Use swig 3.0
Use options helpers
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libftdi/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/devel/libftdi/Makefile b/devel/libftdi/Makefile index 38ea0fd1788f..bfd3668f3756 100644 --- a/devel/libftdi/Makefile +++ b/devel/libftdi/Makefile @@ -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> |