diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-04-19 21:20:40 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-04-19 21:20:40 +0700 |
commit | ace7d22418e956d835b5ad6add20db587f2428db (patch) | |
tree | 677041ed5daa1c254f3e74bb781a6bb1b29e996d /multimedia/guvcview | |
parent | b4a6bfacbfa2df1310ec846b5c75757e2c4a73de (diff) |
multimedia/guvcview: Enable Qt5 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/guvcview')
-rw-r--r-- | multimedia/guvcview/README | 6 | ||||
-rw-r--r-- | multimedia/guvcview/guvcview.SlackBuild | 22 |
2 files changed, 7 insertions, 21 deletions
diff --git a/multimedia/guvcview/README b/multimedia/guvcview/README index c0c3b87fec9d9..976c8ec1cd140 100644 --- a/multimedia/guvcview/README +++ b/multimedia/guvcview/README @@ -3,9 +3,3 @@ 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 without PulseAudio support you can -run the script as follows: - PULSE=NO ./guvcview.SlackBuild - -NOTE: Qt5 support is disabled by default. diff --git a/multimedia/guvcview/guvcview.SlackBuild b/multimedia/guvcview/guvcview.SlackBuild index eb1ce668ce298..bd5f89a1ef014 100644 --- a/multimedia/guvcview/guvcview.SlackBuild +++ b/multimedia/guvcview/guvcview.SlackBuild @@ -1,8 +1,8 @@ #!/bin/sh -# Slackware build script for GuvcView. +# Slackware build script for guvcview # -# Copyright 2010-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2010-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=guvcview VERSION=${VERSION:-2.0.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} DOCS="AUTHORS COPYING ChangeLog INSTALL README.md" @@ -42,9 +42,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# By default, we will use PulseAudio -PULSE=${PULSE:-"yes"} - if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" @@ -59,13 +56,6 @@ else LIBDIRSUFFIX="" fi -# Give users an option to disable PulseAudio -if [ "$PULSE" = "NO" ]; then - PULSEAUDIO="--disable-pulse" -else - PULSEAUDIO="" -fi - set -e rm -rf $PKG @@ -91,12 +81,14 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --disable-debian-menu \ --enable-static=no \ - --build=$ARCH-slackware-linux \ - $PULSEAUDIO + --enable-qt5 \ + --build=$ARCH-slackware-linux make make install DESTDIR=$PKG +rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.la + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |