source: freewrt/package/vtun/Makefile@ ca629a6

freewrt_1_0 freewrt_2_0
Last change on this file since ca629a6 was 9f572e3, checked in by Dirk Nehring <dnehring@…>, 19 years ago

drop --enable-largefile from makefiles. 2GB should be enough in most cases

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@975 afb5a338-a214-0410-bd46-81f09a774fd1

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