2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/gnupg \
18 ftp://ftp.gnupg.org/gcrypt/gnupg
19 PKG_MD5SUM:=2d59ed50d92f69994dbfbe00fe1612e4
22 include $(INCLUDE_DIR)/package.mk
27 TITLE:=GNU Privacy Guard
28 DESCRIPTION:=GNU Privacy Guard (GnuPG).\\\
29 GPG is an encryption program.
30 URL:=http://www.gnupg.org/
33 define Build/Configure
34 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
35 $(TARGET_CONFIGURE_OPTS) \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
38 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
39 ac_cv_c_bigendian=no \
40 ac_cv_sizeof_off_t=8 \
42 --target=$(GNU_TARGET_NAME) \
43 --host=$(GNU_TARGET_NAME) \
44 --build=$(GNU_HOST_NAME) \
50 --datadir=/usr/share \
51 --includedir=/usr/include \
52 --infodir=/usr/share/info \
54 --libexecdir=/usr/lib \
55 --localstatedir=/var \
56 --mandir=/usr/share/man \
59 $(DISABLE_LARGEFILE) \
62 --disable-gnupg-iconv \
63 --disable-card-support \
64 --disable-agent-support \
79 define Package/gnupg/install
80 install -d -m0755 $(1)/usr/bin
81 install -m0755 $(PKG_BUILD_DIR)/g10/gpg $(1)/usr/bin/
84 $(eval $(call BuildPackage,gnupg))