poco: moved to github
[packages.git] / net / wiviz / Makefile
1 #
2 # Copyright (C) 2006-2009 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 include $(INCLUDE_DIR)/package.mk
15
16 define Package/wiviz
17   SECTION:=net
18   CATEGORY:=Network
19   SUMENU:=wireless
20   DEPENDS:=+libpcap
21   TITLE:=Wireless Network Visualization
22   URL:=http://devices.natetrue.com/wiviz/
23 endef
24         
25 define Build/Prepare
26         mkdir -p $(PKG_BUILD_DIR)
27         $(CP) ./src/* $(PKG_BUILD_DIR)/
28 endef
29
30 EXTRA_CFLAGS += $(TARGET_CPPFLAGS)
31 EXTRA_LDFLAGS += $(TARGET_LDFLAGS)
32
33 define Build/Compile
34         $(call Build/Compile/Default, \
35                 CCOPTS="$(TARGET_CFLAGS)" \
36                 INCLUDE="$(EXTRA_CFLAGS)" \
37                 LDFLAGS="$(EXTRA_LDFLAGS)" \
38         )
39 endef
40
41 define Package/wiviz/install    
42         $(INSTALL_DIR) $(1)/usr/sbin
43         $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
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))