diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2010-11-01 19:37:26 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2010-11-01 20:07:14 +0100 |
commit | 668229d189f92bd57f023807e2929828e9199350 (patch) | |
tree | 01b96d4c4dceecd94f80d72c2a16a7173f2079b0 | |
parent | 248af66f646345e869113e334ce05eef0748b30a (diff) | |
download | meta-openembedded-668229d189f92bd57f023807e2929828e9199350.tar.gz |
angstrom-layers: add libgcrypt from poky into meta-openembedded
Add BBCLASSEXTEND = native, this is needed for the OE gtk+
Signed-off-by: Koen Kooi <k-kooi@ti.com>
-rw-r--r-- | recipes-support/libgcrypt/libgcrypt.inc | 33 | ||||
-rw-r--r-- | recipes-support/libgcrypt/libgcrypt/add-pkgconfig-support.patch | 49 | ||||
-rw-r--r-- | recipes-support/libgcrypt/libgcrypt_1.4.6.bb | 3 |
3 files changed, 85 insertions, 0 deletions
diff --git a/recipes-support/libgcrypt/libgcrypt.inc b/recipes-support/libgcrypt/libgcrypt.inc new file mode 100644 index 0000000000..da882dcc7e --- /dev/null +++ b/recipes-support/libgcrypt/libgcrypt.inc | |||
@@ -0,0 +1,33 @@ | |||
1 | DESCRIPTION = "A general purpose cryptographic library based on the code from GnuPG" | ||
2 | HOMEPAGE = "http://directory.fsf.org/project/libgcrypt/" | ||
3 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" | ||
4 | SECTION = "libs" | ||
5 | PRIORITY = "optional" | ||
6 | |||
7 | BBCLASSEXTEND = "native" | ||
8 | |||
9 | # helper program gcryptrnd and getrandom are under GPL, rest LGPL | ||
10 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
12 | file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff" | ||
13 | |||
14 | DEPENDS = "libgpg-error" | ||
15 | |||
16 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz \ | ||
17 | file://add-pkgconfig-support.patch" | ||
18 | |||
19 | inherit autotools binconfig pkgconfig | ||
20 | |||
21 | EXTRA_OECONF = "--without-pth --disable-asm --with-capabilities" | ||
22 | |||
23 | # libgcrypt.pc is added locally and thus installed here | ||
24 | do_install_append() { | ||
25 | install -d ${D}/${libdir}/pkgconfig | ||
26 | install -m 0644 ${S}/src/libgcrypt.pc ${D}/${libdir}/pkgconfig/ | ||
27 | } | ||
28 | |||
29 | ARM_INSTRUCTION_SET = "arm" | ||
30 | |||
31 | # move libgcrypt-config into -dev package | ||
32 | FILES_${PN} = "${libdir}/lib*.so.*" | ||
33 | FILES_${PN}-dev += "${bindir} ${libdir}/pkgconfig/*.pc" | ||
diff --git a/recipes-support/libgcrypt/libgcrypt/add-pkgconfig-support.patch b/recipes-support/libgcrypt/libgcrypt/add-pkgconfig-support.patch new file mode 100644 index 0000000000..24a59787a2 --- /dev/null +++ b/recipes-support/libgcrypt/libgcrypt/add-pkgconfig-support.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | Index: libgcrypt-1.2.4/configure.ac | ||
2 | =================================================================== | ||
3 | --- libgcrypt-1.2.4.orig/configure.ac 2008-03-19 22:14:50.000000000 +0000 | ||
4 | +++ libgcrypt-1.2.4/configure.ac 2008-03-19 22:14:58.000000000 +0000 | ||
5 | @@ -807,6 +807,7 @@ | ||
6 | doc/Makefile | ||
7 | src/Makefile | ||
8 | src/gcrypt.h | ||
9 | +src/libgcrypt.pc | ||
10 | src/libgcrypt-config | ||
11 | tests/Makefile | ||
12 | w32-dll/Makefile | ||
13 | Index: libgcrypt-1.2.4/src/libgcrypt.pc.in | ||
14 | =================================================================== | ||
15 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
16 | +++ libgcrypt-1.2.4/src/libgcrypt.pc.in 2008-03-19 22:14:58.000000000 +0000 | ||
17 | @@ -0,0 +1,32 @@ | ||
18 | +# Process this file with autoconf to produce a pkg-config metadata file. | ||
19 | +# Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation | ||
20 | +# Author: Simon Josefsson | ||
21 | +# | ||
22 | +# This file is free software; as a special exception the author gives | ||
23 | +# unlimited permission to copy and/or distribute it, with or without | ||
24 | +# modifications, as long as this notice is preserved. | ||
25 | +# | ||
26 | +# This file is distributed in the hope that it will be useful, but | ||
27 | +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the | ||
28 | +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
29 | + | ||
30 | +prefix=@prefix@ | ||
31 | +exec_prefix=@exec_prefix@ | ||
32 | +libdir=@libdir@ | ||
33 | +includedir=@includedir@ | ||
34 | + | ||
35 | +# API info | ||
36 | +api_version=@LIBGCRYPT_CONFIG_API_VERSION@ | ||
37 | + | ||
38 | +# Misc information. | ||
39 | +symmetric_ciphers=@LIBGCRYPT_CIPHERS@ | ||
40 | +asymmetric_ciphers=@LIBGCRYPT_PUBKEY_CIPHERS@ | ||
41 | +digests=@LIBGCRYPT_DIGESTS@ | ||
42 | + | ||
43 | +Name: libgcrypt | ||
44 | +Description: GNU crypto library | ||
45 | +URL: http://www.gnupg.org | ||
46 | +Version: @VERSION@ | ||
47 | +Libs: -L${libdir} -lgcrypt | ||
48 | +Libs.private: -L${libdir} -lgpg-error | ||
49 | +Cflags: -I${includedir} | ||
diff --git a/recipes-support/libgcrypt/libgcrypt_1.4.6.bb b/recipes-support/libgcrypt/libgcrypt_1.4.6.bb new file mode 100644 index 0000000000..a592437913 --- /dev/null +++ b/recipes-support/libgcrypt/libgcrypt_1.4.6.bb | |||
@@ -0,0 +1,3 @@ | |||
1 | require libgcrypt.inc | ||
2 | |||
3 | PR = "r0" | ||