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