source: freewrt/package/tinc/Makefile@ c92444e

freewrt_1_0 freewrt_2_0
Last change on this file since c92444e 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.6 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
14
15
16include $(TOPDIR)/package/rules.mk
17
18$(eval $(call PKG_template,TINC,tinc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20$(WRKBUILD)/.configured:
21 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
25 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 --disable-nls \
45 --enable-largefile \
46 --with-kernel=$(LINUX_DIR) \
47 --with-zlib=$(STAGING_DIR)/usr/ \
48 );
49 touch $@
50
51$(WRKBUILD)/.built:
52 rm -rf $(WRKINST)
53 mkdir -p $(WRKINST)
54 $(MAKE) -C $(WRKBUILD) \
55 CC=$(TARGET_CC) \
56 CFLAGS="$(TARGET_CFLAGS)" \
57 DESTDIR="$(WRKINST)" \
58 all install
59 touch $@
60
61$(IPKG_TINC):
62 install -m0755 -d $(IDIR_TINC)/usr/sbin
63 $(CP) $(WRKINST)/usr/sbin/tincd $(IDIR_TINC)/usr/sbin/
64 $(RSTRIP) $(IDIR_TINC)
65 $(IPKG_BUILD) $(IDIR_TINC) $(PACKAGE_DIR)
66
Note: See TracBrowser for help on using the repository browser.