wok-current annotate nettle/receipt @ rev 25586
Fix linux build with gcc > 6 again
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon May 29 12:23:26 2023 +0000 (19 months ago) |
parents | b2d550a4aebd |
children | 5926178cd6fa |
rev | line source |
---|---|
devl547@11265 | 1 # SliTaz package receipt. |
devl547@11265 | 2 |
devl547@11265 | 3 PACKAGE="nettle" |
shann@24986 | 4 VERSION="3.7.3" |
slaxemulator@13005 | 5 CATEGORY="security" |
Hans-G?nter@21539 | 6 SHORT_DESC="A cryptographic library that is designed to fit easily in more or less any context." |
devl547@11265 | 7 MAINTAINER="devl547@gmail.com" |
pascal@15584 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@21539 | 9 WEB_SITE="https://www.lysator.liu.se/~nisse/nettle/" |
Hans-G?nter@21539 | 10 |
slaxemulator@13005 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23236 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@13005 | 13 |
shann@25582 | 14 DEPENDS="gcc-lib-base gmp" |
shann@25582 | 15 BUILD_DEPENDS="gcc gmp-dev" |
Hans-G?nter@21539 | 16 |
Hans-G?nter@21539 | 17 HOST_ARCH="i486 arm" |
pankso@16257 | 18 |
pascal@16253 | 19 # Handle cross compilation. |
pascal@16253 | 20 case "$ARCH" in |
pankso@16257 | 21 arm) |
pankso@16257 | 22 ARCH_ARGS="--enable-arm-neon" ;; |
pascal@16253 | 23 esac |
devl547@11265 | 24 |
pascal@24071 | 25 current_version() |
pascal@24071 | 26 { |
pascal@24071 | 27 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24071 | 28 sed "/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24071 | 29 } |
pascal@24071 | 30 |
devl547@11265 | 31 # Rules to configure and make the package. |
devl547@11265 | 32 compile_rules() |
devl547@11265 | 33 { |
Hans-G?nter@21539 | 34 ./configure \ |
shann@25582 | 35 CC=gcc \ |
shann@25582 | 36 CXX=g++ \ |
Hans-G?nter@21539 | 37 --libdir=/usr/lib \ |
Hans-G?nter@21539 | 38 --enable-shared \ |
Hans-G?nter@23236 | 39 $CONFIGURE_ARGS \ |
Hans-G?nter@23236 | 40 ${ARCH_ARGS} && |
Hans-G?nter@21539 | 41 make && |
Hans-G?nter@21539 | 42 make install |
devl547@11265 | 43 } |
devl547@11265 | 44 |
devl547@11265 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@11265 | 46 genpkg_rules() |
devl547@11265 | 47 { |
Hans-G?nter@24966 | 48 cook_copy_folders bin |
Hans-G?nter@24966 | 49 cook_copy_files *.so* |
devl547@11265 | 50 } |