diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2008-06-13 09:57:51 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2008-06-13 09:57:51 +0000 |
commit | 38e5e7cad8cf2c3cecbe6d55d85f1056c9f22643 (patch) | |
tree | 90e94094b35fdc0d2320a186ec1153e8b8a70928 /rules/htop.make | |
parent | 8570b6c04ab0d04c59125c2503ef7dc59568d7e9 (diff) | |
download | ptxdist-38e5e7cad8cf2c3cecbe6d55d85f1056c9f22643.tar.gz ptxdist-38e5e7cad8cf2c3cecbe6d55d85f1056c9f22643.tar.xz |
* htop.in, htop.make:
ported from techpool
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8516 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/htop.make')
-rw-r--r-- | rules/htop.make | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/rules/htop.make b/rules/htop.make new file mode 100644 index 000000000..0770a7461 --- /dev/null +++ b/rules/htop.make @@ -0,0 +1,85 @@ +# -*-makefile-*- +# $Id: template 6655 2007-01-02 12:55:21Z rsc $ +# +# Copyright (C) 2007 by Robert Schwebel +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_HTOP) += htop + +# +# Paths and names +# +HTOP_VERSION := 0.7 +HTOP := htop-$(HTOP_VERSION) +HTOP_SUFFIX := tar.gz +HTOP_URL := $(PTXCONF_SETUP_SFMIRROR)/htop/$(HTOP).$(HTOP_SUFFIX) +HTOP_SOURCE := $(SRCDIR)/$(HTOP).$(HTOP_SUFFIX) +HTOP_DIR := $(BUILDDIR)/$(HTOP) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(HTOP_SOURCE): + @$(call targetinfo) + @$(call get, HTOP) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +htop_prepare: $(STATEDIR)/htop.prepare + +HTOP_PATH := PATH=$(CROSS_PATH) +HTOP_ENV := \ + $(CROSS_ENV) \ + ac_cv_file__proc_stat=yes \ + ac_cv_file__proc_meminfo=yes \ + ac_cv_func_malloc_0_nonnull=yes \ + ac_cv_func_realloc_0_nonnull=yes + +# +# autoconf +# +HTOP_AUTOCONF := $(CROSS_AUTOCONF_USR) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/htop.targetinstall: + @$(call targetinfo) + + @$(call install_init, htop) + @$(call install_fixup, htop,PACKAGE,htop) + @$(call install_fixup, htop,PRIORITY,optional) + @$(call install_fixup, htop,VERSION,$(HTOP_VERSION)) + @$(call install_fixup, htop,SECTION,base) + @$(call install_fixup, htop,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, htop,DEPENDS,) + @$(call install_fixup, htop,DESCRIPTION,missing) + + @$(call install_copy, htop, 0, 0, 0755, $(HTOP_DIR)/htop, /usr/bin/htop) + + @$(call install_finish, htop) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +htop_clean: + rm -rf $(STATEDIR)/htop.* + rm -rf $(PKGDIR)/htop_* + rm -rf $(HTOP_DIR) + +# vim: syntax=make |