diff options
author | С. С. Болоканаръ <bolokanar@protonmail.ch> | 2023-01-29 15:16:59 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-30 14:26:17 +0700 |
commit | b51a6404b64c86ab6e03659d123724c423e72dc4 (patch) | |
tree | 414fa95280301eee51596d50a32cc95b5fff8ac6 /graphics | |
parent | d682ff36a8eafe40beb6a131244d89d96cf9b09c (diff) |
graphics/qimgv: move mpv to optional, plus fix for mpv/video support
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/qimgv/README | 3 | ||||
-rw-r--r-- | graphics/qimgv/qimgv.SlackBuild | 9 | ||||
-rw-r--r-- | graphics/qimgv/qimgv.info | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/graphics/qimgv/README b/graphics/qimgv/README index 5c75d51a4a66..a2a3a5067016 100644 --- a/graphics/qimgv/README +++ b/graphics/qimgv/README @@ -1 +1,4 @@ A qt5 cross-platform image viewer with video support + +To build with video support, pass WITH_VIDEO=ON to the build script. +mpv required for video support. diff --git a/graphics/qimgv/qimgv.SlackBuild b/graphics/qimgv/qimgv.SlackBuild index dd6eb6b5e4fb..eb1baac81c14 100644 --- a/graphics/qimgv/qimgv.SlackBuild +++ b/graphics/qimgv/qimgv.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=qimgv VERSION=${VERSION:-1.0.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -60,6 +60,8 @@ else LIBDIRSUFFIX="" fi +WITH_VIDEO=${WITH_VIDEO:-OFF} + set -e rm -rf $PKG @@ -75,6 +77,9 @@ 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 video support is enabled, fix for mpv >= 0.35 - thanks to Christoph Willing +[ "$WITH_VIDEO" != "OFF" ] && sed -i -e '/mpv_opengl_init_params/ s/, nullptr};/};/' plugins/player_mpv/src/mpvwidget.cpp + mkdir -p build cd build cmake \ @@ -83,7 +88,7 @@ cd build -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ -DEXIV2=ON \ -DOPENCV_SUPPORT=ON \ - -DVIDEO_SUPPORT=ON \ + -DVIDEO_SUPPORT=${WITH_VIDEO} \ -DKDE_SUPPORT=ON \ -DCMAKE_BUILD_TYPE=Release .. make diff --git a/graphics/qimgv/qimgv.info b/graphics/qimgv/qimgv.info index 23917f2f0d59..32da74c5ab14 100644 --- a/graphics/qimgv/qimgv.info +++ b/graphics/qimgv/qimgv.info @@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/easymodo/qimgv/archive/v1.0.2/qimgv-1.0.2.tar.gz" MD5SUM="3c5b4daa98425aabd6c498aafb7e71a9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="mpv" +REQUIRES="" MAINTAINER="S. S. Bolokanar" EMAIL="bolokanar@bulgars.org" |