--- /dev/null
+Index: dialog-1.0-20050306/configure.in
+===================================================================
+--- dialog-1.0-20050306.orig/configure.in
++++ dialog-1.0-20050306/configure.in
+@@ -137,6 +137,20 @@ strcasecmp \
+ waitpid \
+ )
+
++AH_TEMPLATE([HAVE_FLUSHINP], [Define if you have the flushinp function])
++AH_TEMPLATE([HAVE_GETBEGX], [Define if you have the getbegx function])
++AH_TEMPLATE([HAVE_GETBEGY], [Define if you have the getbegy function])
++AH_TEMPLATE([HAVE_GETBEGYX], [Define if you have the getbegyx function])
++AH_TEMPLATE([HAVE_GETCURX], [Define if you have the getcurx function])
++AH_TEMPLATE([HAVE_GETCURY], [Define if you have the getcury function])
++AH_TEMPLATE([HAVE_GETMAXX], [Define if you have the getcury function])
++AH_TEMPLATE([HAVE_GETMAXY], [Define if you have the getcury function])
++AH_TEMPLATE([HAVE_GETMAXYX], [Define if you have the getcury function])
++AH_TEMPLATE([HAVE_GETPARX], [Define if you have the getcury function])
++AH_TEMPLATE([HAVE_GETPARY], [Define if you have the getcury function])
++AH_TEMPLATE([HAVE_GETPARYX], [Define if you have the getcury function])
++AH_TEMPLATE([HAVE_WGET_WCH], [Define if you have the getcury function])
++
+ CF_CURSES_FUNCS(\
+ flushinp \
+ getbegx \
--- /dev/null
+SECTION = "console/utils"
+DEPENDS = "ncurses"
+LICENSE = "GPL"
+DESCRIPTION = "Dialog lets you to present a variety of questions \
+or display messages using dialog boxes from a shell \
+script (or any scripting language)."
+
+SRC_URI = "ftp://ftp.us.debian.org/debian/pool/main/d/dialog/dialog_${PV}.orig.tar.gz \
+ file://configure.patch;patch=1 \
+ file://m4.patch;patch=1 \
+ file://templates.patch;patch=1"
+
+inherit autotools