35 lines
1007 B
Bash
35 lines
1007 B
Bash
# Template file for 'flintlib'
|
|
pkgname=flintlib
|
|
version=2.8.4
|
|
revision=1
|
|
wrksrc="flint-${version}"
|
|
build_style=configure
|
|
configure_args="--prefix=/usr --with-gmp=/usr --with-mpfr=/usr $(vopt_if ntl --with-ntl=/usr)"
|
|
makedepends="mpfr-devel $(vopt_if ntl ntl-devel)"
|
|
short_desc="Fast Library for Number Theory"
|
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://flintlib.org"
|
|
changelog="https://raw.githubusercontent.com/wbhart/flint2/trunk/NEWS"
|
|
distfiles="https://flintlib.org/flint-${version}.tar.gz"
|
|
checksum=61df92ea8c8e9dc692d46c71d7f50aaa09a33d4ba08d02a1784730a445e5e4be
|
|
|
|
build_options="ntl"
|
|
desc_option_ntl="enable NTL support"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default+=" ntl"
|
|
fi
|
|
|
|
CFLAGS="-D_GNU_SOURCE" # needed for cpu_set_t
|
|
|
|
flintlib-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} mpfr-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|