gpgme/Makefile |
1 | | include $(TOPDIR)/rules.mk |
2 | | |
3 | | PKG_NAME:=gpgme |
4 | | PKG_VERSION:=1.3.0 |
5 | | PKG_RELEASE:=1 |
6 | | |
7 | | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
8 | | PKG_SOURCE_URL:=ftp://ftp.gnupg.org/gcrypt/gpgme/ |
9 | | PKG_MD5SUM:=f148c73f6f540f91e02141df72844f62 |
10 | | PKG_FIXUP:=libtool |
11 | | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
12 | | |
13 | | include $(INCLUDE_DIR)/package.mk |
14 | | |
15 | | PKG_INSTALL=1 |
16 | | |
17 | | define Package/gpgme |
18 | | SECTION:=libs |
19 | | CATEGORY:=Libraries |
20 | | TITLE:=GnuPG Made Easy |
21 | | URL:=http://www.gnupg.org |
22 | | DEPENDS:=+libgpg-error +libassuan |
23 | | endef |
24 | | |
25 | | define Package/gpgme/description |
26 | | GPGME (GnuPG Made Easy) is a C language library that allows to add |
27 | | support for cryptography to a program. It is designed to make |
28 | | access to public key crypto engines like GnuPG or GpgSM easier |
29 | | for applications. GPGME provides a high-level crypto API for |
30 | | encryption, decryption, signing, signature verification and key management. |
31 | | endef |
32 | | |
33 | | define Build/Configure |
34 | | $(call Build/Configure/Default, \ |
35 | | --with-pth=no --with-gpg="/usr/bin/gpg" --with-gpgsm="" \ |
36 | | --with-gpgconf="" --with-g13="" \ |
37 | | --enable-shared --enable-static \ |
38 | | ) |
39 | | endef |
40 | | |
41 | | define Build/InstallDev |
42 | | $(INSTALL_DIR) $(2)/bin $(1)/usr/bin |
43 | | $(INSTALL_BIN) \ |
44 | | $(PKG_INSTALL_DIR)/usr/bin/gpgme-config \ |
45 | | $(2)/bin/ |
46 | | $(SED) \ |
47 | | 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \ |
48 | | $(2)/bin/gpgme-config |
49 | | ln -sf $(STAGING_DIR)/host/bin/gpgme-config $(1)/usr/bin/gpgme-config |
50 | | |
51 | | $(INSTALL_DIR) $(1)/usr/include |
52 | | $(INSTALL_DATA) \ |
53 | | $(PKG_INSTALL_DIR)/usr/include/gpgme.h \ |
54 | | $(1)/usr/include/ |
55 | | |
56 | | $(INSTALL_DIR) $(1)/usr/lib |
57 | | $(CP) \ |
58 | | $(PKG_INSTALL_DIR)/usr/lib/libgpgme.{la,a,so*} \ |
59 | | $(1)/usr/lib/ |
60 | | |
61 | | $(INSTALL_DIR) $(1)/usr/share/aclocal |
62 | | $(INSTALL_DATA) \ |
63 | | $(PKG_INSTALL_DIR)/usr/share/aclocal/gpgme.m4 \ |
64 | | $(1)/usr/share/aclocal/ |
65 | | endef |
66 | | |
67 | | define Package/gpgme/install |
68 | | $(INSTALL_DIR) $(1)/usr/lib |
69 | | $(CP) \ |
70 | | $(PKG_INSTALL_DIR)/usr/lib/libgpgme.so.* \ |
71 | | $(1)/usr/lib/ |
72 | | endef |
73 | | |
74 | | $(eval $(call BuildPackage,gpgme)) |