added some missing proto header folders
[openwrt/svn-archive/archive.git] / net / wiviz / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=wiviz
12 PKG_VERSION:=1.0
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/wiviz
20 SECTION:=net
21 CATEGORY:=Network
22 DEPENDS:=+libpcap
23 TITLE:=Wireless Network Visualization
24 URL:=http://devices.natetrue.com/wiviz/
25 endef
26
27 define Build/Prepare
28 mkdir -p $(PKG_BUILD_DIR)
29 $(CP) ./src/* $(PKG_BUILD_DIR)/
30 endef
31
32 EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
33 EXTRA_LDFLAGS += -L$(STAGING_DIR)/usr/lib
34
35 define Build/Compile
36 $(call Build/Compile/Default, \
37 CCOPTS="$(TARGET_CFLAGS)" \
38 INCLUDE="$(EXTRA_CFLAGS)" \
39 LDFLAGS="$(EXTRA_LDFLAGS)" \
40 )
41 endef
42
43 define Package/wiviz/install
44 mkdir -p $(1)/usr/sbin
45 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
46 $(CP) ./files/* $(1)
47 find $(1) -name CVS | xargs rm -rf
48 find $(1) -name .svn | xargs rm -rf
49 endef
50
51 $(eval $(call BuildPackage,wiviz))