Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 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;beginline=2;endline=18;md5=cd91e3ad1265a0c268efad541a39345e \ |
| 9 | file://src/init.c;beginline=2;endline=17;md5=f01cdfcf747af5380590cfd9bbfeaaf7" |
| 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 | |
| 19 | SRC_URI[md5sum] = "eff437f397e858a9127b76c0d87fa5ed" |
| 20 | SRC_URI[sha256sum] = "babd98437208c163175c29453f8681094bcaf92968a15cafb1a276076b33c97c" |
| 21 | |
| 22 | BINCONFIG = "${bindir}/gpg-error-config" |
| 23 | |
| 24 | inherit autotools binconfig-disabled pkgconfig gettext multilib_header multilib_script |
| 25 | |
| 26 | MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/gpgrt-config" |
| 27 | |
| 28 | CPPFLAGS += "-P" |
| 29 | do_compile_prepend() { |
| 30 | TARGET_FILE=linux-gnu |
| 31 | if [ ${TARGET_OS} = "mingw32" ]; then |
| 32 | # There are no arch specific syscfg files for mingw32 |
| 33 | TARGET_FILE= |
| 34 | elif [ ${TARGET_ARCH} = "arc" ]; then |
| 35 | # ARC syscfg file is automatically aliased to i686-pc-linux-gnu |
| 36 | TARGET_FILE= |
| 37 | elif [ ${TARGET_OS} != "linux" ]; then |
| 38 | TARGET_FILE=${TARGET_OS} |
| 39 | fi |
| 40 | |
| 41 | case ${TARGET_ARCH} in |
| 42 | aarch64_be) TUPLE=aarch64-unknown-linux-gnu ;; |
| 43 | arm) TUPLE=arm-unknown-linux-gnueabi ;; |
| 44 | armeb) TUPLE=arm-unknown-linux-gnueabi ;; |
| 45 | i586|i686) TUPLE=i686-unknown-linux-gnu;; |
| 46 | mips64*) TUPLE=mips64el-unknown-linux-gnuabi64 ;; |
| 47 | mips*el) TUPLE=mipsel-unknown-linux-gnu ;; |
| 48 | mips*) TUPLE=mips-unknown-linux-gnu ;; |
| 49 | x86_64) TUPLE=x86_64-unknown-linux-gnu ;; |
| 50 | ppc) TUPLE=powerpc-unknown-linux-gnu ;; |
| 51 | ppc64) TUPLE=powerpc64-unknown-linux-gnu ;; |
| 52 | ppc64le) TUPLE=powerpc64le-unknown-linux-gnu ;; |
| 53 | *) TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;; |
| 54 | esac |
| 55 | |
| 56 | if [ -n "$TARGET_FILE" ]; then |
| 57 | cp ${S}/src/syscfg/lock-obj-pub.$TUPLE.h \ |
| 58 | ${S}/src/syscfg/lock-obj-pub.$TARGET_FILE.h |
| 59 | fi |
| 60 | } |
| 61 | |
| 62 | do_install_append() { |
| 63 | # we don't have common lisp in OE |
| 64 | rm -rf "${D}${datadir}/common-lisp/" |
| 65 | oe_multilib_header gpg-error.h gpgrt.h |
| 66 | } |
| 67 | |
| 68 | FILES_${PN}-dev += "${bindir}/gpg-error" |
| 69 | FILES_${PN}-doc += "${datadir}/libgpg-error/errorref.txt" |
| 70 | |
| 71 | BBCLASSEXTEND = "native nativesdk" |