don't pass build cflags to fuse kernel module
[openwrt.git] / openwrt / package / vtun / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=vtun
6 PKG_VERSION:=2.6
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=309534fd03c5d13a19c43916f61f4bbf
9
10 PKG_SOURCE_URL:=@SF/vtun
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,VTUN,vtun,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 (cd $(PKG_BUILD_DIR) ; rm -rf config.{cache,status} ; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
25 LIBS="-L$(STAGING_DIR)/usr/lib" \
26 BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
27 LZO_HDR_DIR="$(STAGING_DIR)/usr/include" \
28 SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
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_LARGEFILE) \
48 $(DISABLE_NLS) \
49 )
50 touch $@
51
52 $(PKG_BUILD_DIR)/.built:
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 vtund
55 touch $@
56
57 $(IPKG_VTUN):
58 install -m0755 -d $(IDIR_VTUN)/etc
59 install -m0600 $(PKG_BUILD_DIR)/vtund.conf $(IDIR_VTUN)/etc/
60 install -m0755 -d $(IDIR_VTUN)/usr/sbin
61 install -m0755 $(PKG_BUILD_DIR)/vtund $(IDIR_VTUN)/usr/sbin/
62 $(RSTRIP) $(IDIR_VTUN)
63 $(IPKG_BUILD) $(IDIR_VTUN) $(PACKAGE_DIR)
This page took 0.039551 seconds and 5 git commands to generate.