svn commit: r364645 - head/devel/libftdi
Tijl Coosemans
tijl at FreeBSD.org
Mon Aug 11 19:35:47 UTC 2014
Author: tijl
Date: Mon Aug 11 19:35:46 2014
New Revision: 364645
URL: http://svnweb.freebsd.org/changeset/ports/364645
QAT: https://qat.redports.org/buildarchive/r364645/
Log:
- Don't build example programs that aren't installed
(examples/CMakeLists.txt also contains an error (include should be
include_directories on line 5) [1])
- Remove DOCS option
- Fix PYTHON option when it is disabled
Reported by: Mike Harding <mvharding at gmail.com> [1]
Modified:
head/devel/libftdi/Makefile
Modified: head/devel/libftdi/Makefile
==============================================================================
--- head/devel/libftdi/Makefile Mon Aug 11 19:26:46 2014 (r364644)
+++ head/devel/libftdi/Makefile Mon Aug 11 19:35:46 2014 (r364645)
@@ -15,11 +15,11 @@ LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING.GP
LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING.LIB
USES= cmake pkgconfig
-CMAKE_ARGS= -DDOCUMENTATION:BOOL=OFF
+CMAKE_ARGS= -DDOCUMENTATION:BOOL=OFF -DEXAMPLES:BOOL=OFF
USE_LDCONFIG= yes
-OPTIONS_DEFINE= BOOST DOCS PYTHON
-OPTIONS_DEFAULT=BOOST DOCS PYTHON
+OPTIONS_DEFINE= BOOST PYTHON
+OPTIONS_DEFAULT=BOOST PYTHON
OPTIONS_SUB= yes
BOOST_DESC= C++ bindings (requires Boost)
@@ -34,6 +34,8 @@ PYTHON_CMAKE_ON= -DPYTHON_BINDINGS:BOOL=
PYTHON_CMAKE_OFF= -DPYTHON_BINDINGS:BOOL=OFF
PYTHON_USES= python
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} \
-e '/SET.*LIB_SUFFIX/s/64/""/' \
@@ -43,8 +45,10 @@ post-patch:
${WRKSRC}/bindings/CMakeLists.txt
post-install:
+.if ${PORT_OPTIONS:MPYTHON}
${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