libyaml: moved to github
[packages.git] / libs / gpgme / Makefile
1 #
2 # Copyright (C) 2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gpgme
11 PKG_VERSION:=1.4.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.gnupg.org/gcrypt/gpgme/
16 PKG_MD5SUM:=334e524cffa8af4e2f43ae8afe585672
17
18 PKG_INSTALL:=1
19
20 PKG_USE_MIPS16:=0
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libgpgme
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=GnuPG Made Easy library
28   DEPENDS:=+gnupg +libassuan +libpthread
29   URL:=http://www.gnupg.org/
30 endef
31
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
37   for CMS (S/MIME).
38 endef
39
40 ifdef CONFIG_USE_UCLIBC
41 CONFIGURE_VARS += \
42     LIBS="-largp"
43 endif
44
45 CONFIGURE_ARGS += \
46         --enable-shared \
47         --enable-static \
48         --with-gpg=/"usr/bin/gpg" \
49         --with-gpg-error-prefix="$(STAGING_DIR)/usr" \
50         --with-libassuan-prefix="$(STAGING_DIR)/usr" \
51         --without-g13 \
52         --without-gpgconf \
53         --without-gpgsm \
54         --without-pth \
55
56 define Build/InstallDev
57         $(INSTALL_DIR) $(1)/usr/include
58         $(CP) $(PKG_INSTALL_DIR)/usr/include/gpgme.h $(1)/usr/include/
59
60         $(INSTALL_DIR) $(1)/usr/lib
61         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme{,-pthread}.{a,so*} $(1)/usr/lib/
62 endef
63
64 define Package/libgpgme/install
65         $(INSTALL_DIR) $(1)/usr/lib
66         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme{,-pthread}.so.* $(1)/usr/lib/
67 endef
68
69 $(eval $(call BuildPackage,libgpgme))