fix rebuilding of asterisk
[openwrt.git] / openwrt / package / 6tunnel / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=6tunnel
4 PKG_VERSION:=0.11rc1
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=b325fa9d238e32195fbb3fc3646b0d28
7
8 PKG_SOURCE_URL:=http://toxygen.net/6tunnel/
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10 PKG_CAT:=zcat
11
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-0.11
13 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,6TUNNEL,6tunnel,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 $(PKG_BUILD_DIR)/.configured:
20 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS)" \
23 ac_cv_path_STRIP=$(STRIP) \
24 ac_cv_func_vsnprintf=yes \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/sbin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 $(DISABLE_LARGEFILE) \
44 $(DISABLE_NLS) \
45 );
46 touch $@
47
48 $(PKG_BUILD_DIR)/.built:
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 default
51 touch $@
52
53 $(IPKG_6TUNNEL):
54 install -d -m0755 $(IDIR_6TUNNEL)/usr/sbin
55 cp -fpR $(PKG_BUILD_DIR)/6tunnel $(IDIR_6TUNNEL)/usr/sbin/
56 $(RSTRIP) $(IDIR_6TUNNEL)/
57 $(IPKG_BUILD) $(IDIR_6TUNNEL) $(PACKAGE_DIR)
58
This page took 0.040073 seconds and 5 git commands to generate.