wok-current annotate ntl/receipt @ rev 25156
updated ptxdist (2020.03.0 -> 2020.12.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 30 15:51:09 2022 +0100 (2022-06-30) |
parents | ad8b9ff412d2 |
children |
rev | line source |
---|---|
al@13723 | 1 # SliTaz package receipt. |
al@13723 | 2 |
al@13723 | 3 PACKAGE="ntl" |
Hans-G?nter@25005 | 4 VERSION="11.5.1" |
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" |
Hans-G?nter@25005 | 8 LICENSE="LGPLv2.1+" |
Hans-G?nter@25005 | 9 WEB_SITE="https://libntl.org/" |
Hans-G?nter@23253 | 10 |
al@13723 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@13723 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
Hans-G?nter@25005 | 13 WGET_URL="https://github.com/libntl/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz" |
al@13723 | 14 |
al@13723 | 15 DEPENDS="" |
Hans-G?nter@25005 | 16 BUILD_DEPENDS="gcc83 gf2x-dev glibc-dev gmp-dev libtool perl" |
al@13723 | 17 |
pascal@24433 | 18 # What is the latest version available today? |
pascal@24433 | 19 current_version() |
pascal@24433 | 20 { |
pascal@24433 | 21 wget -O - https://github.com/libntl/ntl/releases 2>/dev/null | \ |
pascal@24433 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24433 | 23 } |
pascal@24433 | 24 |
al@13723 | 25 # Rules to configure and make the package. |
al@13723 | 26 compile_rules() |
al@13723 | 27 { |
Hans-G?nter@23253 | 28 export CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer" |
Hans-G?nter@23253 | 29 |
Hans-G?nter@25005 | 30 cd src |
Hans-G?nter@23253 | 31 ./configure \ |
Hans-G?nter@23253 | 32 CXX=g++-83 \ |
Hans-G?nter@23253 | 33 DEF_PREFIX=/usr \ |
Hans-G?nter@23253 | 34 NTL_STD_CXX11=on \ |
Hans-G?nter@23253 | 35 NTL_GMP_LIP=on \ |
Hans-G?nter@23253 | 36 NTL_GF2X_LIB=on && |
al@13723 | 37 make && |
Hans-G?nter@25005 | 38 sed -i '/^DEF_PREFIX=\/usr$/d' makefile |
Hans-G?nter@25005 | 39 make install DEF_PREFIX=$install/usr |
al@13723 | 40 } |
al@13723 | 41 |
al@13723 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13723 | 43 genpkg_rules() |
al@13723 | 44 { |
Hans-G?nter@23253 | 45 cp -a $install/* $fs |
al@13723 | 46 } |