nuke $Id$ in /packages as well
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=wiviz
11 PKG_VERSION:=1.0
12 PKG_RELEASE:=1
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/wiviz
19   SECTION:=net
20   CATEGORY:=Network
21   DEPENDS:=+libpcap
22   TITLE:=Wireless Network Visualization
23   URL:=http://devices.natetrue.com/wiviz/
24 endef
25         
26 define Build/Prepare
27         mkdir -p $(PKG_BUILD_DIR)
28         $(CP) ./src/* $(PKG_BUILD_DIR)/
29 endef
30
31 EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
32 EXTRA_LDFLAGS += -L$(STAGING_DIR)/usr/lib
33
34 define Build/Compile
35         $(call Build/Compile/Default, \
36                 CCOPTS="$(TARGET_CFLAGS)" \
37                 INCLUDE="$(EXTRA_CFLAGS)" \
38                 LDFLAGS="$(EXTRA_LDFLAGS)" \
39         )
40 endef
41
42 define Package/wiviz/install    
43         mkdir -p $(1)/usr/sbin
44         $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
45         $(CP) ./files/* $(1)
46         find $(1) -name CVS | xargs rm -rf
47         find $(1) -name .svn | xargs rm -rf
48 endef
49
50 $(eval $(call BuildPackage,wiviz))