source: freewrt/package/vtun/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.6 KB
Line 
1# $Id: Makefile 1410 2005-07-11 20:26:57Z nbd $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=vtun
6PKG_VERSION:=2.6
7PKG_RELEASE:=1
8PKG_MD5SUM:=309534fd03c5d13a19c43916f61f4bbf
9
10PKG_SOURCE_URL:=@SF/vtun
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12
13WRKBUILD:=${WRKDIR}/$(PKG_NAME)
14
15include $(TOPDIR)/package/rules.mk
16
17$(eval $(call PKG_template,VTUN,vtun,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19$(WRKBUILD)/.configured:
20 (cd $(WRKBUILD) ; rm -rf config.{cache,status} ; \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS)" \
23 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
24 LIBS="-L$(STAGING_DIR)/usr/lib" \
25 BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
26 LZO_HDR_DIR="$(STAGING_DIR)/usr/include" \
27 SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 --enable-largefile \
47 --disable-nls \
48 )
49 touch $@
50
51$(WRKBUILD)/.built:
52 $(MAKE) -C $(WRKBUILD) \
53 vtund
54 touch $@
55
56$(IPKG_VTUN):
57 install -m0755 -d $(IDIR_VTUN)/etc
58 install -m0600 $(WRKBUILD)/vtund.conf $(IDIR_VTUN)/etc/
59 install -m0755 -d $(IDIR_VTUN)/usr/sbin
60 install -m0755 $(WRKBUILD)/vtund $(IDIR_VTUN)/usr/sbin/
61 $(RSTRIP) $(IDIR_VTUN)
62 $(IPKG_BUILD) $(IDIR_VTUN) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.