diff --git a/packages/security/libgcrypt/build b/packages/security/libgcrypt/build new file mode 100755 index 0000000000..0bb655afcf --- /dev/null +++ b/packages/security/libgcrypt/build @@ -0,0 +1,21 @@ +#!/bin/sh + +. config/options $1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --enable-shared \ + --disable-asm \ + --with-gnu-ld + +make +$MAKEINSTALL + +sed -e "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" -i src/libgcrypt-config + +cp src/libgcrypt-config $ROOT/$TOOLCHAIN/bin diff --git a/packages/security/libgcrypt/install b/packages/security/libgcrypt/install new file mode 100755 index 0000000000..6508276a1e --- /dev/null +++ b/packages/security/libgcrypt/install @@ -0,0 +1,6 @@ +#!/bin/sh + +. config/options $1 + +mkdir -p $INSTALL/usr/lib + cp -P $PKG_BUILD/src/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/security/libgcrypt/meta b/packages/security/libgcrypt/meta new file mode 100644 index 0000000000..7a4c23ec73 --- /dev/null +++ b/packages/security/libgcrypt/meta @@ -0,0 +1,16 @@ +PKG_NAME="libgcrypt" +PKG_VERSION="1.4.6" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.gnupg.org/" +PKG_URL="ftp://ftp.gnupg.org/gcrypt/libgcrypt/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="libgpg-error" +PKG_BUILD_DEPENDS="toolchain libgpg-error" +PKG_PRIORITY="optional" +PKG_SECTION="security" +PKG_SHORTDESC="libgcrypt: General purpose cryptographic library" +PKG_LONGDESC="Libgcrypt is a general purpose cryptographic library based on the code from GnuPG. It provides functions for all cryptographic building blocks: symmetric ciphers, hash algorithms, MACs, public key algorithms, large integer functions, random numbers and a lot of supporting functions." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes" diff --git a/packages/security/libgcrypt/patches/libgcrypt-1.4.6-gpg_error_libs.patch b/packages/security/libgcrypt/patches/libgcrypt-1.4.6-gpg_error_libs.patch new file mode 100644 index 0000000000..58ba876acd --- /dev/null +++ b/packages/security/libgcrypt/patches/libgcrypt-1.4.6-gpg_error_libs.patch @@ -0,0 +1,22 @@ +diff -Naur libgcrypt-1.4.6-old/tests/Makefile.am libgcrypt-1.4.6-new/tests/Makefile.am +--- libgcrypt-1.4.6-old/tests/Makefile.am 2010-07-13 07:05:56.000000000 -0700 ++++ libgcrypt-1.4.6-new/tests/Makefile.am 2010-08-10 10:00:44.000000000 -0700 +@@ -35,6 +35,7 @@ + # a built header. + AM_CPPFLAGS = -I../src -I$(top_srcdir)/src + AM_CFLAGS = $(GPG_ERROR_CFLAGS) ++AM_LDFLAGS = $(GPG_ERROR_LIBS) + + LDADD = ../src/libgcrypt.la $(DL_LIBS) + +diff -Naur libgcrypt-1.4.6-old/tests/Makefile.in libgcrypt-1.4.6-new/tests/Makefile.in +--- libgcrypt-1.4.6-old/tests/Makefile.in 2010-07-13 08:42:21.000000000 -0700 ++++ libgcrypt-1.4.6-new/tests/Makefile.in 2010-08-10 10:02:01.000000000 -0700 +@@ -338,6 +338,7 @@ + # a built header. + AM_CPPFLAGS = -I../src -I$(top_srcdir)/src + AM_CFLAGS = $(GPG_ERROR_CFLAGS) ++AM_LDFLAGS = $(GPG_ERROR_LIBS) + LDADD = ../src/libgcrypt.la $(DL_LIBS) + EXTRA_DIST = README rsa-16k.key cavs_tests.sh cavs_driver.pl + all: all-am