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
22 include $(INCLUDE_DIR)/package.mk
24 define Package/libgpgme
27 TITLE:=GnuPG Made Easy library
28 DEPENDS:=+gnupg +libassuan +libpthread
29 URL:=http://www.gnupg.org/
32 define Package/libgpgme/description
33 GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for
34 applications. It provides a High-Level Crypto API for encryption, decryption, signing,
35 signature verification and key management. Currently it uses GnuPG as its backend but
36 the API isn't restricted to this engine; in fact we have already developed a backend
40 ifdef CONFIG_USE_UCLIBC
48 --with-gpg=/"usr/bin/gpg" \
49 --with-gpg-error-prefix="$(STAGING_DIR)/usr" \
50 --with-libassuan-prefix="$(STAGING_DIR)/usr" \
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include
58 $(CP) $(PKG_INSTALL_DIR)/usr/include/gpgme.h $(1)/usr/include/
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme{,-pthread}.{a,so*} $(1)/usr/lib/
64 define Package/libgpgme/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme{,-pthread}.so.* $(1)/usr/lib/
69 $(eval $(call BuildPackage,libgpgme))