wok-next view ntl/receipt @ rev 20545

vmtouch: create $install/usr/bin path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 03 15:08:22 2018 +0200 (2018-04-03)
parents b278b2018965
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ntl"
4 VERSION="5.5.2"
5 CATEGORY="utilities"
6 SHORT_DESC="A Library for doing Number Theory"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL"
9 WEB_SITE="http://shoup.net/ntl/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 BUILD_DEPENDS="gmp-dev gf2x-dev libtool"
16 compile_rules() {
17 case $ARCH in
18 x86_64) Arch='nocona';;
19 *) Arch="$ARCH";;
20 esac
22 cd $src/src
23 ./configure \
24 CFLAGS="-march=$Arch -Os -pipe -fomit-frame-pointer" \
25 DEF_PREFIX=/usr \
26 NTL_STD_CXX=on \
27 NTL_GMP_LIP=on \
28 NTL_GF2X_LIB=on \
29 &&
30 make &&
31 sed -i '/^DEF_PREFIX=\/usr$/d' makefile &&
32 make DEF_PREFIX=$install/usr install
33 }
35 genpkg_rules() {
36 copy @dev
37 }