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