PKGNAME=polymake
PKGSEC=math
PKGDEP="cddlib flint gmp lrs normaliz openjdk perl-json \
        perl-term-readline-gnu perl-xml-libxml perl-xml-libxslt \
        perl-xml-writer ppl singular"
BUILDDEP="apache-ant bliss-graphs boost"
PKGDES="Tool to aid research on polyhedral geometry"

AB_FLAGS_O3=1

# Note:
#
#    --with-libcxx	build against the libc++ library instead of the GNU libstdc++, useful when
#			building with LLVM/Clang. (sets -stdlib=libc++, -lc++ and -lc++abi)
#			see also --with-toolchain when using a custom LLVM installation
#
#  --without-native	build without "-march=native" flag to allow execution on different CPU types
#			(passing one of -m{cpu,arch,tune} via CFLAGS or CXXFLAGS also disables "-march=native")
AUTOTOOLS_AFTER=(
    '--with-bliss=/usr'
    '--with-cdd=/usr'
    '--with-flint=/usr'
    '--with-lrs=/usr'
    '--with-libnormaliz=/usr'
    '--with-singular=/usr'
    '--without-libcxx'
    '--with-callable'
    '--with-prereq'
    '--with-openmp'
    '--without-native'
)

# Note: Not a genuine GNU Autotools source.
ABTYPE=self
