use Build/Configure/Default macro, Makefile cleanup
[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_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/gnupg \
17 ftp://ftp.gnupg.org/gcrypt/gnupg
18 PKG_MD5SUM:=2d59ed50d92f69994dbfbe00fe1612e4
19 PKG_CAT:=bzcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/gnupg
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=GNU Privacy Guard
29 DESCRIPTION:=\
30 GPG is an encryption program.
31 URL:=http://www.gnupg.org/
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --disable-rpath \
37 --with-gnu-ld \
38 --disable-asm \
39 --disable-gnupg-iconv \
40 --disable-card-support \
41 --disable-agent-support \
42 --disable-bzip2 \
43 --disable-exec \
44 --disable-ldap \
45 --disable-hkp \
46 --disable-finger \
47 --disable-ftp \
48 --disable-dns-srv \
49 --enable-fake-curl \
50 --disable-regex \
51 )
52 endef
53
54 define Build/Compile
55 $(MAKE) -C $(PKG_BUILD_DIR)
56 endef
57
58 define Package/gnupg/install
59 install -d -m0755 $(1)/usr/bin
60 install -m0755 $(PKG_BUILD_DIR)/g10/gpg $(1)/usr/bin/
61 endef
62
63 $(eval $(call BuildPackage,gnupg))