Port wiviz to -ng
[packages.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   DESCRIPTION:=Wireless Network Visualization
25   URL:=http://students.washington.edu/natetrue/wiviz/
26 endef
27         
28 define Build/Prepare
29         mkdir -p $(PKG_BUILD_DIR)
30         $(CP) ./src/* $(PKG_BUILD_DIR)/
31 endef
32
33 define Build/Compile
34 $(call Build/Compile/Default,CC="$(TARGET_CC)" \
35                 CCOPTS="$(TARGET_CFLAGS)" \
36                 INCLUDE="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include" \
37                 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib")
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         $(RSTRIP) $(1)
44         $(CP) ./files/* $(1)
45         find $(1) -name CVS | xargs rm -rf
46         find $(1) -name .svn | xargs rm -rf
47 endef
48
49 $(eval $(call BuildPackage,wiviz))