source: freewrt/package/tinc/Makefile@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was c57fbc9, checked in by Thorsten Glaser <tg@…>, 19 years ago

nuke DISABLE_NLS, DISABLE_LARGEFILE, replace globally
with --disable-nls and --enable-largefile, because it
doesn't make sense otherwise and/or breaks.

Requested by wbx@ in Message-ID: <20060618220406.GL6291@…>
Done using find and ed(1)

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

  • Property mode set to 100644
File size: 1.8 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=tinc
6PKG_VERSION:=1.0.4
7PKG_RELEASE:=1
8PKG_MD5SUM:=63887373dd763f8d90cecc5a3616c363
9
10PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages \
11 http://ftp.yi.se/pub/tinc/ \
12 http://www.mirrors.wiretapped.net/security/network-security/tinc/
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_CAT:=zcat
15
16PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
18
19include $(TOPDIR)/package/rules.mk
20
21$(eval $(call PKG_template,TINC,tinc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23$(PKG_BUILD_DIR)/.configured:
24 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
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-nls \
48 --enable-largefile \
49 --with-kernel=$(LINUX_DIR) \
50 --with-zlib=$(STAGING_DIR)/usr/ \
51 );
52 touch $@
53
54$(PKG_BUILD_DIR)/.built:
55 rm -rf $(PKG_INSTALL_DIR)
56 mkdir -p $(PKG_INSTALL_DIR)
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 CC=$(TARGET_CC) \
59 CFLAGS="$(TARGET_CFLAGS)" \
60 DESTDIR="$(PKG_INSTALL_DIR)" \
61 all install
62 touch $@
63
64$(IPKG_TINC):
65 install -m0755 -d $(IDIR_TINC)/usr/sbin
66 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(IDIR_TINC)/usr/sbin/
67 $(RSTRIP) $(IDIR_TINC)
68 $(IPKG_BUILD) $(IDIR_TINC) $(PACKAGE_DIR)
69
Note: See TracBrowser for help on using the repository browser.