[package] use debian's patch to some display issues (#5182)
[openwrt/svn-archive/archive.git] / net / bwm / 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:=bwm
11 PKG_VERSION:=1.1.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/b/bwm
16 PKG_MD5SUM:=51021a036acb92d2bda0c0c0483f9552
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/bwm
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=A very tiny bandwidth monitor
26 URL:=http://ftp.debian.org/debian/pool/main/b/bwm
27 endef
28
29 define Build/Compile
30 $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/bwm.c -o $(PKG_BUILD_DIR)/bwm
31 endef
32
33 define Package/bwm/install
34 $(INSTALL_DIR) $(1)/usr/bin
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bwm $(1)/usr/bin/
36 endef
37
38 $(eval $(call BuildPackage,bwm))