diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2019-08-19 12:18:36 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-08-24 08:24:01 +0700 |
commit | 996377963fd48c23706604029441578538c81217 (patch) | |
tree | fddb89248b6264689d961aee31581b531c597d13 /multimedia/avidemux/avidemux.SlackBuild | |
parent | c7ffa2bafc9a51821bbfcef9bcb7d18fd0a098a6 (diff) | |
download | slackbuilds-996377963fd48c23706604029441578538c81217.tar.gz |
multimedia/avidemux: Updated for version 2.7.4.
This introduces the new dependency qt5
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'multimedia/avidemux/avidemux.SlackBuild')
-rw-r--r-- | multimedia/avidemux/avidemux.SlackBuild | 150 |
1 files changed, 13 insertions, 137 deletions
diff --git a/multimedia/avidemux/avidemux.SlackBuild b/multimedia/avidemux/avidemux.SlackBuild index eb6fc5c7b3..e1ae707bad 100644 --- a/multimedia/avidemux/avidemux.SlackBuild +++ b/multimedia/avidemux/avidemux.SlackBuild @@ -5,7 +5,7 @@ # Derived from a SlackBuild by Eric Hameleers. # Copyright 2009, 2010, 2011, 2013 Eric Hameleers, Eindhoven, NL # Copyright 2015 John Vogel Corning, NY USA -# Copyright 2017-2018 Matteo Bernardini, Pisa, IT +# Copyright 2017-2019 Matteo Bernardini, Pisa, IT # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=avidemux -VERSION=${VERSION:-2.7.1} +VERSION=${VERSION:-2.7.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -74,145 +74,21 @@ 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 {} \; -WITH_CLI=${WITH_CLI:-YES} -WITH_QT4=${WITH_QT4:-YES} -WITH_GTK=${WITH_GTK:-NO} - -mkdir -p build_core -cd build_core -cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DFAKEROOT="$PKG" \ - ../avidemux_core -make -make -j 1 install DESTDIR=$PKG -cd .. - -if [ "x$WITH_QT4" = "xYES" ]; then - mkdir -p build_qt4 - cd build_qt4 - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DFAKEROOT="$PKG" \ - ../avidemux/qt4 - make - make -j 1 install DESTDIR=$PKG - cd .. -fi - -if [ "x$WITH_GTK" = "xYES" ]; then - mkdir -p build_gtk - cd build_gtk - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DFAKEROOT="$PKG" \ - ../avidemux/gtk - make - make -j 1 install DESTDIR=$PKG - cd .. -fi - -if [ "x$WITH_CLI" = "xYES" ]; then - mkdir -p build_cli - cd build_cli - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DFAKEROOT="$PKG" \ - ../avidemux/cli - make - make -j 1 install DESTDIR=$PKG - cd .. -fi +sed -i 's|../avidemux/qt4|../avidemux/qt4 -DLRELEASE_EXECUTABLE=/usr/bin/lrelease-qt5|' bootStrap.bash || exit 1 +sed -i 's|0.19|1.0|' avidemux_plugins/ADM_videoFilters6/ass/CMakeLists.txt || exit 1 -mkdir -p build_plugins_common -cd build_plugins_common - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DAVIDEMUX_SOURCE_DIR="$TMP/${PRGNAM}_${VERSION}" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DPLUGIN_UI=COMMON \ - -DFAKEROOT="$PKG" \ - ../avidemux_plugins - make - make -j 1 install DESTDIR=$PKG -cd .. - -if [ "x$WITH_QT4" = "xYES" ]; then - mkdir -p build_plugins_qt4 - cd build_plugins_qt4 - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DAVIDEMUX_SOURCE_DIR="$TMP/${PRGNAM}_${VERSION}" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DPLUGIN_UI=QT4 \ - -DFAKEROOT="$PKG" \ - ../avidemux_plugins - make - make -j 1 install DESTDIR=$PKG - cd .. -fi +bash bootStrap.bash --with-core --with-cli --with-plugins -if [ "x$WITH_GTK" = "xYES" ]; then - mkdir -p build_plugins_gtk - cd build_plugins_gtk - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DAVIDEMUX_SOURCE_DIR="$TMP/${PRGNAM}_${VERSION}" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DPLUGIN_UI=GTK \ - -DFAKEROOT="$PKG" \ - ../avidemux_plugins - make - make -j 1 install DESTDIR=$PKG - cd .. -fi +make -C buildCli DESTDIR="$PKG" install +make -C buildCore DESTDIR="$PKG" install +make -C buildPluginsCLI DESTDIR="$PKG" install +make -C buildPluginsCommon DESTDIR="$PKG" install -if [ "x$WITH_CLI" = "xYES" ]; then - mkdir -p build_plugins_cli - cd build_plugins_cli - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DAVIDEMUX_SOURCE_DIR="$TMP/${PRGNAM}_${VERSION}" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DPLUGIN_UI=CLI \ - -DFAKEROOT="$PKG" \ - ../avidemux_plugins - make - make -j 1 install DESTDIR=$PKG - cd .. -fi +install -Dm 644 avidemux_icon.png $PKG/usr/share/pixmaps/avidemux.png +install -Dm 644 man/avidemux.1 $PKG/usr/man/man1 -mkdir -p $PKG/usr/share/applications -mkdir -p $PKG/usr/share/pixmaps -if [ "x$WITH_QT4" = "xYES" ]; then - cat avidemux2.desktop | sed -e 's/avidemux2$/avidemux/' -e 's/3_qt5/3_qt4/' >\ - $PKG/usr/share/applications/avidemux_qt.desktop -fi -if [ "x$WITH_GTK" = "xYES" ]; then - cat avidemux2.desktop | sed -e 's/avidemux2$/avidemux/' -e 's/2_gtk/3_gtk/' >\ - $PKG/usr/share/applications/avidemux_gtk.desktop -fi -install -m644 avidemux_icon.png $PKG/usr/share/pixmaps/avidemux.png -for sz in 16x16 32x32 48x48 64x64 ; do - mkdir -p $PKG/usr/share/icons/hicolor/$sz/apps - convert avidemux_icon.png -resize $sz \ - $PKG/usr/share/icons/hicolor/$sz/apps/avidemux.png -done - -mkdir -p $PKG/usr/man/man1 -gzip -c man/avidemux.1 > $PKG/usr/man/man1/avidemux.1.gz +make -C buildQt5 DESTDIR="$PKG" install +make -C buildPluginsQt5 DESTDIR="$PKG" install 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 |