diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2012-07-29 22:23:38 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-07-29 22:23:38 -0500 |
commit | 33decf6c8620210fbaec5378b574d87b24a3d8cb (patch) | |
tree | 510765db1145c5845554dc76f37e1af2d4d186fb /multimedia/xvst/xvst.SlackBuild | |
parent | 48abb28b1e58f6568992ae05bfb0c6d89b5e99c2 (diff) |
multimedia/xvst: Fixed to compile against gcc 4.7.x
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'multimedia/xvst/xvst.SlackBuild')
-rw-r--r-- | multimedia/xvst/xvst.SlackBuild | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/multimedia/xvst/xvst.SlackBuild b/multimedia/xvst/xvst.SlackBuild index 192443b1bb5e..8e554f1bf37f 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)" |