summaryrefslogtreecommitdiffstats
path: root/rules/mgetty.make
diff options
context:
space:
mode:
authorBenedikt Spranger <b.spranger@pengutronix.de>2004-02-12 09:44:03 +0000
committerBenedikt Spranger <b.spranger@pengutronix.de>2004-02-12 09:44:03 +0000
commita9f5720e89d12b7ce27a971955e6ba453762191d (patch)
tree1b270497e54e25b5bdfaf5418e4162d529d81d0d /rules/mgetty.make
parentb4b2dc8e1eccbbc7dfe6996f4c21570ccb5daf72 (diff)
downloadptxdist-a9f5720e89d12b7ce27a971955e6ba453762191d.tar.gz
ptxdist-a9f5720e89d12b7ce27a971955e6ba453762191d.tar.xz
BSP: Mgetty and sendfax added.
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunk@1057 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/mgetty.make')
-rw-r--r--rules/mgetty.make127
1 files changed, 127 insertions, 0 deletions
diff --git a/rules/mgetty.make b/rules/mgetty.make
new file mode 100644
index 000000000..b67e2e44e
--- /dev/null
+++ b/rules/mgetty.make
@@ -0,0 +1,127 @@
+# -*-makefile-*-
+# $Id: mgetty.make,v 1.1 2004/02/12 09:44:03 bsp Exp $
+#
+# Copyright (C) 2003 by BSP
+#
+# 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
+#
+ifdef PTXCONF_MGETTY
+PACKAGES += mgetty
+endif
+
+#
+# Paths and names
+#
+MGETTY_VERSION = 1.1.30
+MGETTY_DATE = Dec16
+MGETTY = mgetty$(MGETTY_VERSION)
+MGETTY_SUFFIX = tar.gz
+MGETTY_URL = ftp://ftp.leo.org/pub/comp/os/unix/networking/mgetty/$(MGETTY)-$(MGETTY_DATE).$(MGETTY_SUFFIX)
+MGETTY_SOURCE = $(SRCDIR)/$(MGETTY)-$(MGETTY_DATE).$(MGETTY_SUFFIX)
+MGETTY_DIR = $(BUILDDIR)/mgetty-$(MGETTY_VERSION)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+mgetty_get: $(STATEDIR)/mgetty.get
+
+mgetty_get_deps = $(MGETTY_SOURCE)
+
+$(STATEDIR)/mgetty.get: $(mgetty_get_deps)
+ @$(call targetinfo, $@)
+ touch $@
+
+$(MGETTY_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, $(MGETTY_URL))
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+mgetty_extract: $(STATEDIR)/mgetty.extract
+
+mgetty_extract_deps = $(STATEDIR)/mgetty.get
+
+$(STATEDIR)/mgetty.extract: $(mgetty_extract_deps)
+ @$(call targetinfo, $@)
+ @$(call clean, $(MGETTY_DIR))
+ @$(call extract, $(MGETTY_SOURCE))
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+mgetty_prepare: $(STATEDIR)/mgetty.prepare
+
+#
+# dependencies
+#
+mgetty_prepare_deps = \
+ $(STATEDIR)/mgetty.extract \
+ $(STATEDIR)/virtual-xchain.install
+
+MGETTY_PATH = PATH=$(CROSS_PATH)
+MGETTY_ENV = $(CROSS_ENV)
+#MGETTY_ENV +=
+
+$(STATEDIR)/mgetty.prepare: $(mgetty_prepare_deps)
+ @$(call targetinfo, $@)
+ @$(call clean, $(MGETTY_DIR)/config.cache)
+ cp $(PTXCONF_MGETTY_CONFIG) $(MGETTY_DIR)/policy.h
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+mgetty_compile: $(STATEDIR)/mgetty.compile
+
+mgetty_compile_deps = $(STATEDIR)/mgetty.prepare
+
+$(STATEDIR)/mgetty.compile: $(mgetty_compile_deps)
+ @$(call targetinfo, $@)
+ $(MGETTY_PATH) $(MGETTY_ENV) make -C $(MGETTY_DIR) bin-all
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+mgetty_install: $(STATEDIR)/mgetty.install
+
+$(STATEDIR)/mgetty.install: $(STATEDIR)/mgetty.compile
+ @$(call targetinfo, $@)
+ $(MGETTY_PATH) make -C $(MGETTY_DIR) install
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+mgetty_targetinstall: $(STATEDIR)/mgetty.targetinstall
+
+mgetty_targetinstall_deps = $(STATEDIR)/mgetty.compile
+
+$(STATEDIR)/mgetty.targetinstall: $(mgetty_targetinstall_deps)
+ @$(call targetinfo, $@)
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+mgetty_clean:
+ rm -rf $(STATEDIR)/mgetty.*
+ rm -rf $(MGETTY_DIR)
+
+# vim: syntax=make