wok view ntl/receipt @ rev 24457
updated gnustep-gui and gnustep-gui-dev (0.27.0 -> 0.29.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 16 09:40:16 2022 +0100 (2022-02-16) |
parents | 86f5a6f059cb |
children | 19e4434dde5f |
line source
1 # SliTaz package receipt.
3 PACKAGE="ntl"
4 VERSION="11.4.3"
5 CATEGORY="utilities"
6 SHORT_DESC="A Library for doing Number Theory."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL"
9 WEB_SITE="https://shoup.net/ntl/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS="gcc83 gcc83-lib-base gf2x-dev glibc-dev gmp-dev libtool perl"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/libntl/ntl/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
29 cd $src/src
30 ./configure \
31 CXX=g++-83 \
32 DEF_PREFIX=/usr \
33 NTL_STD_CXX11=on \
34 NTL_GMP_LIP=on \
35 NTL_GF2X_LIB=on &&
36 make &&
37 sed -i '/^DEF_PREFIX=\/usr$/d' makefile &&
38 make DEF_PREFIX=$install/usr install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $install/* $fs
45 }