1 # Contributor: Rémy Oudompheng <oudomphe@clipper.ens.fr>
2 # Maintainer: Rémy Oudompheng <oudomphe@clipper.ens.fr>
3 pkgname=singular-factory
7 pkgdesc="Computer Algebra System for polynomial computations: factory and libfac"
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/Factory/factory-$_majver.tar.gz
14 http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/Libfac/libfac-$_majver.tar.gz
15 fix-parallel-make.patch)
16 md5sums=('3e4f05a1cb6e8ccdd02bc065e50eafbc'
17 '781c77602eb27b9c8261e9851c375e32'
18 'f08b818f3bc87b2be11761835ff236d9')
23 patch -p0 -i $srcdir/fix-parallel-make.patch
25 export CFLAGS="$CFLAGS -fPIC"
26 export CXXFLAGS="$CXXFLAGS -fPIC"
27 export CONFIGURE_FLAGS="--prefix=$usrdir --exec_prefix=$usrdir \
28 --bindir=$usrdir/bin --libdir=$usrdir/lib/singular \
29 --includedir=$usrdir/include/singular"
32 cd "$startdir/src/factory"
33 ./configure $CONFIGURE_FLAGS \
34 --with-NTL --with-gmp=/usr/lib \
35 --without-Singular --without-omalloc
38 ./configure $CONFIGURE_FLAGS \
39 --without-debug --without-Singular