summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/dialog.in13
-rw-r--r--rules/dialog.make63
2 files changed, 76 insertions, 0 deletions
diff --git a/rules/dialog.in b/rules/dialog.in
new file mode 100644
index 000000000..b1a3104c7
--- /dev/null
+++ b/rules/dialog.in
@@ -0,0 +1,13 @@
+## SECTION=shell_and_console
+
+config DIALOG
+ tristate
+ select NCURSES
+ prompt "dialog"
+ help
+ Dialog is a program that will let you to present a variety of
+ questions or display messages using dialog boxes from a shell script.
+ It is built from the dialog library, which consists of several widgets
+ as well as utility functions that are used by the widgets or the main
+ program.
+
diff --git a/rules/dialog.make b/rules/dialog.make
new file mode 100644
index 000000000..b3d45e218
--- /dev/null
+++ b/rules/dialog.make
@@ -0,0 +1,63 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2010 by Bart vdr. Meulen <bartvdrmeulen@gmail.com>
+#
+# 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_DIALOG) += dialog
+
+#
+# Paths and names
+#
+DIALOG_VERSION := 1.1-20100119
+DIALOG := dialog-$(DIALOG_VERSION)
+DIALOG_SUFFIX := tgz
+DIALOG_URL := ftp://invisible-island.net/dialog/$(DIALOG).$(DIALOG_SUFFIX)
+DIALOG_SOURCE := $(SRCDIR)/$(DIALOG).$(DIALOG_SUFFIX)
+DIALOG_DIR := $(BUILDDIR)/$(DIALOG)
+DIALOG_LICENSE := LGPLv2.1
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(DIALOG_SOURCE):
+ @$(call targetinfo)
+ @$(call get, DIALOG)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+DIALOG_CONF_TOOL := autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/dialog.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, dialog)
+ @$(call install_fixup, dialog,PACKAGE,dialog)
+ @$(call install_fixup, dialog,PRIORITY,optional)
+ @$(call install_fixup, dialog,VERSION,$(DIALOG_VERSION))
+ @$(call install_fixup, dialog,SECTION,base)
+ @$(call install_fixup, dialog,AUTHOR,"Bart vdr. Meulen <bartvdrmeulen@gmail.com>")
+ @$(call install_fixup, dialog,DEPENDS,)
+ @$(call install_fixup, dialog,DESCRIPTION,missing)
+
+ @$(call install_copy, dialog, 0, 0, 0755, -, /usr/bin/dialog)
+
+ @$(call install_finish, dialog)
+
+ @$(call touch)
+
+# vim: syntax=make