From 5c717e2f4c3718312b6bd70e80bc183ba703a2fd Mon Sep 17 00:00:00 2001 From: Andrzej Telszewski Date: Sun, 3 Sep 2017 07:28:26 +0100 Subject: multimedia/smplayer: Updated for version 17.9.0. Signed-off-by: David Spencer --- multimedia/smplayer/README | 5 +++++ multimedia/smplayer/smplayer.SlackBuild | 38 ++++++++++++++++++++++++++------- multimedia/smplayer/smplayer.info | 6 +++--- 3 files changed, 38 insertions(+), 11 deletions(-) (limited to 'multimedia') diff --git a/multimedia/smplayer/README b/multimedia/smplayer/README index 74de41b10ffd..4ac145df3a68 100644 --- a/multimedia/smplayer/README +++ b/multimedia/smplayer/README @@ -14,3 +14,8 @@ settings of all files you play. So you start to watch a movie but you have to leave... don't worry, when you open that movie again it will be resumed at the same point you left it, and with the same settings: audio track, subtitles, volume. + +If you prefer to build SMPlayer against Qt5 rather than Qt4, install +qt5 (available from SlackBuilds.org) and run the script like that: + + USE_QT5=yes ./smplayer.SlackBuild diff --git a/multimedia/smplayer/smplayer.SlackBuild b/multimedia/smplayer/smplayer.SlackBuild index 2669c463a934..48b87d8afabc 100644 --- a/multimedia/smplayer/smplayer.SlackBuild +++ b/multimedia/smplayer/smplayer.SlackBuild @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=smplayer -VERSION=${VERSION:-17.8.0} +VERSION=${VERSION:-17.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -73,14 +73,28 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -sed -i "/^PREFIX/s/=.*$/=\/usr/; - /^DOC_PATH/s/\/.*$/\/doc\/$PRGNAM-$VERSION/; - s/share\/man/man/g; - s/^QMAKE_OPTS=/QMAKE_OPTS+=/" Makefile +# Fix man page path. +sed -i "s/share\/man/man/g" Makefile -QMAKE_OPTS="QMAKE_CXXFLAGS=\"$SLKCFLAGS\"" \ -make -make install DESTDIR=$PKG +if [ ${USE_QT5:-no} = yes ]; then + QMAKE=qmake-qt5 + LRELEASE=lrelease-qt5 +else + QMAKE=qmake + LRELEASE=lrelease +fi + +make \ + QMAKE=$QMAKE \ + LRELEASE=$LRELEASE \ + PREFIX=/usr \ + DOC_PATH="\\\"/usr/doc/$PRGNAM-$VERSION/\\\"" \ + QMAKE_OPTS="QMAKE_CXXFLAGS=\"$SLKCFLAGS\"" + +make install \ + PREFIX=/usr \ + DOC_PATH=/usr/doc/$PRGNAM-$VERSION \ + DESTDIR=$PKG 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 @@ -100,6 +114,10 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +if [ ${USE_QT5:-no} = yes ]; then + sed -i "s/rcc -binary/rcc-qt5 -binary/g" themes/Makefile +fi + make make install PREFIX=/usr DESTDIR=$PKG @@ -117,6 +135,10 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +if [ ${USE_QT5:-no} = yes ]; then + sed -i "s/rcc -binary/rcc-qt5 -binary/g" themes/Makefile +fi + make make install PREFIX=/usr DESTDIR=$PKG diff --git a/multimedia/smplayer/smplayer.info b/multimedia/smplayer/smplayer.info index 03486b5d536d..2191ec192939 100644 --- a/multimedia/smplayer/smplayer.info +++ b/multimedia/smplayer/smplayer.info @@ -1,10 +1,10 @@ PRGNAM="smplayer" -VERSION="17.8.0" +VERSION="17.9.0" HOMEPAGE="http://www.smplayer.info/" -DOWNLOAD="http://downloads.sourceforge.net/smplayer/smplayer-17.8.0.tar.bz2 \ +DOWNLOAD="http://downloads.sourceforge.net/smplayer/smplayer-17.9.0.tar.bz2 \ http://downloads.sourceforge.net/smplayer/smplayer-themes-17.3.0.tar.bz2 \ http://downloads.sourceforge.net/smplayer/smplayer-skins-15.2.0.tar.bz2" -MD5SUM="174c1d1ea7d6b6df88c945bdeb91482e \ +MD5SUM="79a4de1018e50802ad684b55e8ed6921 \ 33c063c5a80c5b1625f51ddbb7bfd3a1 \ 57e165cf9a95808fafd179e5322b7f15" DOWNLOAD_x86_64="" -- cgit v1.2.3