void-packages/srcpkgs/ntl/template

36 lines
987 B
Bash
Raw Normal View History

2018-01-30 14:02:38 +00:00
# Template file for 'ntl'
pkgname=ntl
version=11.5.1
revision=1
build_wrksrc="src"
build_style=configure
hostmakedepends="perl libtool"
makedepends="gmp-devel gf2x-devel"
short_desc="Library for doing Number Theory"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="LGPL-2.1-or-later"
homepage="https://libntl.org"
distfiles="https://libntl.org/ntl-${version}.tar.gz"
checksum=210d06c31306cbc6eaf6814453c56c776d9d8e8df36d74eb306f6a523d1c6a8a
nocross=yes # runs binaries built for target
build_options="native_build"
do_configure() {
# see http://www.shoup.net/ntl/doc/tour-unix.html
./configure CXX="$CXX" CXXFLAGS="$CXXFLAGS" LIBTOOL="libtool" \
PREFIX="/usr" SHARED="on" NTL_GF2X_LIB="on" \
NATIVE="$(vopt_if native_build 'on' 'off')"
}
ntl-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share
}
}