source: freewrt/package/vtun/Makefile@ 644c736

freewrt_1_0 freewrt_2_0
Last change on this file since 644c736 was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 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
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17WRKSRC= ${WRKDIR}/$(PKG_NAME)
18
19include $(TOPDIR)/mk/package.mk
20
21$(eval $(call PKG_template,VTUN,vtun,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23$(WRKBUILD)/.configured:
24 (cd $(WRKBUILD) ; rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
28 LIBS="-L$(STAGING_DIR)/usr/lib" \
29 BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
30 LZO_HDR_DIR="$(STAGING_DIR)/usr/include" \
31 SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
32 ./configure \
33 --target=$(GNU_TARGET_NAME) \
34 --host=$(GNU_TARGET_NAME) \
35 --build=$(GNU_HOST_NAME) \
36 --program-prefix="" \
37 --program-suffix="" \
38 --prefix=/usr \
39 --exec-prefix=/usr \
40 --bindir=/usr/bin \
41 --datadir=/usr/share \
42 --includedir=/usr/include \
43 --infodir=/usr/share/info \
44 --libdir=/usr/lib \
45 --libexecdir=/usr/lib \
46 --localstatedir=/var \
47 --mandir=/usr/share/man \
48 --sbindir=/usr/sbin \
49 --sysconfdir=/etc \
50 --enable-largefile \
51 --disable-nls \
52 )
53 touch $@
54
55$(WRKBUILD)/.built:
56 $(MAKE) -C $(WRKBUILD) \
57 vtund
58 touch $@
59
60$(IPKG_VTUN):
61 install -m0755 -d $(IDIR_VTUN)/etc
62 install -m0600 $(WRKBUILD)/vtund.conf $(IDIR_VTUN)/etc/
63 install -m0755 -d $(IDIR_VTUN)/usr/sbin
64 install -m0755 $(WRKBUILD)/vtund $(IDIR_VTUN)/usr/sbin/
65 $(RSTRIP) $(IDIR_VTUN)
66 $(IPKG_BUILD) $(IDIR_VTUN) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.