diff options
Diffstat (limited to 'meta/recipes-support/libgpg-error/libgpg-error_1.32.bb')
-rw-r--r-- | meta/recipes-support/libgpg-error/libgpg-error_1.32.bb | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/meta/recipes-support/libgpg-error/libgpg-error_1.32.bb b/meta/recipes-support/libgpg-error/libgpg-error_1.32.bb new file mode 100644 index 0000000000..098242ea10 --- /dev/null +++ b/meta/recipes-support/libgpg-error/libgpg-error_1.32.bb | |||
@@ -0,0 +1,61 @@ | |||
1 | SUMMARY = "Small library that defines common error values for all GnuPG components" | ||
2 | HOMEPAGE = "http://www.gnupg.org/related_software/libgpg-error/" | ||
3 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" | ||
4 | |||
5 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
7 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
8 | file://src/gpg-error.h.in;endline=19;md5=e9be7dd9dc7686d91b5421a091c212cc \ | ||
9 | file://src/init.c;endline=20;md5=872b2389fe9bae7ffb80d2b91225afbc" | ||
10 | |||
11 | |||
12 | SECTION = "libs" | ||
13 | |||
14 | UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" | ||
15 | SRC_URI = "${GNUPG_MIRROR}/libgpg-error/libgpg-error-${PV}.tar.bz2 \ | ||
16 | file://pkgconfig.patch \ | ||
17 | " | ||
18 | SRC_URI[md5sum] = "ef3d928a5a453fa701ecc3bb22be1c64" | ||
19 | SRC_URI[sha256sum] = "c345c5e73cc2332f8d50db84a2280abfb1d8f6d4f1858b9daa30404db44540ca" | ||
20 | |||
21 | BINCONFIG = "${bindir}/gpg-error-config" | ||
22 | |||
23 | inherit autotools binconfig-disabled pkgconfig gettext multilib_header | ||
24 | CPPFLAGS += "-P" | ||
25 | do_compile_prepend() { | ||
26 | TARGET_FILE=linux-gnu | ||
27 | if [ ${TARGET_OS} = "mingw32" ]; then | ||
28 | # There are no arch specific syscfg files for mingw32 | ||
29 | TARGET_FILE= | ||
30 | elif [ ${TARGET_OS} != "linux" ]; then | ||
31 | TARGET_FILE=${TARGET_OS} | ||
32 | fi | ||
33 | |||
34 | case ${TARGET_ARCH} in | ||
35 | aarch64_be) TUPLE=aarch64-unknown-linux-gnu ;; | ||
36 | arm) TUPLE=arm-unknown-linux-gnueabi ;; | ||
37 | armeb) TUPLE=arm-unknown-linux-gnueabi ;; | ||
38 | i586|i686) TUPLE=i686-pc-linux-gnu ;; | ||
39 | mips64*) TUPLE=mips64el-unknown-linux-gnuabi64 ;; | ||
40 | mips*el) TUPLE=mipsel-unknown-linux-gnu ;; | ||
41 | mips*) TUPLE=mips-unknown-linux-gnu ;; | ||
42 | x86_64) TUPLE=x86_64-pc-linux-gnu ;; | ||
43 | *) TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;; | ||
44 | esac | ||
45 | |||
46 | if [ -n "$TARGET_FILE" ]; then | ||
47 | cp ${S}/src/syscfg/lock-obj-pub.$TUPLE.h \ | ||
48 | ${S}/src/syscfg/lock-obj-pub.$TARGET_FILE.h | ||
49 | fi | ||
50 | } | ||
51 | |||
52 | do_install_append() { | ||
53 | # we don't have common lisp in OE | ||
54 | rm -rf "${D}${datadir}/common-lisp/" | ||
55 | oe_multilib_header gpg-error.h gpgrt.h | ||
56 | } | ||
57 | |||
58 | FILES_${PN}-dev += "${bindir}/gpg-error" | ||
59 | FILES_${PN}-doc += "${datadir}/libgpg-error/errorref.txt" | ||
60 | |||
61 | BBCLASSEXTEND = "native nativesdk" | ||