2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.gnupg.org/gcrypt/gpgme/
16 PKG_MD5SUM:=334e524cffa8af4e2f43ae8afe585672
20 include $(INCLUDE_DIR)/package.mk
22 define Package/libgpgme
25 TITLE:=GnuPG Made Easy library
26 DEPENDS:=+gnupg +libassuan +libpthread
27 URL:=http://www.gnupg.org/
30 define Package/libgpgme/description
31 GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for
32 applications. It provides a High-Level Crypto API for encryption, decryption, signing,
33 signature verification and key management. Currently it uses GnuPG as its backend but
34 the API isn't restricted to this engine; in fact we have already developed a backend
38 ifdef CONFIG_USE_UCLIBC
46 --with-gpg=/"usr/bin/gpg" \
47 --with-gpg-error-prefix="$(STAGING_DIR)/usr" \
48 --with-libassuan-prefix="$(STAGING_DIR)/usr" \
54 define Build/InstallDev
55 $(INSTALL_DIR) $(1)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/gpgme.h $(1)/usr/include/
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme{,-pthread}.{a,so*} $(1)/usr/lib/
62 define Package/libgpgme/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme{,-pthread}.so.* $(1)/usr/lib/
67 $(eval $(call BuildPackage,libgpgme))