wok-next view ntl/receipt @ rev 21071
Update atkmm, cairo, cmake, db, elfutils, emacs, glib, glib-networking, glibmm, gobject-introspection, libsigc++, meson, openssl, zstd
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 13 00:46:54 2018 +0200 (2018-12-13) |
parents | b19ddba309f9 |
children |
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="https://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 }