multimedia/avidemux: Fix build issue.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
1c7c84dc98
commit
401df620d7
|
@ -3,4 +3,17 @@ encoding tasks. It supports many file types, including AVI, DVD compatible
|
||||||
MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated
|
MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated
|
||||||
using projects, job queue and powerful scripting capabilities.
|
using projects, job queue and powerful scripting capabilities.
|
||||||
|
|
||||||
|
By default only the cli and qt4 interfaces are built. Upstream currently
|
||||||
|
does not support the gtk interface and while it may build, the gtk gui
|
||||||
|
crashes during startup. To enable (or disable) an interface, use the
|
||||||
|
WITH_CLI, WITH_QT4, and WITH_GTK variables as such:
|
||||||
|
|
||||||
|
WITH_CLI=NO sh ./avidemux.SlackBuild
|
||||||
|
|
||||||
|
or, if you use fakeroot:
|
||||||
|
|
||||||
|
fakeroot env WITH_GTK=YES sh ./avidemux.SlackBuild
|
||||||
|
|
||||||
|
though building the gtk is not recommended or supported.
|
||||||
|
|
||||||
Optional dependencies are aften, amrnb, and jack-audio-connection-kit.
|
Optional dependencies are aften, amrnb, and jack-audio-connection-kit.
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
PRGNAM=avidemux
|
PRGNAM=avidemux
|
||||||
VERSION=${VERSION:-2.6.8}
|
VERSION=${VERSION:-2.6.8}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
DOCS="AUTHORS License.txt COPYING scripts/automkv.py"
|
DOCS="AUTHORS License.txt COPYING scripts/automkv.py"
|
||||||
|
@ -73,53 +73,63 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-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
|
mkdir -p build_core
|
||||||
cd build_core
|
cd build_core
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DFAKEROOT="$PKG" \
|
-DFAKEROOT="$PKG" \
|
||||||
../avidemux_core
|
../avidemux_core
|
||||||
make
|
make -j 1
|
||||||
make install DESTDIR=$PKG
|
make -j 1 install DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
mkdir -p build_qt4
|
if [ "x$WITH_QT4" = "xYES" ]; then
|
||||||
cd build_qt4
|
mkdir -p build_qt4
|
||||||
|
cd build_qt4
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DFAKEROOT="$PKG" \
|
-DFAKEROOT="$PKG" \
|
||||||
../avidemux/qt4
|
../avidemux/qt4
|
||||||
make
|
make -j 1
|
||||||
make install DESTDIR=$PKG
|
make -j 1 install DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p build_gtk
|
if [ "x$WITH_GTK" = "xYES" ]; then
|
||||||
cd build_gtk
|
mkdir -p build_gtk
|
||||||
|
cd build_gtk
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DFAKEROOT="$PKG" \
|
-DFAKEROOT="$PKG" \
|
||||||
../avidemux/gtk
|
../avidemux/gtk
|
||||||
make
|
make -j 1
|
||||||
make install DESTDIR=$PKG
|
make -j 1 install DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p build_cli
|
if [ "x$WITH_CLI" = "xYES" ]; then
|
||||||
cd build_cli
|
mkdir -p build_cli
|
||||||
|
cd build_cli
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DFAKEROOT="$PKG" \
|
-DFAKEROOT="$PKG" \
|
||||||
../avidemux/cli
|
../avidemux/cli
|
||||||
make
|
make -j 1
|
||||||
make install DESTDIR=$PKG
|
make -j 1 install DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p build_plugins_common
|
mkdir -p build_plugins_common
|
||||||
cd build_plugins_common
|
cd build_plugins_common
|
||||||
|
@ -131,12 +141,13 @@ cd build_plugins_common
|
||||||
-DPLUGIN_UI=COMMON \
|
-DPLUGIN_UI=COMMON \
|
||||||
-DFAKEROOT="$PKG" \
|
-DFAKEROOT="$PKG" \
|
||||||
../avidemux_plugins
|
../avidemux_plugins
|
||||||
make
|
make -j 1
|
||||||
make install DESTDIR=$PKG
|
make -j 1 install DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
mkdir -p build_plugins_qt4
|
if [ "x$WITH_QT4" = "xYES" ]; then
|
||||||
cd build_plugins_qt4
|
mkdir -p build_plugins_qt4
|
||||||
|
cd build_plugins_qt4
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
|
@ -145,12 +156,14 @@ cd build_plugins_qt4
|
||||||
-DPLUGIN_UI=QT4 \
|
-DPLUGIN_UI=QT4 \
|
||||||
-DFAKEROOT="$PKG" \
|
-DFAKEROOT="$PKG" \
|
||||||
../avidemux_plugins
|
../avidemux_plugins
|
||||||
make
|
make -j 1
|
||||||
make install DESTDIR=$PKG
|
make -j 1 install DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p build_plugins_gtk
|
if [ "x$WITH_GTK" = "xYES" ]; then
|
||||||
cd build_plugins_gtk
|
mkdir -p build_plugins_gtk
|
||||||
|
cd build_plugins_gtk
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
|
@ -159,12 +172,14 @@ cd build_plugins_gtk
|
||||||
-DPLUGIN_UI=GTK \
|
-DPLUGIN_UI=GTK \
|
||||||
-DFAKEROOT="$PKG" \
|
-DFAKEROOT="$PKG" \
|
||||||
../avidemux_plugins
|
../avidemux_plugins
|
||||||
make
|
make -j 1
|
||||||
make install DESTDIR=$PKG
|
make -j 1 install DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p build_plugins_cli
|
if [ "x$WITH_CLI" = "xYES" ]; then
|
||||||
cd build_plugins_cli
|
mkdir -p build_plugins_cli
|
||||||
|
cd build_plugins_cli
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
|
@ -173,15 +188,21 @@ cd build_plugins_cli
|
||||||
-DPLUGIN_UI=CLI \
|
-DPLUGIN_UI=CLI \
|
||||||
-DFAKEROOT="$PKG" \
|
-DFAKEROOT="$PKG" \
|
||||||
../avidemux_plugins
|
../avidemux_plugins
|
||||||
make
|
make -j 1
|
||||||
make install DESTDIR=$PKG
|
make -j 1 install DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p $PKG/usr/share/applications
|
mkdir -p $PKG/usr/share/applications
|
||||||
mkdir -p $PKG/usr/share/pixmaps
|
mkdir -p $PKG/usr/share/pixmaps
|
||||||
install -m644 avidemux2.desktop $PKG/usr/share/applications/avidemux2_gtk.desktop
|
if [ "x$WITH_QT4" = "xYES" ]; then
|
||||||
cat avidemux2.desktop | sed -e 's/_gtk/_qt4/' \
|
cat avidemux2.desktop | sed -e 's/avidemux2$/avidemux/' -e 's/2_gtk/3_qt/' >\
|
||||||
> $PKG/usr/share/applications/avidemux2_qt4.desktop
|
$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
|
install -m644 avidemux_icon.png $PKG/usr/share/pixmaps/avidemux.png
|
||||||
for sz in 16x16 32x32 48x48 64x64 ; do
|
for sz in 16x16 32x32 48x48 64x64 ; do
|
||||||
mkdir -p $PKG/usr/share/icons/hicolor/$sz/apps
|
mkdir -p $PKG/usr/share/icons/hicolor/$sz/apps
|
||||||
|
@ -190,14 +211,11 @@ for sz in 16x16 32x32 48x48 64x64 ; do
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -p $PKG/usr/man/man1
|
mkdir -p $PKG/usr/man/man1
|
||||||
install -m644 man/avidemux.1 $PKG/usr/man/man1/avidemux.1
|
gzip -c man/avidemux.1 > $PKG/usr/man/man1/avidemux.1.gz
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|
||||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/${PRGNAM}-${VERSION}
|
mkdir -p $PKG/usr/doc/${PRGNAM}-${VERSION}
|
||||||
cp -a $DOCS $PKG/usr/doc/${PRGNAM}-${VERSION}
|
cp -a $DOCS $PKG/usr/doc/${PRGNAM}-${VERSION}
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/${PRGNAM}-${VERSION}/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/${PRGNAM}-${VERSION}/$PRGNAM.SlackBuild
|
||||||
|
|
|
@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="a52dec faac faad2 lame libdca x264 xvidcore"
|
REQUIRES="a52dec faac faad2 lame libdca x264 xvidcore"
|
||||||
MAINTAINER="John Vogel"
|
MAINTAINER="John Vogel"
|
||||||
EMAIL="jvogel@stny.rr.com"
|
EMAIL="jvogel4@stny.rr.com"
|
||||||
|
|
Loading…
Reference in New Issue