1 # Contributor: Rémy Oudompheng <oudomphe@clipper.ens.fr>
2 # Maintainer: Rémy Oudompheng <oudomphe@clipper.ens.fr>
7 pkgdesc="Computer Algebra System for polynomial computations"
9 url="http://www.singular.uni-kl.de/"
11 depends=('gmp' 'ncurses' 'readline' 'ntl')
13 source=(http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/src/$_majver/Singular-$_majver-1.tar.gz
14 fix-parallel-make.patch
16 md5sums=('648794a3961d6b9a080a0b43f03d61f4'
17 '82d25dda8ca3369474d0b755349a55a1'
18 '5fbe5f6c07b470594bb142bada090ece')
21 cd "$startdir/src/Singular-$_majver"
22 usrdir=$pkgdir/opt/singular
23 patch -p1 <../fix-parallel-make.patch || return 1
24 patch -p1 <../fixes.patch || return 1
26 export CFLAGS="$CFLAGS -fPIC"
27 export CXXFLAGS="$CXXFLAGS -fPIC"
29 cd "$startdir/src/Singular-$_majver"
30 ./configure --cache-file=config.cache --prefix=$usrdir \
31 --bindir=$usrdir/bin --libdir=$usrdir/lib \
32 --includedir=$usrdir/include \
33 --with-apint=gmp --with-gmp=/usr/lib \
35 --disable-NTL --with-NTL --without-MP || return 1
36 make install || return 1
37 make install-libsingular || return 1
39 md5sums=('648794a3961d6b9a080a0b43f03d61f4'
40 '43febd78f4753b0db578c24602d8e34b'
41 '5fbe5f6c07b470594bb142bada090ece')