32 lines
926 B
Bash
32 lines
926 B
Bash
# Template file for 'zn_poly'
|
|
pkgname=zn_poly
|
|
version=0.9.2
|
|
revision=1
|
|
build_style=configure
|
|
configure_args="--prefix=\$(DESTDIR)/usr"
|
|
hostmakedepends="python3"
|
|
makedepends="gmp-devel"
|
|
short_desc="Library for polynomial arithmetic in Z/nZ[x], for unsigned long n"
|
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|
license="GPL-2.0-only, GPL-3.0-only"
|
|
homepage="https://gitlab.com/sagemath/zn_poly"
|
|
distfiles="https://gitlab.com/sagemath/zn_poly/-/archive/${version}/zn_poly-${version}.tar.bz2"
|
|
checksum=29d88ce19939f53e920adf118d8cd6c8c9594bc8cb71a992a6137bd86f6fb7f5
|
|
|
|
CFLAGS=-fPIC
|
|
|
|
build_options="native_build"
|
|
|
|
if [ -z "$build_option_native_build" ]; then
|
|
configure_args+=" --disable-tuning"
|
|
fi
|
|
|
|
post_extract() {
|
|
cp -v ${FILESDIR}/tuning-${XBPS_WORDSIZE}.c tune/tuning.c
|
|
}
|
|
|
|
do_configure() {
|
|
./configure ${configure_args} \
|
|
--cflags="$CFLAGS" --ldflags="$LDFLAGS" \
|
|
--cppflags="$CPPFLAGS" --cxxflags="$CXXFLAGS"
|
|
}
|