tor:
[openwrt/svn-archive/archive.git] / admin / htop / Makefile
1 #
2 # Copyright (C) 2007 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:=htop
12 PKG_VERSION:=0.6.5
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=180aa7c9db7106ed1197b1e408660a0e
15
16 PKG_SOURCE_URL:=@SF/htop
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/htop
26 SECTION:=admin
27 CATEGORY:=Administration
28 TITLE:=process viewer
29 DEPENDS:=+libncurses
30 DESCRIPTION:=\
31 An interactive process viewer with colors \\\
32 tree mode and other features.
33 URL:=http://htop.sourceforge.net/
34 endef
35
36 define Build/Compile
37 mkdir -p $(PKG_INSTALL_DIR)
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all install
41 endef
42
43 define Package/htop/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/htop $(1)/usr/bin
46 endef
47
48 $(eval $(call BuildPackage,htop))