1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00
freebsd-ports/multimedia/mplayer-skins/scripts/choice
Joe Marcus Clarke d0d9fae0d4 Correct the formatting of the skin selector dialog.
Approved by:	maintainer
2003-03-28 05:04:53 +00:00

76 lines
2.2 KiB
Bash

#! /bin/sh
# $FreeBSD$
# based on configure from mplayer-skins by Andreas Klemm <andreas@FreeBSD.org>
if [ "$BATCH" != "yes" ]; then
#
# configure - mplayer-skins installation options
#
/usr/bin/dialog --title "mplayer skins" --clear \
--checklist "\n\
This configuration dialog allows you to choose \n\
only the skins you really want.\n\
Select the skins you want to install:" -1 -1 13 \
"ALL" "Install ALL skins" OFF \
"Default" "The default MPlayer skin" ON \
"AlienMind" "AlienMind by Nucleo (XMMS/WinAMP skin)" OFF \
"avifile" "MPlayer skin, with the look of aviplay" OFF \
"BlueHeart" "MPlayer conversion of a BlueHeart XMMS skin" OFF \
"CornerMP" "CornerMP" OFF \
"CornerMP-agua" "CornerMP agua" OFF \
"Cyrus" "Cyrus skin from XMMS" OFF \
"gnome" "Based on the GNOME logo" OFF \
"hayraphon" "no comment" OFF \
"hwsw-skin" "no comment" OFF \
"Mentalic" "Sharp and shiny" OFF \
"MidnightLove" "MPlayer version of WinAMP/XMMS Rei Ayanami's skin" OFF \
"Neutron" "VERY nice skin!" OFF \
"Phony" "Look-and-feel of a desktop DVD player" OFF \
"Plastic" "Remote control-like skin with plastic feeling" OFF \
"Proton" "Proton" OFF \
"Slim" "Slim" OFF \
"trium" "Based on a mobile phone" OFF \
"WindowsMediaPlayer6" "no comment" OFF \
"Xanim" "xanim \"feeling\"" OFF \
"Xine-LCD" "MPlayer conversion of Xine's LCD skin" OFF \
"Mini" "Mplayer-plugin for mozilla" OFF \
2> /tmp/mplayer-skins-checklist.$$
retval=$?
if [ -s /tmp/mplayer-skins-checklist.$$ ]; then
set `cat /tmp/mplayer-skins-checklist.$$`
fi
rm -f /tmp/mplayer-skins-checklist.$$
case $retval in
0) if [ -z "$*" ]; then
echo "Nothing selected."
echo "You HAVE to choose, at least, one skin."
exit 1
fi
;;
1) echo "Cancel pressed."
exit 1
;;
esac
/bin/mkdir -p ${WRKDIRPREFIX}${CURDIR}
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
while [ "$1" ]; do
echo WITH_SKIN_`echo "$1" | tr "[:lower:]" "[:upper:]" | tr " -" "_" | tr -d \"`=yes
shift
done
fi # if $BATCH
# if batch, then start creating Makefile.inc here
if [ "$BATCH" = "yes" ]; then
/bin/mkdir -p ${WRKDIRPREFIX}${CURDIR}
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
fi