svn commit: r355264 - head/science/libkml
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun May 25 18:47:55 UTC 2014
Author: sunpoet
Date: Sun May 25 18:47:55 2014
New Revision: 355264
URL: http://svnweb.freebsd.org/changeset/ports/355264
QAT: https://qat.redports.org/buildarchive/r355264/
Log:
- Add SWIG option
PR: ports/172660
Submitted by: Rainer Hurling <rhurlin at gwdg.de>
Modified:
head/science/libkml/Makefile
Modified: head/science/libkml/Makefile
==============================================================================
--- head/science/libkml/Makefile Sun May 25 18:45:00 2014 (r355263)
+++ head/science/libkml/Makefile Sun May 25 18:47:55 2014 (r355264)
@@ -15,13 +15,18 @@ LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${LOCALBASE}/bin/curl-config:${PORTSDIR}/ftp/curl \
${LOCALBASE}/include/expat.h:${PORTSDIR}/textproc/expat2
-CONFIGURE_ARGS= --disable-java --disable-python --disable-swig \
+OPTIONS_DEFINE= SWIG
+
+CONFIGURE_ARGS= --disable-java --disable-python \
--with-expat-include-dir=${LOCALBASE}/include \
--with-expat-lib-dir=${LOCALBASE}/lib
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USES= gmake libtool
+SWIG_BUILD_DEPENDS= ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13
+SWIG_CONFIGURE_OFF= --disable-swig
+
post-patch:
@${REINPLACE_CMD} -e '/SWIG_VERSION:4/ s|:4|#*.*.|' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name Makefile.in -exec ${REINPLACE_CMD} 's|-Werror||; s| -ansi -pedantic||' '{}' \;
More information about the svn-ports-all
mailing list