add package dialog per case 0000148
authorDavid Anders <dave123@abcsinc.com>
Mon, 23 Jan 2006 18:27:46 +0000 (18:27 -0000)
committerDavid Anders <dave123@abcsinc.com>
Mon, 23 Jan 2006 18:27:46 +0000 (18:27 -0000)
package/Config.in
package/dialog/Config.in [new file with mode: 0644]
package/dialog/dialog.mk [new file with mode: 0644]

index d05ac727d59bc9a9d2f7dcabe5e3a4c20c9ba8a9..1022ca676304056e980932ea167147e40e7f7679 100644 (file)
@@ -34,6 +34,7 @@ source "package/boa/Config.in"
 source "package/bridge/Config.in"
 source "package/customize/Config.in"
 source "package/dhcp/Config.in"
+source "package/dialog/Config.in"
 source "package/directfb/Config.in"
 source "package/distcc/Config.in"
 source "package/dm/Config.in"
diff --git a/package/dialog/Config.in b/package/dialog/Config.in
new file mode 100644 (file)
index 0000000..8f9c915
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_DIALOG
+    bool "dialog"
+    default n
+    select BR2_PACKAGE_NCURSES
+    help
+        dialog - display dialog boxes from shell scripts
+
+        This application provides a method of displaying several different types
+        of dialog boxes from shell scripts.  This allows a developer of a script
+        to interact with the user in a much friendlier manner.
+
diff --git a/package/dialog/dialog.mk b/package/dialog/dialog.mk
new file mode 100644 (file)
index 0000000..678a256
--- /dev/null
@@ -0,0 +1,58 @@
+#############################################################
+#
+# dialog
+#
+#############################################################
+###testing: DIALOG_VERSION:=1.0-20050116-1
+DIALOG_VERSION:=1.0-20050206
+DIALOG_SOURCE:=dialog_$(DIALOG_VERSION).orig.tar.gz
+DIALOG_SITE:=http://ftp.debian.org/debian/pool/main/d/dialog
+DIALOG_DIR:=$(BUILD_DIR)/dialog-$(DIALOG_VERSION)
+# http://ftp.debian.org/debian/pool/main/d/dialog/dialog_1.0-20050306-1.diff.gz
+DIALOG_PATCH1:=dialog_$(DIALOG_VERSION)-1.diff.gz
+DIALOG_PATCH1_URL:=$(DIALOG_SITE)
+DIALOG_BINARY:=dialog
+DIALOG_TARGET_BINARY:=usr/bin/dialog
+
+$(DL_DIR)/$(DIALOG_SOURCE):
+       $(WGET) -P $(DL_DIR) $(DIALOG_SITE)/$(DIALOG_SOURCE)
+
+$(DL_DIR)/$(DIALOG_PATCH1):
+       $(WGET) -P $(DL_DIR) $(DIALOG_PATCH1_URL)/$(DIALOG_PATCH1)
+
+$(DIALOG_DIR)/.source: $(DL_DIR)/$(DIALOG_SOURCE) $(DL_DIR)/$(DIALOG_PATCH1)
+       zcat $(DL_DIR)/$(DIALOG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+       zcat $(DL_DIR)/$(DIALOG_PATCH1) | patch -p1 -d $(DIALOG_DIR)
+       touch $(DIALOG_DIR)/.source
+
+$(DIALOG_DIR)/.configured: $(DIALOG_DIR)/.source
+       (cd $(DIALOG_DIR); \
+               $(TARGET_CONFIGURE_OPTS) \
+               CFLAGS="$(TARGET_CFLAGS)" \
+               ./configure \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
+               --prefix=/usr \
+               --sysconfdir=/etc \
+       );
+       touch $(DIALOG_DIR)/.configured;
+
+$(DIALOG_DIR)/$(DIALOG_BINARY): $(DIALOG_DIR)/.configured
+       $(MAKE) CC=$(TARGET_CC) -C $(DIALOG_DIR)
+
+$(TARGET_DIR)/$(DIALOG_TARGET_BINARY): $(DIALOG_DIR)/$(DIALOG_BINARY)
+       $(MAKE) prefix=$(TARGET_DIR)/usr -C $(DIALOG_DIR) install
+       rm -Rf $(TARGET_DIR)/usr/man
+
+dialog: uclibc ncurses $(TARGET_DIR)/$(DIALOG_TARGET_BINARY)
+
+dialog-source: $(DL_DIR)/$(DIALOG_SOURCE)
+
+dialog-clean:
+       $(MAKE) prefix=$(TARGET_DIR)/usr -C $(DIALOG_DIR) uninstall
+       -$(MAKE) -C $(DIALOG_DIR) clean
+
+dialog-dirclean:
+       rm -rf $(DIALOG_DIR)
+