8bf46c48ba2a689c41c50173b87b92b752a85c55
[openwrt/svn-archive/archive.git] / utils / gnupg / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gnupg
12 PKG_VERSION:=1.4.2.1
13 PKG_RELEASE:=1
14
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
20 PKG_CAT:=bzcat
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/gnupg
25 SECTION:=utils
26 CATEGORY:=Utilities
27 TITLE:=GNU Privacy Guard
28 DESCRIPTION:=GNU Privacy Guard (GnuPG).\\\
29 GPG is an encryption program.
30 URL:=http://www.gnupg.org/
31 endef
32
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 \
41 ./configure \
42 --target=$(GNU_TARGET_NAME) \
43 --host=$(GNU_TARGET_NAME) \
44 --build=$(GNU_HOST_NAME) \
45 --program-prefix="" \
46 --program-suffix="" \
47 --prefix=/usr \
48 --exec-prefix=/usr \
49 --bindir=/usr/bin \
50 --datadir=/usr/share \
51 --includedir=/usr/include \
52 --infodir=/usr/share/info \
53 --libdir=/usr/lib \
54 --libexecdir=/usr/lib \
55 --localstatedir=/var \
56 --mandir=/usr/share/man \
57 --sbindir=/usr/sbin \
58 --sysconfdir=/etc \
59 $(DISABLE_LARGEFILE) \
60 $(DISABLE_NLS) \
61 --disable-asm \
62 --disable-gnupg-iconv \
63 --disable-card-support \
64 --disable-agent-support \
65 --disable-bzip2 \
66 --disable-exec \
67 --disable-ldap \
68 --disable-hkp \
69 --disable-finger \
70 --disable-ftp \
71 --disable-dns-srv \
72 --enable-fake-curl \
73 --disable-nls \
74 --disable-rpath \
75 --disable-regex \
76 );
77 endef
78
79 define Build/Compile
80 $(MAKE) -C $(PKG_BUILD_DIR) \
81 CC=$(TARGET_CC)
82 endef
83
84 define Package/gnupg/install
85 install -d -m0755 $(1)/usr/bin
86 install -m0755 $(PKG_BUILD_DIR)/g10/gpg $(1)/usr/bin/
87 endef
88
89 $(eval $(call BuildPackage,gnupg))