fix compile error
[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://students.washington.edu/natetrue/wiviz/
25 endef
26
27 define Build/Prepare
28 mkdir -p $(PKG_BUILD_DIR)
29 $(CP) ./src/* $(PKG_BUILD_DIR)/
30 endef
31
32 define Build/Compile
33 $(call Build/Compile/Default, \
34 CCOPTS="\$$$$(EXTRA_CFLAGS)" \
35 INCLUDE="" \
36 LDFLAGS="\$$$$(EXTRA_LDFLAGS)" \
37 )
38 endef
39
40 define Package/wiviz/install
41 mkdir -p $(1)/usr/sbin
42 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
43 $(CP) ./files/* $(1)
44 find $(1) -name CVS | xargs rm -rf
45 find $(1) -name .svn | xargs rm -rf
46 endef
47
48 $(eval $(call BuildPackage,wiviz))