multimedia/guvcview: Added pulseaudio switch, cleanups.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2012-12-26 10:53:47 +01:00 committed by Matteo Bernardini
parent 1a4eb09f5e
commit 5ca39d2ad4
3 changed files with 27 additions and 7 deletions

View File

@ -3,3 +3,7 @@ guvcview (GTK+ UVC Viewer)
This project aims at providing a simple GTK interface for capturing and
viewing video from devices supported by the linux UVC driver, although
it should also work with any v4l2 compatible device.
If you want to compile guvcview using PulseAudio support you can
run the script as follows:
PULSE=YES ./guvcview.SlackBuild

View File

@ -2,7 +2,7 @@
# Slackware build script for GuvcView.
#
# Copyright 2010-2011 Willy Sudiarto Raharjo <willysr@slackware-id.org>
# Copyright 2010-2012 Willy Sudiarto Raharjo <willysr@slackware-id.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,10 +25,10 @@
PRGNAM=guvcview
VERSION=${VERSION:-1.6.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README"
DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL README"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -43,6 +43,9 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# By default, we don't want to use PulseAudio
PULSE=${PULSE:-"no"}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@ -57,6 +60,13 @@ else
LIBDIRSUFFIX=""
fi
# Give users an option to use PulseAudio
if [ "$PULSE" = "YES" ]; then
PULSEAUDIO=""
else
PULSEAUDIO="--disable-pulse"
fi
set -e
rm -rf $PKG
@ -78,18 +88,24 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--mandir=/usr/man \
--localstatedir=/var \
--disable-debian-menu \
$PULSEAUDIO \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
# ignores --mandir
mv $PKG/usr/share/man $PKG/usr/man
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Remove redundant documentations
rm -rf $PKG/usr/share/doc
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View File

@ -1,7 +1,7 @@
PRGNAM="guvcview"
VERSION="1.6.1"
HOMEPAGE="http://guvcview.berlios.de/downloads.html"
DOWNLOAD="http://downloads.sourceforge.net/project/guvcview/source/guvcview-src-1.6.1.tar.gz"
DOWNLOAD="http://downloads.sourceforge.net/guvcview/guvcview-src-1.6.1.tar.gz"
MD5SUM="b3dfd04d8aae0c807d5f5d6ba035580f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""