diff options
author | Bjoern Buerger <b.buerger@pengutronix.de> | 2009-09-06 15:27:37 +0200 |
---|---|---|
committer | Bjoern Buerger <b.buerger@pengutronix.de> | 2009-09-15 11:01:45 +0200 |
commit | a7d2617c86db0d35ea1e00b3f1b9e43bc742eec5 (patch) | |
tree | 6b46b22f22d2d0b658fe0223f7bf38cd3a837e52 /rules/totd.make | |
parent | fba52d64102f7a1b989a2de6053684447135cfe8 (diff) | |
download | ptxdist-a7d2617c86db0d35ea1e00b3f1b9e43bc742eec5.tar.gz ptxdist-a7d2617c86db0d35ea1e00b3f1b9e43bc742eec5.tar.xz |
[totd] added Trick Or Treat Daemon (TOTD)
initial package, currently broken
needs compile fixed, addiditional patches available, needs review.
Signed-off-by: Bjoern Buerger <b.buerger@pengutronix.de>
Diffstat (limited to 'rules/totd.make')
-rw-r--r-- | rules/totd.make | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/rules/totd.make b/rules/totd.make new file mode 100644 index 000000000..03fee898a --- /dev/null +++ b/rules/totd.make @@ -0,0 +1,116 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2009 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_TOTD) += totd + +# +# Paths and names +# +TOTD_VERSION := 1.5 +TOTD := totd-$(TOTD_VERSION) +TOTD_SUFFIX := tar.gz +TOTD_URL := ftp://ftp.pasta.cs.uit.no/pub/Vermicelli//$(TOTD).$(TOTD_SUFFIX) +TOTD_SOURCE := $(SRCDIR)/$(TOTD).$(TOTD_SUFFIX) +TOTD_DIR := $(BUILDDIR)/$(TOTD) +PTRTD_LICENSE := multiple, BSD Style + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(TOTD_SOURCE): + @$(call targetinfo) + @$(call get, TOTD) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/totd.extract: + @$(call targetinfo) + @$(call clean, $(TOTD_DIR)) + @$(call extract, TOTD) + @$(call patchin, TOTD) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +TOTD_PATH := PATH=$(CROSS_PATH) +TOTD_ENV := $(CROSS_ENV) + +# +# autoconf +# +TOTD_AUTOCONF := $(CROSS_AUTOCONF_USR) + +$(STATEDIR)/totd.prepare: + @$(call targetinfo) + @$(call clean, $(TOTD_DIR)/config.cache) + cd $(TOTD_DIR) && \ + $(TOTD_PATH) $(TOTD_ENV) \ + ./configure $(TOTD_AUTOCONF) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/totd.compile: + @$(call targetinfo) + cd $(TOTD_DIR) && $(TOTD_PATH) $(MAKE) $(PARALLELMFLAGS) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/totd.install: + @$(call targetinfo) + @$(call install, TOTD) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/totd.targetinstall: + @$(call targetinfo) + + @$(call install_init, totd) + @$(call install_fixup, totd,PACKAGE,totd) + @$(call install_fixup, totd,PRIORITY,optional) + @$(call install_fixup, totd,VERSION,$(TOTD_VERSION)) + @$(call install_fixup, totd,SECTION,base) + @$(call install_fixup, totd,AUTHOR,"Bjoern Buerger <b.buerger@pengutronix.de>") + @$(call install_fixup, totd,DEPENDS,) + @$(call install_fixup, totd,DESCRIPTION,missing) + + @$(call install_copy, totd, 0, 0, 0755, $(TOTD_DIR)/foobar, /dev/null) + + @$(call install_finish, totd) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +totd_clean: + rm -rf $(STATEDIR)/totd.* + rm -rf $(PKGDIR)/totd_* + rm -rf $(TOTD_DIR) + +# vim: syntax=make |