diff options
Diffstat (limited to 'multimedia/avidemux/avidemux.SlackBuild')
-rw-r--r-- | multimedia/avidemux/avidemux.SlackBuild | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/multimedia/avidemux/avidemux.SlackBuild b/multimedia/avidemux/avidemux.SlackBuild index b05768d068..9ab8f6678d 100644 --- a/multimedia/avidemux/avidemux.SlackBuild +++ b/multimedia/avidemux/avidemux.SlackBuild @@ -74,6 +74,11 @@ chmod -R a-s,u+w,go+r-w . #Patch that installs i18n in the correct place even if we compile with qt4 support cat $CWD/avidemux-2.5.1-i18n.patch | patch -p1 --verbose --backup --suffix=.orig +if [ "$ARCH" = "x86_64" ]; then + # Some paths are incorrectly hardcoded to "lib": + sed -i -e "s/Dir=\"lib\"/Dir=\"lib${LIBDIRSUFFIX}\"/" $(grep -lr 'Dir="lib"' .) +fi + mkdir build cd build @@ -121,6 +126,23 @@ cd build make DESTDIR=$PKG install/strip cd .. +mkdir -p build_plugins +cd build_plugins + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DAVIDEMUX_SOURCE_DIR=$(cd .. ; pwd) \ + -DAVIDEMUX_CORECONFIG_DIR=$(cd .. ; pwd)/build/config \ + -DAVIDEMUX_INSTALL_PREFIX=$(cd .. ; pwd)/build \ + ../plugins + make + make DESTDIR=$PKG install/strip +cd - + mkdir -p $PKG/usr/man/man1 cat man/avidemux.1 | gzip -9c > $PKG/usr/man/man1/avidemux.1.gz |