multimedia/gnash: Added a switch to disable the konqueror plugin.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Kyle Guinn 2012-12-23 07:14:30 +01:00 committed by Matteo Bernardini
parent 4287547e54
commit 21f84fc8e7
2 changed files with 20 additions and 8 deletions

View File

@ -1,5 +1,9 @@
Gnash is the GNU SWF movie player, which can be run standalone on the
desktop or an embedded device, as well as as a plugin for several browsers.
If you don't want to compile it or if you don't have KDE installed,
you can disable the Konqueror plugin ("Klash") like this:
KLASH=no ./gnash.SlackBuild
Optional but recommended dependencies are speex, gst-ffmpeg,
and gst-plugins-ugly
and gst-plugins-ugly.

View File

@ -24,7 +24,7 @@
PRGNAM=gnash
VERSION=${VERSION:-0.8.10}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -56,6 +56,19 @@ else
LIBDIRSUFFIX=""
fi
# Set $KLASH to "no" to disable Klash, the Konqueror plugin.
if [ "${KLASH:-yes}" = "yes" ]; then
KLASH_OPT="\
--with-kde4-incl=/usr/include \
--with-kde4-configdir=/usr/share/config \
--with-kde4-prefix=/usr \
--with-kde4-lib=/usr/lib${LIBDIRSUFFIX} \
--with-kde-appsdatadir=/usr/share/apps/klash \
--with-kde4-servicesdir=/usr/share/kde4/services"
else
KLASH_OPT="--disable-kparts3 --disable-kparts4"
fi
set -e
rm -rf $PKG
@ -94,12 +107,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-write \
--without-gconf \
--with-plugins-install=system \
--with-kde4-incl=/usr/include \
--with-kde4-configdir=/usr/share/config \
--with-kde4-prefix=/usr \
--with-kde4-lib=/usr/lib$LIBDIRSUFFIX \
--with-kde-appsdatadir=/usr/share/apps/klash \
--with-kde4-servicesdir=/usr/share/kde4/services
$KLASH_OPT
make
make install-strip install-plugins DESTDIR=$PKG