packages/utils/procps/Makefile
mb aa323f78f1 From: Joseph Roback <openwrt-devel@roback.cc>
26 Makefile patches for enabling parallel builds. Tested on Linux (8-core) and Darwin (12-core), individually and from clean build_root. The first set is from trunk, the second is from feeds/packages.

Signed-off-by: Joe Roback <joe@roback.cc>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@22967 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-07 10:04:42 +00:00

62 lines
1.8 KiB
Makefile

#
# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=procps
PKG_VERSION:=3.2.8
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://procps.sourceforge.net
PKG_MD5SUM:=9532714b6846013ca9898984ba4cd7e0
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/procps
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libncurses
TITLE:=proc utilities
URL:=http://procps.sourceforge.net/
endef
define Package/procps/description
procps is the package that has a bunch of small useful utilities that give
information about processes using the /proc filesystem. The package
includes the programs ps, top, vmstat, w, kill, free, slabtop, and skill.
endef
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
define Package/procps/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/free $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ps/ps $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pgrep $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pkill $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pmap $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pwdx $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/skill $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/slabtop $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/snice $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tload $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/top $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/vmstat $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/w $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/watch $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/proc/libproc-$(PKG_VERSION).so $(1)/usr/lib/
endef
$(eval $(call BuildPackage,procps))