summaryrefslogtreecommitdiffstats
path: root/package/editors/ed
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-03-07 10:00:04 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-03-07 10:00:04 +0000
commitd47bd2de38a6a7efb5e104c37af5761b530629a8 (patch)
treefc445a15868d0e04690efefced8a481963ff5f6c /package/editors/ed
parent5381e1c4862578b1265cdbe66cf65db3d7ca3b22 (diff)
downloadbuildroot-novena-d47bd2de38a6a7efb5e104c37af5761b530629a8.tar.gz
buildroot-novena-d47bd2de38a6a7efb5e104c37af5761b530629a8.zip
buildroot: move editors under package/editors and merge menus
Based on patch by Arnar Mar Sig.
Diffstat (limited to 'package/editors/ed')
-rw-r--r--package/editors/ed/Config.in9
-rw-r--r--package/editors/ed/ed.mk59
2 files changed, 68 insertions, 0 deletions
diff --git a/package/editors/ed/Config.in b/package/editors/ed/Config.in
new file mode 100644
index 000000000..d14343fdf
--- /dev/null
+++ b/package/editors/ed/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_ED
+ bool "ed"
+ default n
+ help
+ A line-oriented text editor. Used to create, display, modify,
+ and otherwise manipulate text files. Often used in scripts
+ rather than invoked directly.
+
+ http://www.gnu.org/software/ed/
diff --git a/package/editors/ed/ed.mk b/package/editors/ed/ed.mk
new file mode 100644
index 000000000..00ce8567e
--- /dev/null
+++ b/package/editors/ed/ed.mk
@@ -0,0 +1,59 @@
+#############################################################
+#
+# ed
+#
+#############################################################
+ED_VERSION:=0.8
+ED_SOURCE:=ed-$(ED_VERSION).tar.bz2
+ED_SITE:=$(BR2_GNU_MIRROR)/ed/
+ED_CAT:=$(BZCAT)
+ED_DIR:=$(BUILD_DIR)/ed-$(ED_VERSION)
+ED_BINARY:=ed
+ED_TARGET_BINARY:=bin/ed
+
+$(DL_DIR)/$(ED_SOURCE):
+ $(WGET) -P $(DL_DIR) $(ED_SITE)/$(ED_SOURCE)
+
+$(ED_DIR)/.unpacked: $(DL_DIR)/$(ED_SOURCE)
+ $(ED_CAT) $(DL_DIR)/$(ED_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(ED_DIR) package/ed/ ed-\*.patch
+ touch $@
+
+$(ED_DIR)/.configured: $(ED_DIR)/.unpacked
+ (cd $(ED_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ $(TARGET_CONFIGURE_ARGS) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ )
+ touch $@
+
+$(ED_DIR)/$(ED_BINARY): $(ED_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) -C $(ED_DIR)
+
+$(TARGET_DIR)/$(ED_TARGET_BINARY): $(ED_DIR)/$(ED_BINARY)
+ $(INSTALL) -D $(ED_DIR)/$(ED_BINARY) $(TARGET_DIR)/$(ED_TARGET_BINARY)
+
+ed: uclibc $(TARGET_DIR)/$(ED_TARGET_BINARY)
+
+ed-source: $(DL_DIR)/$(ED_SOURCE)
+
+ed-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(ED_DIR) uninstall
+ -$(MAKE) -C $(ED_DIR) clean
+
+ed-dirclean:
+ rm -rf $(ED_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_ED)),y)
+TARGETS+=ed
+endif