summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2007-01-13 21:45:00 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2007-01-13 21:45:00 +0000
commit9f7a6c9f317a25958a9798b71cd835f8db51d68e (patch)
tree1b2ddb50f4e909ec117e4e19b206a3805841d4c5
parente4816a7fdc3048602eff103e933af2fd8ddeaec0 (diff)
downloadbuildroot-novena-9f7a6c9f317a25958a9798b71cd835f8db51d68e.tar.gz
buildroot-novena-9f7a6c9f317a25958a9798b71cd835f8db51d68e.zip
"Dashing through the snow...with a gForce based display...o'er the data fields we go....cache thrashing all the way...hahaha"
-rw-r--r--package/Config.in1
-rw-r--r--package/dash/Config.in8
-rw-r--r--package/dash/dash.mk73
3 files changed, 82 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index ea8e11e5c..9557ac2a0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -40,6 +40,7 @@ source "package/bridge/Config.in"
source "package/bsdiff/Config.in"
source "package/cairo/Config.in"
source "package/customize/Config.in"
+source "package/dash/Config.in"
source "package/dhcp/Config.in"
source "package/dialog/Config.in"
source "package/dillo/Config.in"
diff --git a/package/dash/Config.in b/package/dash/Config.in
new file mode 100644
index 000000000..4c1158694
--- /dev/null
+++ b/package/dash/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_DASH
+ bool "dash"
+ default n
+ help
+ The Debian/Linux port of the NetBSD version of
+ ash (the Almquist SHell).
+
+ http://gondor.apana.org.au/~herbert/dash
diff --git a/package/dash/dash.mk b/package/dash/dash.mk
new file mode 100644
index 000000000..229887974
--- /dev/null
+++ b/package/dash/dash.mk
@@ -0,0 +1,73 @@
+#############################################################
+#
+# dash
+#
+#############################################################
+DASH_VER:=0.5.3
+DASH_SOURCE:=dash_$(DASH_VER).orig.tar.gz
+DASH_SITE:=http://ftp.debian.org/debian/pool/main/d/dash
+DASH_CAT:=$(ZCAT)
+DASH_DIR:=$(BUILD_DIR)/dash-$(DASH_VER)
+DASH_PATCH1:=dash_$(DASH_VER)-6.diff.gz
+DASH_BINARY:=src/dash
+DASH_TARGET_BINARY:=bin/dash
+
+$(DL_DIR)/$(DASH_SOURCE):
+ $(WGET) -P $(DL_DIR) $(DASH_SITE)/$(DASH_SOURCE)
+
+$(DL_DIR)/$(DASH_PATCH1):
+ $(WGET) -P $(DL_DIR) $(DASH_SITE)/$(DASH_PATCH1)
+
+dash-source: $(DL_DIR)/$(DASH_SOURCE) $(DL_DIR)/$(DASH_PATCH1)
+
+$(DASH_DIR)/.unpacked: $(DL_DIR)/$(DASH_SOURCE) $(DL_DIR)/$(DASH_PATCH1)
+ $(DASH_CAT) $(DL_DIR)/$(DASH_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ $(ZCAT) $(DL_DIR)/$(DASH_PATCH1) | patch -p1 -d $(DASH_DIR)
+ touch $(DASH_DIR)/.unpacked
+
+$(DASH_DIR)/.configured: $(DASH_DIR)/.unpacked
+ (cd $(DASH_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --datadir=/usr/share \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ );
+ touch $(DASH_DIR)/.configured
+
+$(DASH_DIR)/$(DASH_BINARY): $(DASH_DIR)/.configured
+ $(MAKE1) CC=$(TARGET_CC) CC_FOR_BUILD="$(HOSTCC)" -C $(DASH_DIR)
+ touch -c $(DASH_DIR)/$(DASH_BINARY)
+
+$(TARGET_DIR)/$(DASH_TARGET_BINARY): $(DASH_DIR)/$(DASH_BINARY)
+ cp -a $(DASH_DIR)/$(DASH_BINARY) $(TARGET_DIR)/$(DASH_TARGET_BINARY)
+ touch -c $(TARGET_DIR)/$(DASH_TARGET_BINARY)
+
+dash: uclibc $(TARGET_DIR)/$(DASH_TARGET_BINARY)
+
+dash-clean:
+ $(MAKE1) CC=$(TARGET_CC) -C $(DASH_DIR) clean
+ rm -f $(TARGET_DIR)/$(DASH_TARGET_BINARY)
+
+dash-dirclean:
+ rm -rf $(DASH_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_DASH)),y)
+TARGETS+=dash
+endif