diff options
author | Bjoern Buerger <b.buerger@pengutronix.de> | 2007-09-21 18:09:07 +0000 |
---|---|---|
committer | Bjoern Buerger <b.buerger@pengutronix.de> | 2007-09-21 18:09:07 +0000 |
commit | 455f37c5e47b1a7117862d63c84bf3794c69b14f (patch) | |
tree | 55820395062eb35110699cf7083733d2363f5294 | |
parent | 51beb9bc5ad9b5903e1133eb420a4dedada0ac27 (diff) | |
download | ptxdist-455f37c5e47b1a7117862d63c84bf3794c69b14f.tar.gz ptxdist-455f37c5e47b1a7117862d63c84bf3794c69b14f.tar.xz |
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7288 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r-- | rules/Kconfig | 1 | ||||
-rw-r--r-- | rules/less.in | 35 | ||||
-rw-r--r-- | rules/less.make | 141 |
3 files changed, 177 insertions, 0 deletions
diff --git a/rules/Kconfig b/rules/Kconfig index c64b7d24a..80c437a88 100644 --- a/rules/Kconfig +++ b/rules/Kconfig @@ -62,6 +62,7 @@ source "rules/initng.in" source "rules/module-init-tools.in" source "rules/gawk.in" source "rules/hotplug.in" +source "rules/less.in" source "rules/mtd-utils.in" source "rules/pcmcia-cs.in" source "rules/pcmciautils.in" diff --git a/rules/less.in b/rules/less.in new file mode 100644 index 000000000..e2b4f6244 --- /dev/null +++ b/rules/less.in @@ -0,0 +1,35 @@ +menuconfig LESS + bool + default n + prompt "less " + help + Less is a pager. A pager is a program + that displays text files. More info: + http://www.greenwoodsoftware.com/less/ + +config LESS_BIN + bool + default y + depends on LESS && !BB_CONFIG_LESS + prompt "install less pager " + help + less - a pager + +config LESS_KEY + bool + default n + depends on LESS && !BB_CONFIG_LESS + prompt "install lesskey " + help + lesskey - specify key bindings for less + +config LESS_ECHO + bool + default n + depends on LESS && !BB_CONFIG_LESS + prompt "install lessecho " + help + lessecho - expand metacharacters + +comment "busy box' less is selected!" + depends on LESS && BB_CONFIG_LESS diff --git a/rules/less.make b/rules/less.make new file mode 100644 index 000000000..92b10fcd9 --- /dev/null +++ b/rules/less.make @@ -0,0 +1,141 @@ +# -*-makefile-*- +# $Id: template 6655 2007-01-02 12:55:21Z rsc $ +# +# Copyright (C) 2007 by Bjoern Buerger <b.buerger@pengutronix.de> +# +# 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_LESS) += less + +# +# Paths and names +# +LESS_VERSION := 406 +LESS := less-$(LESS_VERSION) +LESS_SUFFIX := tar.gz +LESS_URL := http://www.greenwoodsoftware.com/less/$(LESS).$(LESS_SUFFIX) +LESS_SOURCE := $(SRCDIR)/$(LESS).$(LESS_SUFFIX) +LESS_DIR := $(BUILDDIR)/$(LESS) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +less_get: $(STATEDIR)/less.get + +$(STATEDIR)/less.get: $(less_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(LESS_SOURCE): + @$(call targetinfo, $@) + @$(call get, LESS) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +less_extract: $(STATEDIR)/less.extract + +$(STATEDIR)/less.extract: $(less_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(LESS_DIR)) + @$(call extract, LESS) + @$(call patchin, LESS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +less_prepare: $(STATEDIR)/less.prepare + +LESS_PATH := PATH=$(CROSS_PATH) +LESS_ENV := $(CROSS_ENV) + +# +# autoconf +# +LESS_AUTOCONF := $(CROSS_AUTOCONF_USR) + +$(STATEDIR)/less.prepare: $(less_prepare_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(LESS_DIR)/config.cache) + cd $(LESS_DIR) && \ + $(LESS_PATH) $(LESS_ENV) \ + ./configure $(LESS_AUTOCONF) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +less_compile: $(STATEDIR)/less.compile + +$(STATEDIR)/less.compile: $(less_compile_deps_default) + @$(call targetinfo, $@) + cd $(LESS_DIR) && $(LESS_PATH) $(MAKE) $(PARALLELMFLAGS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +less_install: $(STATEDIR)/less.install + +$(STATEDIR)/less.install: $(less_install_deps_default) + @$(call targetinfo, $@) + @$(call install, LESS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +less_targetinstall: $(STATEDIR)/less.targetinstall + +$(STATEDIR)/less.targetinstall: $(less_targetinstall_deps_default) + @$(call targetinfo, $@) + + @$(call install_init, less) + @$(call install_fixup, less,PACKAGE,less) + @$(call install_fixup, less,PRIORITY,optional) + @$(call install_fixup, less,VERSION,$(LESS_VERSION)) + @$(call install_fixup, less,SECTION,base) + @$(call install_fixup, less,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, less,DEPENDS,) + @$(call install_fixup, less,DESCRIPTION,missing) + +ifdef PTXCONF_LESS_BIN + @$(call install_copy, less, 0, 0, 0755, $(LESS_DIR)/PTXDIST_SYSROOT/usr/bin/less, /usr/bin/less) +endif + +ifdef PTXCONF_LESS_KEY + @$(call install_copy, less, 0, 0, 0755, $(LESS_DIR)/PTXDIST_SYSROOT/usr/bin/lesskey, /usr/bin/lesskey) +endif + +ifdef PTXCONF_LESS_ECHO + @$(call install_copy, less, 0, 0, 0755, $(LESS_DIR)/PTXDIST_SYSROOT/usr/bin/lessecho, /usr/bin/lessecho) +endif + + @$(call install_finish, less) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +less_clean: + rm -rf $(STATEDIR)/less.* + rm -rf $(IMAGEDIR)/less_* + rm -rf $(LESS_DIR) + +# vim: syntax=make |