summaryrefslogtreecommitdiff
path: root/multimedia/avidemux/avidemux.SlackBuild
diff options
context:
space:
mode:
authorNiklas Nille Åkerström <Nille.kungen[AT]gmail.com>2010-05-13 00:34:35 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-13 00:34:35 +0200
commit06b515aac007cc1445f76bd0f3e0a8a367e32baf (patch)
tree8465f059f6af65e1deee22502d24065185e11eab /multimedia/avidemux/avidemux.SlackBuild
parentca54e765842b1f3218e44d01966a8b3ff84b7b00 (diff)
downloadslackbuilds-06b515aac007cc1445f76bd0f3e0a8a367e32baf.tar.gz
multimedia/avidemux: Updated for version 2.4.4
Diffstat (limited to 'multimedia/avidemux/avidemux.SlackBuild')
-rw-r--r--multimedia/avidemux/avidemux.SlackBuild27
1 files changed, 15 insertions, 12 deletions
diff --git a/multimedia/avidemux/avidemux.SlackBuild b/multimedia/avidemux/avidemux.SlackBuild
index 274a03f802..3794e37d57 100644
--- a/multimedia/avidemux/avidemux.SlackBuild
+++ b/multimedia/avidemux/avidemux.SlackBuild
@@ -22,7 +22,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Modified by Niklas "Nille" Åkerström to use cmake since thats what the
+# Modified by Niklas "Nille" Åkerström to use cmake since thats what the
# project will use in the future. No additional license terms added
PRGNAM=avidemux
@@ -35,19 +35,21 @@ CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-QT4=${QT4:-no}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
-rm -rf $PKG
+rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
@@ -57,7 +59,7 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
-#Patch that installs i18n in the correct place evan if we compile with qt4 support
+#Patch that installs i18n in the correct place even if we compile with qt4 support
zcat $CWD/avidemux-2.4.3-i18n.patch.gz | patch -p1 --verbose --backup --suffix=.orig
CFLAGS="$SLKCFLAGS" \
@@ -67,13 +69,13 @@ cmake . \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_VERBOSE_MAKEFILE:BOOL="TRUE" \
-
+ -DLIB_SUFFIX:STRING="$LIBDIRSUFFIX"
# Here are some valid options for cmake to build or not build against a dep
# (for those who aren't very familiar with cmake)
# Note that none of them should be needed though, as cmake automatically
# detects what is and isn't on the system.
-# They're all boolean values, so it uses TRUE 1 YES or FALSE 0 NO
+# They're all boolean values, so it uses TRUE 1 YES or FALSE 0 NO
# (TRUE, 1, and YES all mean the same thing and you should only use one of them)
# alsa || -DNO_ALSA:BOOL=
# oss || -DNO_OSS:BOOL=
@@ -108,12 +110,13 @@ cat man/avidemux.1 | gzip -9c > $PKG/usr/man/man1/avidemux.1.gz
cd $TMP/$PRGNAM-$VERSION
mkdir -p $PKG/usr/share/{applications,pixmaps}
-cat avidemux2.desktop > $PKG/usr/share/applications/avidemux2.desktop
+cat avidemux2-gtk.desktop > $PKG/usr/share/applications/avidemux2-gtk.desktop
+cat avidemux2-gtk.desktop > $PKG/usr/share/applications/avidemux2-qt.desktop
cat avidemux_icon.png > $PKG/usr/share/pixmaps/avidemux.png
-#patch avidemux2.desktop to exec avidemux2_qt4 instead of avidemux2_gtk
-if [ $QT4 != no ];then
- sed -i 's/avidemux2_gtk/avidemux2_qt4/' $PKG/usr/share/applications/avidemux2.desktop
-fi
+#patch avidemux2_qt.desktop to exec avidemux2_qt4 instead of avidemux2_gtk
+sed -i 's/avidemux2_gtk/avidemux2_qt4/' $PKG/usr/share/applications/avidemux2-qt.desktop
+sed -i 's/GTK+/Qt/g' $PKG/usr/share/applications/avidemux2-qt.desktop
+sed -i 's/GTK/Qt/' $PKG/usr/share/applications/avidemux2-qt.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING History INSTALL README TODO \
@@ -125,7 +128,7 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
if [ "$1" = "--cleanup" ]; then
rm -rf $PKG $TMP/$PRGNAM-$VERSION