wok-next annotate ntl/receipt @ rev 21056
zim: fix build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 03 11:57:12 2018 +0200 (2018-12-03) |
parents | b19ddba309f9 |
children |
rev | line source |
---|---|
al@20481 | 1 # SliTaz package receipt v2. |
al@13723 | 2 |
al@13723 | 3 PACKAGE="ntl" |
al@13723 | 4 VERSION="5.5.2" |
al@13723 | 5 CATEGORY="utilities" |
al@13723 | 6 SHORT_DESC="A Library for doing Number Theory" |
al@13723 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@15584 | 8 LICENSE="GPL" |
al@21020 | 9 WEB_SITE="https://shoup.net/ntl/" |
al@20481 | 10 |
al@13723 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@13723 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
al@13723 | 13 |
al@13723 | 14 BUILD_DEPENDS="gmp-dev gf2x-dev libtool" |
al@13723 | 15 |
al@20481 | 16 compile_rules() { |
al@20481 | 17 case $ARCH in |
al@20481 | 18 x86_64) Arch='nocona';; |
al@20481 | 19 *) Arch="$ARCH";; |
al@20481 | 20 esac |
al@20481 | 21 |
al@13723 | 22 cd $src/src |
al@20481 | 23 ./configure \ |
al@20481 | 24 CFLAGS="-march=$Arch -Os -pipe -fomit-frame-pointer" \ |
al@20481 | 25 DEF_PREFIX=/usr \ |
al@20481 | 26 NTL_STD_CXX=on \ |
al@20481 | 27 NTL_GMP_LIP=on \ |
al@20481 | 28 NTL_GF2X_LIB=on \ |
al@20481 | 29 && |
al@13723 | 30 make && |
al@20481 | 31 sed -i '/^DEF_PREFIX=\/usr$/d' makefile && |
al@13723 | 32 make DEF_PREFIX=$install/usr install |
al@13723 | 33 } |
al@13723 | 34 |
al@20481 | 35 genpkg_rules() { |
al@20519 | 36 copy @dev |
al@13723 | 37 } |