2019-08-07 20:51:16 +10:00
|
|
|
# Description: A tool to create language bindings
|
2019-08-07 07:13:34 -04:00
|
|
|
# URL: http://www.swig.org/
|
|
|
|
# Maintainer: John Vogel, jvogel4 at stny dot rr dot com
|
|
|
|
# Packager: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: zlib libpcre
|
2019-08-07 20:51:16 +10:00
|
|
|
|
|
|
|
name=swig
|
2020-06-28 12:26:47 -04:00
|
|
|
version=4.0.2
|
2019-08-07 20:51:16 +10:00
|
|
|
release=1
|
2019-08-31 22:46:53 -04:00
|
|
|
source=(https://sourceforge.net/projects/$name/files/$name/$name-$version/$name-$version.tar.gz)
|
2019-08-07 20:51:16 +10:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--with-swiglibdir=/usr/share/$name/${version%.*}
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
# keep versioned dir for compatibility
|
|
|
|
ln -sf ${version%.*} $PKG/usr/share/$name/$version
|
|
|
|
}
|