2021-02-17 20:50:19 +11:00
|
|
|
# Description: A tool to create language bindings
|
2022-11-13 13:20:35 +00:00
|
|
|
# URL: https://www.swig.org/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2024-01-10 21:30:50 +01:00
|
|
|
# Depends on: libpcre zlib
|
2021-02-17 20:50:19 +11:00
|
|
|
|
|
|
|
name=swig
|
2024-02-26 00:36:51 +01:00
|
|
|
version=4.2.1
|
2021-02-17 20:50:19 +11:00
|
|
|
release=1
|
|
|
|
source=(https://sourceforge.net/projects/$name/files/$name/$name-$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build () {
|
2024-01-10 21:30:50 +01:00
|
|
|
cd $name-$version
|
2021-02-17 20:50:19 +11:00
|
|
|
|
2024-01-10 21:30:50 +01:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--with-swiglibdir=/usr/share/$name/${version%.*}
|
2021-02-17 20:50:19 +11:00
|
|
|
|
2024-01-10 21:30:50 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2021-02-17 20:50:19 +11:00
|
|
|
|
2024-01-10 21:30:50 +01:00
|
|
|
# keep versioned dir for compatibility
|
|
|
|
ln -sf ${version%.*} $PKG/usr/share/$name/$version
|
2021-02-17 20:50:19 +11:00
|
|
|
}
|