freebsd-ports/biology/emboss/scripts/configure.emboss
Kevin Lo dba8433b08 Upgrade to version 1.9.0
PR: 24597
Submitted by: MAINTAINER
2001-01-24 11:36:37 +00:00

65 lines
1.3 KiB
Bash

#!/bin/sh
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
fi
if [ "${BATCH}" ]; then
set \"EMNU\" \"MSE\" \"PHYLIP\" \"TOPO\"
else
/usr/bin/dialog --title "EMBOSS: EMBASSY applications" --clear \
--checklist "\n\
These third party applications have been adapted to
function as part of EMBOSS.\n
Please select EMBASSY applications to install:" -1 -1 4 \
EMNU "v${EMNU_VERSION} - Text-based menu" ON \
MSE "v${MSE_VERSION} - Phylogeny inference" ON \
PHYLIP "v${PHYLIP_VERSION} - Sequence editor" ON \
TOPO "v${TOPO_VERSION} - Transmembrane display" ON \
2> /tmp/checklist.tmp.$$
retval=$?
if [ -s /tmp/checklist.tmp.$$ ]; then
set `cat /tmp/checklist.tmp.$$`
fi
${RM} -f /tmp/checklist.tmp.$$
case $retval in
0)
if [ -z "$*" ]; then
echo "Nothing selected"
fi
;;
1)
echo "Cancel pressed."
exit 1
;;
esac
fi
${MKDIR} ${WRKDIRPREFIX}${CURDIR}
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
while [ "$1" ]; do
case $1 in
\"EMNU\")
echo "WITH_EMNU= yes"
;;
\"MSE\")
echo "WITH_MSE= yes"
;;
\"PHYLIP\")
echo "WITH_PHYLIP= yes"
;;
\"TOPO\")
echo "WITH_TOPO= yes"
;;
*)
echo "Invalid option(s): $*" > /dev/stderr
${RM} -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
;;
esac
shift
done