1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

Switch from swig 2.0 to swig 3.0

This commit is contained in:
Baptiste Daroussin 2017-12-20 19:34:11 +00:00
parent 0a89159f7a
commit 2e9911f602
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=456845
13 changed files with 30 additions and 20 deletions

View File

@ -38,12 +38,12 @@ IMOBILE_CONFIGURE_WITH= libimobiledevice
MONO_USE= GNOME=gtksharp20
MONO_CONFIGURE_WITH= mono
PYTHON_BUILD_DEPENDS= swig2.0:devel/swig20 \
PYTHON_BUILD_DEPENDS= swig3.0:devel/swig30 \
${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen
PYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen
PYTHON_USE= GNOME=pygobject
PYTHON_USES= python:2.7
PYTHON_CONFIGURE_ENV= SWIG="${LOCALBASE}/bin/swig2.0"
PYTHON_CONFIGURE_ENV= SWIG="${LOCALBASE}/bin/swig3.0"
PYTHON_CONFIGURE_WITH= python
PORTDOCS= ChangeLog NEWS README*

View File

@ -26,16 +26,18 @@ OPTIONS_DEFINE= EXAMPLES PYTHON RUBY
OPTIONS_SUB= yes
PLIST_SUB+= PORTVERSION=${PORTVERSION}
PYTHON_BUILD_DEPENDS= swig2.0:devel/swig20
PYTHON_BUILD_DEPENDS= swig3.0:devel/swig30
PYTHON_USES= python:2.7
PYTHON_CMAKE_ON= -DWITH_PYTHON:BOOL=ON \
-DPYTHON_INCLUDE_DIR:STRING="${PYTHON_INCLUDEDIR}" \
-DPYTHON_LIBRARY:STRING="${PYTHONBASE}/lib/lib${PYTHON_VERSION}.so" \
-DPYTHON_EXECUTABLE:STRING="${PYTHON_CMD}"
PYTHON_BINARY_ALIAS= swig=swig3.0
RUBY_BUILD_DEPENDS= swig2.0:devel/swig20
RUBY_BUILD_DEPENDS= swig3.0:devel/swig30
RUBY_USE= ruby=yes
RUBY_CMAKE_ON= -DWITH_RUBY:BOOL=ON
RUBY_BINARY_ALIAS= swig=swig3.0
post-patch:
@${REINPLACE_CMD} -e \

View File

@ -2,7 +2,7 @@
PORTNAME= gnuradio
PORTVERSION= 3.7.10.1
PORTREVISION= 8
PORTREVISION= 9
CATEGORIES= comms astro hamradio
MASTER_SITES= http://gnuradio.org/releases/gnuradio/ \
LOCAL/db
@ -13,7 +13,7 @@ COMMENT= Amateur Radio Software defined radio
LICENSE= GPLv3
BUILD_DEPENDS= sdl-config:devel/sdl12 \
swig2.0:devel/swig20 \
swig3.0:devel/swig30 \
cheetah:devel/py-cheetah@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
xdg-open:devel/xdg-utils \
@ -47,7 +47,7 @@ USES= cmake:outsource compiler:c11 iconv perl5 pkgconfig pyqt:4 python:2.7 sheb
SHEBANG_FILES= grc/scripts/freedesktop/grc_setup_freedesktop.in \
gnuradio-runtime/python/gnuradio/ctrlport/gr-ctrlport-monitor \
gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
CMAKE_ARGS+= -DSWIG_EXECUTABLE:STRING="${LOCALBASE}/bin/swig2.0"\
CMAKE_ARGS+= -DSWIG_EXECUTABLE:STRING="${LOCALBASE}/bin/swig3.0"\
-DICONV_PREFIX:STRING="${ICONV_PREFIX}" \
-DICONV_LIB:STRING="X${ICONV_LIB}" \
-DENABLE_GR_CTRLPORT="YES" \

View File

@ -100,8 +100,8 @@ PLIST_SUB+= OWNETPYTHON="@comment "
# If Perl, Python or PHP is requested, enable SWIG
.if ${PORT_OPTIONS:MOWPERL} || ${PORT_OPTIONS:MOWPYTHON} || ${PORT_OPTIONS:MOWPHP}
BUILD_DEPENDS+= ${LOCALBASE}/bin/swig2.0:devel/swig20
CONFIGURE_ARGS+= --enable-swig SWIG=${LOCALBASE}/bin/swig2.0
BUILD_DEPENDS+= swig3.0:devel/swig30
CONFIGURE_ARGS+= --enable-swig SWIG=${LOCALBASE}/bin/swig3.0
.else
CONFIGURE_ARGS+= --disable-swig
.endif

View File

@ -44,7 +44,8 @@ CMAKE_ARGS+= -DEXAMPLES:BOOL=false
.if ${PORT_OPTIONS:MPYTHON}
USES+= python:2
CMAKE_ARGS+= -DPYTHON_BINDINGS:BOOL=true
BUILD_DEPENDS+= swig2.0:devel/swig20
BUILD_DEPENDS+= swig3.0:devel/swig30
BINARY_ALIAS= swig=swig3.0
.else
CMAKE_ARGS+= -DPYTHON_BINDINGS:BOOL=false
.endif

View File

@ -3,6 +3,7 @@
PORTNAME= instant
PORTVERSION= ${MMVERSION}.0
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= https://launchpad.net/${PORTNAME}/${MMVERSION}.x/${PORTVERSION}/+download/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -12,7 +13,7 @@ COMMENT= Python module for instant inlining of C and C++ code in Python
LICENSE= LGPL3
RUN_DEPENDS= swig2.0:devel/swig20
RUN_DEPENDS= swig3.0:devel/swig30
USES= python:2
USE_PYTHON= distutils

View File

@ -66,8 +66,9 @@ INSTALL_TARGET= install-pyldns
CONFIGURE_ARGS+=--with-pyldns
LIB_DEPENDS+= libldns.so:dns/ldns
BUILD_DEPENDS+= swig2.0:devel/swig20
BUILD_DEPENDS+= swig3.0:devel/swig30
CFLAGS+= -I${OPENSSLINC}
BINARY_ALIAS= swig=swig3.0
post-patch:
@${REINPLACE_CMD} \

View File

@ -8,7 +8,7 @@ CATEGORIES= emulators
MAINTAINER= vg@FreeBSD.org
COMMENT= gem5 Simulator System
BUILD_DEPENDS= swig2.0:devel/swig20 \
BUILD_DEPENDS= swig3.0:devel/swig30 \
scons:devel/scons
BROKEN_armv6= fails to link: undefined reference to HDLcd::BUS_OPTIONS_RESETV
@ -21,7 +21,7 @@ DATE= 20140422
USE_GITHUB= yes
GH_ACCOUNT= CTSRD-CHERI
GH_TAGNAME= 99d65cc
SWIG_BIN= swig2.0
SWIG_BIN= swig3.0
USES= gmake
.include <bsd.port.pre.mk>

View File

@ -49,7 +49,8 @@ AUTOPANOSIFTC_RUN_DEPENDS= autopano:graphics/autopano-sift-c
PYTHON_DESC= Python Scripting Interface
PYTHON_USES= python:2.7
PYTHON_BUILD_DEPENDS= swig2.0:devel/swig20
PYTHON_BUILD_DEPENDS= swig3.0:devel/swig30
PYTHON_BINARY_ALIAS= swig=swig3.0
PYTHON_CMAKE_ON= -DBUILD_HSI=ON
PYTHON_CMAKE_OFF= -DBUILD_HSI=OFF

View File

@ -44,7 +44,8 @@ WCS_DESC= WCS Server support
.if ${PORT_OPTIONS:MPYTHON}
USES+= python:2
BUILD_DEPENDS+= swig2.0:devel/swig20
BUILD_DEPENDS+= swig3.0:devel/swig30
BINARY_ALIAS= swig=swig3.0
CMAKE_ARGS+= -DWITH_PYTHON=yes
PLIST_SUB+= PYTHON=""
MAP_EGG= MapScript-${PORTVERSION}-${PYTHON_VERSION:S/thon//}
@ -137,9 +138,10 @@ PLIST_SUB+= PHP="@comment "
.if ${PORT_OPTIONS:MPERL}
USES+= perl5
BUILD_DEPENDS= ${LOCALBASE}/bin/swig2.0:devel/swig20
BUILD_DEPENDS= swig3.0:devel/swig30
CMAKE_ARGS+= -DWITH_PERL=1
PLIST_SUB+= PERL=""
BINARY_ALIAS= swig=swig3.0
.else
CMAKE_ARGS+= -DWITH_PERL=0
PLIST_SUB+= PERL="@comment "

View File

@ -14,7 +14,7 @@ LICENSE= GPLv2 # (or later)
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= boost-libs>=1.35:devel/boost-libs \
swig2.0:devel/swig20 \
swig3.0:devel/swig30 \
gnuplot:math/gnuplot
RUN_DEPENDS= gnuplot:math/gnuplot
@ -32,6 +32,7 @@ WX_CONF_ARGS= absolute
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
BINARY_ALIAS= swig=swig3.0
CFLAGS+= -D_GNU_SOURCE
CPPFLAGS+= -I${WRKDIR}/xylib-1.4 \

View File

@ -10,7 +10,7 @@ MASTER_SITES= http://launchpad.net/${PORTNAME}/${MMVERSION}.x/${PORTVERSION}/+do
MAINTAINER= bacon4000@gmail.com
COMMENT= Unified framework for finite element assembly
BUILD_DEPENDS= swig2.0:devel/swig20
BUILD_DEPENDS= swig3.0:devel/swig30
LIB_DEPENDS= libboost_math_c99.so:devel/boost-libs
# LICENSE= public domain

View File

@ -82,7 +82,8 @@ CMAKE_ARGS+= -DJAVA_LIBDIR:PATH=${JAVALIBDIR}
.endif
.if defined(WITH_SWIG)
BUILD_DEPENDS+= swig2.0:devel/swig20
BUILD_DEPENDS+= swig3.0:devel/swig30
BINARY_ALIAS= swig=swig3.0
.endif
post-patch: