wok-next view gnutls/receipt @ rev 20453

Undo openssl split
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 16:28:07 2018 +0200 (2018-02-28)
parents 0e7893ac206d
children d3444352a0af
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gnutls"
4 VERSION="3.5.9"
5 CATEGORY="security"
6 SHORT_DESC="GNU Transport Layer Security Library"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://gnutls.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="ftp://ftp.gnutls.org/gcrypt/gnutls/v${VERSION%.*}/$TARBALL"
13 TARBALL_MD5="0ab25eb6a1509345dd085bc21a387951"
15 BUILD_DEPENDS_arm="libtasn1-dev ncurses-dev readline-dev nettle-dev \
16 libgpg-error-dev libgcrypt-dev openssl-dev gmp-dev lzip"
17 BUILD_DEPENDS="nettle-dev libtasn1-dev libunistring-dev gettext openssl-dev \
18 libidn-dev unbound-dev p11-kit-dev"
19 SPLIT="libgnutls gnutls-dev"
21 compile_rules() {
22 # Handle cross compilation.
23 case "$ARCH" in
24 arm*)
25 ARCH_ARGS="--with-libgcrypt-prefix=/cross/$ARCH/sysroot/usr \
26 --without-p11-kit --disable-rpath --with-libgcrypt --disable-guile \
27 --with-zlib" ;;
28 esac
30 ./configure \
31 --enable-openssl-compatibility \
32 --with-default-trust-store-file="/etc/ssl/ca-bundle.crt" \
33 $CONFIGURE_ARGS ${ARCH_ARGS} &&
34 make && make install &&
35 make -C doc/reference install-data-local
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 gnutls)
41 copy bin/
42 DEPENDS="cacerts gmp libffi libgnutls libidn libtasn1 libunistring \
43 nettle p11-kit zlib"
44 DEPENDS_arm="nettle libgpg-error ncurses readline zlib \
45 gcc-lib-base libgnutls openssl libtasn1"
46 case $ARCH in
47 arm*) DEPENDS=$DEPENDS_arm;;
48 esac
49 ;;
50 libgnutls)
51 copy *.so*
52 CAT="security|shared libraries"
53 DEPENDS="cacerts gmp libidn libtasn1 libunistring nettle p11-kit \
54 unbound zlib"
55 ;;
56 *-dev)
57 copy @dev
58 DEPENDS="gnutls libgnutls gmp-dev openssl-dev libffi-dev \
59 libidn-dev libtasn1-dev libunistring-dev nettle-dev p11-kit-dev \
60 unbound-dev zlib-dev"
61 ;;
62 esac
63 }