aboutsummaryrefslogtreecommitdiff
path: root/multimedia/xvst/xvst.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/xvst/xvst.SlackBuild')
-rw-r--r--multimedia/xvst/xvst.SlackBuild19
1 files changed, 16 insertions, 3 deletions
diff --git a/multimedia/xvst/xvst.SlackBuild b/multimedia/xvst/xvst.SlackBuild
index 192443b1bb5ea..8e554f1bf37f8 100644
--- a/multimedia/xvst/xvst.SlackBuild
+++ b/multimedia/xvst/xvst.SlackBuild
@@ -5,8 +5,8 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=xvst
-VERSION=2.4.1
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-2.4.1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -41,6 +41,16 @@ rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
unzip $CWD/xVST_${VERSION//\./_}_src.zip
+# Xvst hasn't had a stable release in a couple years.
+# However, the developer(s) have updated the plugins in svn.
+# Add PLUGINS=yes to the slackbuild to download the updated
+# plugins/translations.
+if [ "${PLUGINS:-no}" == "yes" ]; then
+ svn export --force https://xviservicethief.svn.sourceforge.net/svnroot/xviservicethief/trunk/resources/services \
+ resources/services
+ svn export --force https://xviservicethief.svn.sourceforge.net/svnroot/xviservicethief/trunk/resources/translations/definitions \
+ resources/translations/definitions
+fi
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -55,8 +65,11 @@ sed -i "s|getApplicationPath()\ +\ \"|\"/usr/share/$PRGNAM|g" src/options.cpp
lrelease resources/translations/*.ts
rm -f resources/translations/template_for_new_translations.qm
+# Fix to compile against gcc 4.7.x.
+patch -p1 < $CWD/gcc-4.7.patch
+
qmake -set build_mode dynamic_build
-qmake -unix PREFIX=/usr -o Makefile xVideoServiceThief.pro
+qmake PREFIX=/usr -o Makefile xVideoServiceThief.pro
make \
CFLAGS="-pipe $SLKCFLAGS -Wall -W -D_REENTRANT \$(DEFINES)" \
CXXFLAGS="-pipe $SLKCFLAGS -Wall -W -D_REENTRANT \$(DEFINES)"