mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
new package: add package 'libgcrypt'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
9be1abeedf
commit
155f3d2e9e
21
packages/security/libgcrypt/build
Executable file
21
packages/security/libgcrypt/build
Executable file
@ -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
|
6
packages/security/libgcrypt/install
Executable file
6
packages/security/libgcrypt/install
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options $1
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/lib
|
||||||
|
cp -P $PKG_BUILD/src/.libs/*.so* $INSTALL/usr/lib
|
16
packages/security/libgcrypt/meta
Normal file
16
packages/security/libgcrypt/meta
Normal file
@ -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"
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user