let ipkg fail when a package file to be installed is not found
[openwrt.git] / openwrt / package / gpg / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=gnupg
6 PKG_VERSION:=1.4.2.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=2d59ed50d92f69994dbfbe00fe1612e4
9
10 PKG_SOURCE_URL:=ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/gnupg \
11         ftp://ftp.gnupg.org/gcrypt/gnupg
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_CAT:=bzcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,GPG,gpg,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22         (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
23                 $(TARGET_CONFIGURE_OPTS) \
24                 CFLAGS="$(TARGET_CFLAGS)" \
25                 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
26                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
27                 ac_cv_c_bigendian=no \
28                 ac_cv_sizeof_off_t=8 \
29                 ./configure \
30                         --target=$(GNU_TARGET_NAME) \
31                         --host=$(GNU_TARGET_NAME) \
32                         --build=$(GNU_HOST_NAME) \
33                         --program-prefix="" \
34                         --program-suffix="" \
35                         --prefix=/usr \
36                         --exec-prefix=/usr \
37                         --bindir=/usr/bin \
38                         --datadir=/usr/share \
39                         --includedir=/usr/include \
40                         --infodir=/usr/share/info \
41                         --libdir=/usr/lib \
42                         --libexecdir=/usr/lib \
43                         --localstatedir=/var \
44                         --mandir=/usr/share/man \
45                         --sbindir=/usr/sbin \
46                         --sysconfdir=/etc \
47                         $(DISABLE_LARGEFILE) \
48                         $(DISABLE_NLS) \
49                         --disable-asm \
50                         --disable-gnupg-iconv \
51                         --disable-card-support \
52                         --disable-agent-support \
53                         --disable-bzip2 \
54                         --disable-exec \
55                         --disable-ldap \
56                         --disable-hkp \
57                         --disable-finger \
58                         --disable-ftp \
59                         --disable-dns-srv \
60                         --enable-fake-curl \
61                         --disable-nls \
62                         --disable-rpath \
63                         --disable-regex \
64         );
65         touch $@
66
67 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
68         $(MAKE) -C $(PKG_BUILD_DIR) \
69                 CC=$(TARGET_CC)
70         touch $@
71
72 $(IPKG_GPG): 
73         mkdir -p $(IDIR_GPG)/usr/bin
74         $(CP) $(PKG_BUILD_DIR)/g10/gpg $(IDIR_GPG)/usr/bin/
75         $(RSTRIP) $(IDIR_GPG)
76         $(IPKG_BUILD) $(IDIR_GPG) $(PACKAGE_DIR)