replace lots of manual install commands with INSTALL_* variables
[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 --disable-asm \
38 --disable-gnupg-iconv \
39 --disable-card-support \
40 --disable-agent-support \
41 --disable-bzip2 \
42 --disable-exec \
43 --disable-ldap \
44 --disable-hkp \
45 --disable-finger \
46 --disable-ftp \
47 --disable-dns-srv \
48 --enable-fake-curl \
49 --disable-regex \
50 )
51 endef
52
53 define Build/Compile
54 $(MAKE) -C $(PKG_BUILD_DIR)
55 endef
56
57 define Package/gnupg/install
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/g10/gpg $(1)/usr/bin/
60 endef
61
62 $(eval $(call BuildPackage,gnupg))