source: freewrt/package/gpg/Makefile@ d419478

freewrt_1_0 freewrt_2_0
Last change on this file since d419478 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.8 KB
Line 
1# $Id: Makefile 3716 2006-04-30 18:38:02Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=gnupg
6PKG_VERSION:=1.4.2.1
7PKG_RELEASE:=1
8PKG_MD5SUM:=2d59ed50d92f69994dbfbe00fe1612e4
9
10PKG_SOURCE_URL:=ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/gnupg \
11 ftp://ftp.gnupg.org/gcrypt/gnupg
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13
14
15include $(TOPDIR)/package/rules.mk
16
17$(eval $(call PKG_template,GPG,gpg,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19$(WRKBUILD)/.configured:
20 (cd $(WRKBUILD); rm -rf config.cache; \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS)" \
23 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
25 ac_cv_c_bigendian=no \
26 ac_cv_sizeof_off_t=8 \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --program-prefix="" \
32 --program-suffix="" \
33 --prefix=/usr \
34 --exec-prefix=/usr \
35 --bindir=/usr/bin \
36 --datadir=/usr/share \
37 --includedir=/usr/include \
38 --infodir=/usr/share/info \
39 --libdir=/usr/lib \
40 --libexecdir=/usr/lib \
41 --localstatedir=/var \
42 --mandir=/usr/share/man \
43 --sbindir=/usr/sbin \
44 --sysconfdir=/etc \
45 --enable-largefile \
46 --disable-nls \
47 --disable-asm \
48 --disable-gnupg-iconv \
49 --disable-card-support \
50 --disable-agent-support \
51 --disable-bzip2 \
52 --disable-exec \
53 --disable-ldap \
54 --disable-hkp \
55 --disable-finger \
56 --disable-ftp \
57 --disable-dns-srv \
58 --enable-fake-curl \
59 --disable-nls \
60 --disable-rpath \
61 --disable-regex \
62 );
63 touch $@
64
65$(WRKBUILD)/.built: $(WRKBUILD)/.configured
66 $(MAKE) -C $(WRKBUILD) \
67 CC=$(TARGET_CC)
68 touch $@
69
70$(IPKG_GPG):
71 mkdir -p $(IDIR_GPG)/usr/bin
72 $(CP) $(WRKBUILD)/g10/gpg $(IDIR_GPG)/usr/bin/
73 $(RSTRIP) $(IDIR_GPG)
74 $(IPKG_BUILD) $(IDIR_GPG) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.