1*169d7bccSPatrick WilliamsSUMMARY = "High-level GnuPG encryption/signing API" 2*169d7bccSPatrick WilliamsDESCRIPTION = "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for applications. It provides a High-Level Crypto API for encryption, decryption, signing, signature verification and key management" 3*169d7bccSPatrick WilliamsHOMEPAGE = "http://www.gnupg.org/gpgme.html" 4*169d7bccSPatrick WilliamsBUGTRACKER = "https://bugs.g10code.com/gnupg/index" 5*169d7bccSPatrick Williams 6*169d7bccSPatrick WilliamsLICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" 7*169d7bccSPatrick WilliamsLIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ 8*169d7bccSPatrick Williams file://COPYING.LESSER;md5=bbb461211a33b134d42ed5ee802b37ff \ 9*169d7bccSPatrick Williams file://src/gpgme.h.in;endline=23;md5=2f0bf06d1c7dcb28532a9d0f94a7ca1d \ 10*169d7bccSPatrick Williams file://src/engine.h;endline=22;md5=4b6d8ba313d9b564cc4d4cfb1640af9d" 11*169d7bccSPatrick Williams 12*169d7bccSPatrick WilliamsUPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" 13*169d7bccSPatrick WilliamsSRC_URI = "${GNUPG_MIRROR}/gpgme/${BP}.tar.bz2 \ 14*169d7bccSPatrick Williams file://0001-Revert-build-Make-gpgme.m4-use-gpgrt-config-with-.pc.patch \ 15*169d7bccSPatrick Williams file://0001-pkgconfig.patch \ 16*169d7bccSPatrick Williams file://0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch \ 17*169d7bccSPatrick Williams file://0003-Correctly-install-python-modules.patch \ 18*169d7bccSPatrick Williams file://0004-python-import.patch \ 19*169d7bccSPatrick Williams file://0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch \ 20*169d7bccSPatrick Williams file://0006-fix-build-path-issue.patch \ 21*169d7bccSPatrick Williams file://0008-do-not-auto-check-var-PYTHON.patch \ 22*169d7bccSPatrick Williams file://0001-use-closefrom-on-linux-and-glibc-2.34.patch \ 23*169d7bccSPatrick Williams file://0001-posix-io.c-Use-off_t-instead-of-off64_t.patch \ 24*169d7bccSPatrick Williams file://0001-autogen.sh-remove-unknown-in-version.patch \ 25*169d7bccSPatrick Williams " 26*169d7bccSPatrick Williams 27*169d7bccSPatrick WilliamsSRC_URI[sha256sum] = "9499e8b1f33cccb6815527a1bc16049d35a6198a6c5fae0185f2bd561bce5224" 28*169d7bccSPatrick Williams 29*169d7bccSPatrick WilliamsPYTHON_DEPS = "${@bb.utils.contains('LANGUAGES', 'python', 'swig-native', '', d)}" 30*169d7bccSPatrick Williams 31*169d7bccSPatrick WilliamsDEPENDS = "libgpg-error libassuan ${PYTHON_DEPS}" 32*169d7bccSPatrick WilliamsRDEPENDS:${PN}-cpp += "libstdc++" 33*169d7bccSPatrick Williams 34*169d7bccSPatrick WilliamsRDEPENDS:python3-gpg += "python3-unixadmin" 35*169d7bccSPatrick Williams 36*169d7bccSPatrick WilliamsBINCONFIG = "${bindir}/gpgme-config" 37*169d7bccSPatrick Williams 38*169d7bccSPatrick Williams# Default in configure.ac: "cl cpp python qt" 39*169d7bccSPatrick Williams# Supported: "cl cpp python python2 python3 qt" 40*169d7bccSPatrick Williams# python says 'search and find python2 or python3' 41*169d7bccSPatrick Williams 42*169d7bccSPatrick Williams# Building the C++ bindings for native requires a C++ compiler with C++11 43*169d7bccSPatrick Williams# support. Since these bindings are currently not needed, we can disable them. 44*169d7bccSPatrick WilliamsDEFAULT_LANGUAGES = "" 45*169d7bccSPatrick WilliamsDEFAULT_LANGUAGES:class-target = "cpp" 46*169d7bccSPatrick WilliamsLANGUAGES ?= "${DEFAULT_LANGUAGES}" 47*169d7bccSPatrick Williams 48*169d7bccSPatrick WilliamsPYTHON_INHERIT = "${@bb.utils.contains('LANGUAGES', 'python', 'setuptools3-base', '', d)}" 49*169d7bccSPatrick Williams 50*169d7bccSPatrick WilliamsEXTRA_OECONF += '--enable-languages="${LANGUAGES}" \ 51*169d7bccSPatrick Williams --disable-gpgconf-test \ 52*169d7bccSPatrick Williams --disable-gpg-test \ 53*169d7bccSPatrick Williams --disable-gpgsm-test \ 54*169d7bccSPatrick Williams --disable-g13-test \ 55*169d7bccSPatrick Williams' 56*169d7bccSPatrick Williams 57*169d7bccSPatrick Williamsinherit autotools texinfo binconfig-disabled pkgconfig ${PYTHON_INHERIT} python3native multilib_header 58*169d7bccSPatrick Williams 59*169d7bccSPatrick Williamsexport PKG_CONFIG='pkg-config' 60*169d7bccSPatrick Williams 61*169d7bccSPatrick WilliamsBBCLASSEXTEND = "native nativesdk" 62*169d7bccSPatrick Williams 63*169d7bccSPatrick WilliamsPACKAGES =+ "${PN}-cpp python3-gpg" 64*169d7bccSPatrick Williams 65*169d7bccSPatrick WilliamsFILES:${PN}-cpp = "${libdir}/libgpgmepp.so.*" 66*169d7bccSPatrick WilliamsFILES:python3-gpg = "${PYTHON_SITEPACKAGES_DIR}/*" 67*169d7bccSPatrick WilliamsFILES:${PN}-dev += "${datadir}/common-lisp/source/gpgme/*" 68*169d7bccSPatrick Williams 69*169d7bccSPatrick WilliamsCFLAGS:append:libc-musl = " -D__error_t_defined " 70*169d7bccSPatrick WilliamsCACHED_CONFIGUREVARS:libc-musl = "ac_cv_sys_file_offset_bits=no" 71*169d7bccSPatrick Williams 72*169d7bccSPatrick Williamsdo_configure:prepend () { 73*169d7bccSPatrick Williams # Else these could be used in preference to those in aclocal-copy 74*169d7bccSPatrick Williams rm -f ${S}/m4/gpg-error.m4 75*169d7bccSPatrick Williams rm -f ${S}/m4/libassuan.m4 76*169d7bccSPatrick Williams rm -f ${S}/m4/python.m4 77*169d7bccSPatrick Williams} 78*169d7bccSPatrick Williams 79*169d7bccSPatrick Williamsdo_install:append() { 80*169d7bccSPatrick Williams oe_multilib_header gpgme.h 81*169d7bccSPatrick Williams} 82