1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-26 01:27:41 +02:00
openwrt-packages/libs/gpgme/Makefile
Daniel Golle 00bfb4f151
gpgme: update to version 1.18.0
Noteworthy changes in version 1.18.0 (2022-08-10)
 -------------------------------------------------

 * New keylist mode to force refresh via external methods.  [T5951]
 * The keylist operations now create an import result to report the
   result of the locate keylist modes.  [T5951]
 * core: Return BAD_PASSPHRASE error code on symmetric decryption
   failure.  [T5939]
 * cpp, qt: Do not export internal symbols anymore.  [T5906]
 * cpp, qt: Support revocation of own OpenPGP keys.  [T5904]
 * qt: The file name of (signed and) encrypted data can now be set.  [T6056]
 * cpp, qt: Support setting the primary user ID.  [T5938]
 * python: Fix segv(NULL) when inspecting contect after exeception.  [T6060]

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-07 22:56:20 +01:00

109 lines
2.9 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=gpgme
PKG_VERSION:=1.18.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://gnupg.org/ftp/gcrypt/$(PKG_NAME)
PKG_HASH:=361d4eae47ce925dba0ea569af40e7b52c645c4ae2e65e5621bf1b6cdd8b0e9e
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/libgpgme
SECTION:=libs
CATEGORY:=Libraries
TITLE:=GnuPG Made Easy (GPGME) library
URL:=https://gnupg.org/software/gpgme/index.html
DEPENDS:=+libassuan +libgpg-error
endef
define Package/libgpgmepp
SECTION:=libs
CATEGORY:=Libraries
TITLE:=GnuPG Made Easy (GPGME) library (C++)
URL:=https://gnupg.org/software/gpgme/index.html
DEPENDS:=+libgpgme +libstdcpp
endef
define Package/libgpgme/description
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. Currently it uses GnuPG's OpenPGP backend as the default,
but the API isn't restricted to this engine. We have, in fact, already
developed a backend for CMS (S/MIME).
endef
CONFIGURE_ARGS += \
--with-libassuan-prefix="$(STAGING_DIR)/usr/" \
--with-gpg-error-prefix="$(STAGING_DIR)/usr/" \
--disable-gpgconf-test \
--disable-gpg-test \
--disable-gpgsm-test \
--disable-g13-test \
--enable-languages="cpp"
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/gpgme++
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/include/gpgme.h \
$(1)/usr/include/
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/include/gpgme++/*.h \
$(1)/usr/include/gpgme++/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libgpgme.{la,so*} \
$(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/share/aclocal
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/share/aclocal/gpgme.m4 \
$(1)/usr/share/aclocal/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gpgme.pc \
$(1)/usr/lib/pkgconfig
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gpgme-glib.pc \
$(1)/usr/lib/pkgconfig
$(INSTALL_DIR) $(1)/usr/lib/cmake/Gpgmepp
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/lib/cmake/Gpgmepp/*.cmake \
$(1)/usr/lib/cmake/Gpgmepp
$(INSTALL_DIR) $(2)/bin $(1)/usr/bin
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/gpgme-config \
$(2)/bin/
$(SED) \
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
$(2)/bin/gpgme-config
$(LN) -sf $(STAGING_DIR)/host/bin/gpgme-config $(1)/usr/bin/gpgme-config
endef
define Package/libgpgme/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme.so.* $(1)/usr/lib/
endef
define Package/libgpgmepp/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgmepp.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libgpgme))
$(eval $(call BuildPackage,libgpgmepp))