summaryrefslogtreecommitdiff
path: root/multimedia/avidemux
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/avidemux')
-rw-r--r--multimedia/avidemux/avidemux.SlackBuild22
-rw-r--r--multimedia/avidemux/avidemux.info4
2 files changed, 24 insertions, 2 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
diff --git a/multimedia/avidemux/avidemux.info b/multimedia/avidemux/avidemux.info
index 4ed98917e2..8622274c64 100644
--- a/multimedia/avidemux/avidemux.info
+++ b/multimedia/avidemux/avidemux.info
@@ -3,8 +3,8 @@ VERSION="2.5.2"
HOMEPAGE="http://avidemux.org"
DOWNLOAD="http://downloads.sourceforge.net/avidemux/avidemux_2.5.2.tar.gz"
DOWNLOAD_x86_64=""
-MD5SUM="22467c9ea5476d94cbd505685b4c11e7"
+MD5SUM="9027e1324c06e833e6c3c22298503cc7"
MD5SUM_x86_64=""
MAINTAINER="Niklas 'Nille' Åkerström"
EMAIL="Nille.kungen[AT]gmail.com"
-APPROVED="michiel"
+APPROVED=""