summaryrefslogtreecommitdiffstats
path: root/rules/ed.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/ed.make')
-rw-r--r--rules/ed.make58
1 files changed, 58 insertions, 0 deletions
diff --git a/rules/ed.make b/rules/ed.make
new file mode 100644
index 000000000..2cabcb034
--- /dev/null
+++ b/rules/ed.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Marc Kleine-Budde <mkl@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_ED) += ed
+
+#
+# Paths and names
+#
+ED_VERSION := 1.7
+ED_MD5 := 0aa4e2428e325203d0d7c3e86c961b1c
+ED := ed-$(ED_VERSION)
+ED_SUFFIX := tar.gz
+ED_URL := $(call ptx/mirror, GNU, ed/$(ED).$(ED_SUFFIX))
+ED_SOURCE := $(SRCDIR)/$(ED).$(ED_SUFFIX)
+ED_DIR := $(BUILDDIR)/$(ED)
+ED_LICENSE := GPLv3
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+ED_CONF_TOOL := autoconf
+ED_CONF_OPT := $(CROSS_AUTOCONF_USR) $(CROSS_ENV_CC)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/ed.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, ed)
+ @$(call install_fixup, ed,PRIORITY,optional)
+ @$(call install_fixup, ed,SECTION,base)
+ @$(call install_fixup, ed,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+ @$(call install_fixup, ed,DESCRIPTION,missing)
+
+ @$(call install_copy, ed, 0, 0, 0755, $(ED_PKGDIR)/usr/bin/ed, /bin/ed)
+ @$(call install_link, ed, ../../bin/ed, /usr/bin/red)
+
+ @$(call install_finish, ed)
+
+ @$(call touch)
+
+# vim: syntax=make