AA: mjpg-streamer: merge r37929
[12.09/packages.git] / libs / gpgme / Makefile
1 #
2 # Copyright (C) 2011 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.3.1
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:=90afa8436ce2b2683c001c824bd22601
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libgpgme
24   SECTION:=libs
25   CATEGORY:=Libraries
26   TITLE:=GnuPG Made Easy library
27   URL:=http://www.gnupg.org/
28   DEPENDS:=+gnupg +libassuan +libpthread
29 endef
30
31 define Package/libgpgme/description
32  GPGME (GnuPG Made Easy) is a C language library that allows to add
33  support for cryptography to a program. It is designed to make access to
34  public key crypto engines like GnuPG or GpgSM easier for applications.
35  GPGME provides a high-level crypto API for encryption, decryption,
36  signing, signature verification and key management.
37 endef
38
39 CONFIGURE_ARGS += \
40         --enable-shared \
41         --enable-static \
42         --with-gpg=/"usr/bin/gpg" \
43         --with-gpg-error-prefix="$(STAGING_DIR)/usr" \
44         --with-libassuan-prefix="$(STAGING_DIR)/usr" \
45         --without-g13 \
46         --without-gpgconf \
47         --without-gpgsm \
48         --without-pth \
49
50 define Build/InstallDev
51         $(INSTALL_DIR) $(1)/usr/include
52         $(CP) $(PKG_INSTALL_DIR)/usr/include/gpgme.h $(1)/usr/include/
53
54         $(INSTALL_DIR) $(1)/usr/lib
55         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme{,-pthread}.{a,so*} $(1)/usr/lib/
56 endef
57
58 define Package/libgpgme/install
59         $(INSTALL_DIR) $(1)/usr/lib
60         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme{,-pthread}.so.* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,libgpgme))