build the transitional iptables-extra meta-package too (port of changeset:2558)
[openwrt.git] / package / wiviz / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=wiviz
6 PKG_VERSION:=1.0
7 PKG_RELEASE:=1
8
9 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10
11 include $(TOPDIR)/package/rules.mk
12
13 $(eval $(call PKG_template,WIVIZ,wiviz,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
14
15 $(PKG_BUILD_DIR)/.prepared:
16 mkdir -p $(PKG_BUILD_DIR)
17 cp -fpR ./src/* $(PKG_BUILD_DIR)/
18 touch $@
19
20 $(PKG_BUILD_DIR)/.configured:
21 touch $@
22
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) -C $(PKG_BUILD_DIR) \
25 CC="$(TARGET_CC)" \
26 CCOPTS="$(TARGET_CFLAGS)" \
27 INCLUDE="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include" \
28 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib"
29 touch $@
30
31 $(IPKG_WIVIZ):
32 mkdir -p $(IDIR_WIVIZ)/usr/sbin
33 cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_WIVIZ)/usr/sbin/
34 $(RSTRIP) $(IDIR_WIVIZ)
35 cp -fpR ./files/* $(IDIR_WIVIZ)
36 find $(IDIR_WIVIZ) -name CVS | xargs rm -rf
37 find $(IDIR_WIVIZ) -name .svn | xargs rm -rf
38 $(IPKG_BUILD) $(IDIR_WIVIZ) $(PACKAGE_DIR)
39
40 mostlyclean:
41 $(MAKE) -C $(PKG_BUILD_DIR) clean
42 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.041845 seconds and 5 git commands to generate.