wok-6.x rev 15978
libgcrypt: add to ARM arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 28 22:12:49 2014 +0100 (2014-02-28) |
parents | 686a95229a90 |
children | 7e8a95a52792 |
files | libgcrypt-dev/receipt libgcrypt/receipt |
line diff
1.1 --- a/libgcrypt-dev/receipt Fri Feb 28 21:53:45 2014 +0100 1.2 +++ b/libgcrypt-dev/receipt Fri Feb 28 22:12:49 2014 +0100 1.3 @@ -8,6 +8,7 @@ 1.4 LICENSE="GPL2 LGPL2.1" 1.5 WANTED="libgcrypt" 1.6 WEB_SITE="http://www.gnupg.org/" 1.7 +HOST_ARCH="i486 arm" 1.8 1.9 DEPENDS="libgcrypt libgpg-error-dev" 1.10
2.1 --- a/libgcrypt/receipt Fri Feb 28 21:53:45 2014 +0100 2.2 +++ b/libgcrypt/receipt Fri Feb 28 22:12:49 2014 +0100 2.3 @@ -9,7 +9,7 @@ 2.4 TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.5 WEB_SITE="http://www.gnupg.org/" 2.6 WGET_URL="ftp://ftp.gnupg.org/gcrypt/libgcrypt/$TARBALL" 2.7 -CROSS="bug" 2.8 +HOST_ARCH="i486 arm" 2.9 2.10 DEPENDS="libgpg-error" 2.11 BUILD_DEPENDS="libgpg-error-dev" 2.12 @@ -17,11 +17,18 @@ 2.13 # Rules to configure and make the package. 2.14 compile_rules() 2.15 { 2.16 - cd $src 2.17 - export LDFLAGS="-Wl,--copy-dt-needed-entries -lgpg-error" 2.18 - ./configure \ 2.19 - --build=$HOST_SYSTEM \ 2.20 - --host=$HOST_SYSTEM && 2.21 + case "$ARCH" in 2.22 + arm) 2.23 + #LIBS="-L/cross/arm/sysroot/usr/lib -lgpg-error" 2.24 + ./configure \ 2.25 + --build=i486-slitaz-linux \ 2.26 + --host=arm-slitaz-linux-gnueabi ;; 2.27 + *) 2.28 + export LDFLAGS="-Wl,--copy-dt-needed-entries -lgpg-error" 2.29 + ./configure \ 2.30 + --build=$HOST_SYSTEM \ 2.31 + --host=$HOST_SYSTEM ;; 2.32 + esac && 2.33 make && make install 2.34 } 2.35 2.36 @@ -30,5 +37,6 @@ 2.37 { 2.38 mkdir -p $fs/usr/bin $fs/usr/lib 2.39 cp -a $install/usr/bin/dumpsexp $fs/usr/bin 2.40 + cp -a $install/usr/bin/hmac256 $fs/usr/bin 2.41 cp -a $install/usr/lib/*.so* $fs/usr/lib 2.42 }