summaryrefslogtreecommitdiff
path: root/multimedia/avidemux/avidemux.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <matteo.bernardini@sns.it>2010-05-29 11:58:47 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-06-01 00:12:33 -0500
commitf313061cf59d74ab3c67e4286d6907a6cda2b764 (patch)
treeb594d2d098dae58890e14a9a37604ff3e6536530 /multimedia/avidemux/avidemux.SlackBuild
parent22bc6f375548953d3eb5bdd5ef183bea2a364c33 (diff)
downloadslackbuilds-f313061cf59d74ab3c67e4286d6907a6cda2b764.tar.gz
multimedia/avidemux: Miscellaneous fixes.
* Fixed md5sum in avidemux.info * Added AlienBOB's fix for x86_64 paths and plugins build code Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'multimedia/avidemux/avidemux.SlackBuild')
-rw-r--r--multimedia/avidemux/avidemux.SlackBuild22
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