summaryrefslogtreecommitdiff
path: root/polish/gnugadu2/scripts/configure.gg
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2003-05-10 20:02:43 +0000
committerPete Fritchman <petef@FreeBSD.org>2003-05-10 20:02:43 +0000
commitce99ce06835a00acab7b3ade97dcc5c42114ec8e (patch)
tree0046669a49472846bcee3b8e2f799148a911167e /polish/gnugadu2/scripts/configure.gg
parentThe port is still BROKEN, but the distfile is fetchable now. (diff)
- update to 1.0.0
- master site & homepage now live at sourceforge - update maintainer's email address - add a configuration dialog menu - PERL -> REINPLACE_CMD PR: 51748 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=80622
Diffstat (limited to '')
-rw-r--r--polish/gnugadu2/scripts/configure.gg77
1 files changed, 77 insertions, 0 deletions
diff --git a/polish/gnugadu2/scripts/configure.gg b/polish/gnugadu2/scripts/configure.gg
new file mode 100644
index 000000000000..2a1949ef5284
--- /dev/null
+++ b/polish/gnugadu2/scripts/configure.gg
@@ -0,0 +1,77 @@
+#!/bin/sh
+# $FreeBSD$
+
+if [ -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc ]; then
+ exit
+fi
+
+tempfile=`/usr/bin/mktemp -t checklist`
+
+if [ "${BATCH}" ]; then
+ if [ "${GNUGADU_OPTIONS}" ]; then
+ set ${GNUGADU_OPTIONS}
+ else
+ set \"esd\"
+ fi
+else
+ /usr/bin/dialog --title "configuration options" --clear \
+ --checklist "\n\
+Please select desired options:" -1 -1 16 \
+esd "esd support" ON \
+arts "arts support" OFF \
+gnome "GNOME support" OFF \
+panel "GNOME applet support" OFF \
+2> $tempfile
+
+ retval=$?
+
+ if [ -s $tempfile ]; then
+ set `cat $tempfile`
+ fi
+ rm -f $tempfile
+
+ case $retval in
+ 0) if [ -z "$*" ]; then
+ echo "Nothing selected"
+ fi
+ ;;
+ 1) echo "Cancel pressed."
+ exit 1
+ ;;
+ esac
+fi
+
+${MKDIR} ${WRKDIRPREFIX}${REALCURDIR}
+exec > ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
+
+while [ "$1" ]; do
+ case $1 in
+ \"esd\")
+ echo "USE_GNOME+= esound"
+ echo "CONFIGURE_ARGS+= --enable-esd"
+ esd="yes"
+ ;;
+ \"arts\")
+ echo "CONFIGURE_ARGS+= --enable-arts"
+ echo "LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts"
+ ;;
+ \"gnome\")
+ echo "USE_GNOME+= gnomelibs"
+ echo "CONFIGURE_ARGS+= --enable-gnome"
+ ;;
+ \"panel\")
+ echo "USE_GNOME+= gnomepanel"
+ echo "CONFIGURE_ARGS+= --enable-panel"
+ ;;
+ *)
+ echo "Invalid option(s): $1" >&2
+ rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
+ exit 1
+ ;;
+ esac
+ shift
+done
+
+if [ -z "${esd}" ]; then
+ echo "CONFIGURE_ARGS+= --disable-esd --without-esd"
+fi