5a14c78076f1ba0e61e661792163a5c80f132830
[openwrt/svn-archive/archive.git] / net / wavemon / Makefile
1 #
2 # Copyright (C) 2008 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:=wavemon
12 PKG_VERSION:=0.4.0b
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.janmorgenstern.de/
17 PKG_MD5SUM:=2baab37eb967fc38dc53f8e4f609daac
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/wavemon
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=N-curses based wireless network devices monitor
25 DEPENDS:= +libncurses
26 SUBMENU:=wireless
27 URL:=http://www.janmorgenstern.de/projects-software.html
28 endef
29
30 define Package/wavemon/description
31 wavemon is a ncurses-based monitoring application for wireless network
32 devices. It currently works under Linux with devices that are supported
33 by the wireless extensions by Jean Tourrilhes (included in Kernel 2.4
34 and higher), e.g. the Lucent Orinoco cards.
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 $(TARGET_CONFIGURE_OPTS) \
40 CFLAGS="$(TARGET_CFLAGS) -L${STAGING_DIR}/usr/lib -I${STAGING_DIR}/usr/include" \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 all
43 endef
44
45 define Package/wavemon/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(CP) $(PKG_BUILD_DIR)/wavemon $(1)/usr/bin/
48 endef
49
50 $(eval $(call BuildPackage,wavemon))