wok-next view ntl/receipt @ rev 18728

Up tazpkg(892)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 19 13:51:08 2015 +0200 (2015-12-19)
parents 4e805e1b2e7b
children b278b2018965
line source
1 # SliTaz package receipt.
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/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS="gmp-dev gf2x-dev libtool"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src/src
20 ./configure CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer" \
21 DEF_PREFIX=/usr NTL_STD_CXX=on NTL_GMP_LIP=on NTL_GF2X_LIB=on &&
22 make &&
23 sed -i '/^DEF_PREFIX=\/usr$/d' makefile
24 make DEF_PREFIX=$install/usr install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 cp -a $install/* $fs
31 }