[packages] massive: use $(INSTALL_DIR) instead of 'mkdir -p' in install and InstallDev
[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   DEPENDS:=+libpcap
20   TITLE:=Wireless Network Visualization
21   URL:=http://devices.natetrue.com/wiviz/
22 endef
23         
24 define Build/Prepare
25         mkdir -p $(PKG_BUILD_DIR)
26         $(CP) ./src/* $(PKG_BUILD_DIR)/
27 endef
28
29 EXTRA_CFLAGS += $(TARGET_CPPFLAGS)
30 EXTRA_LDFLAGS += $(TARGET_LDFLAGS)
31
32 define Build/Compile
33         $(call Build/Compile/Default, \
34                 CCOPTS="$(TARGET_CFLAGS)" \
35                 INCLUDE="$(EXTRA_CFLAGS)" \
36                 LDFLAGS="$(EXTRA_LDFLAGS)" \
37         )
38 endef
39
40 define Package/wiviz/install    
41         $(INSTALL_DIR) $(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))