aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gimp-gap/gimp-gap.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/gimp-gap/gimp-gap.SlackBuild')
-rw-r--r--multimedia/gimp-gap/gimp-gap.SlackBuild60
1 files changed, 15 insertions, 45 deletions
diff --git a/multimedia/gimp-gap/gimp-gap.SlackBuild b/multimedia/gimp-gap/gimp-gap.SlackBuild
index 72a750cf1e49..20e4a3bfcd28 100644
--- a/multimedia/gimp-gap/gimp-gap.SlackBuild
+++ b/multimedia/gimp-gap/gimp-gap.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for gimp-gap
-# Copyright 2010 Willy Sudiarto Raharjo <willysr@slackware-id.org>
+# Copyright 2010-2011 Willy Sudiarto Raharjo <willysr@slackware-id.org>
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
@@ -21,7 +21,7 @@
PRGNAM=gimp-gap
VERSION=${VERSION:-2.6.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -55,47 +55,13 @@ DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README \
docs/howto/txt/HOWTO-do-lossless-MPEG-cut.txt \
docs/howto/txt/HOWTO-write-animated-plug-ins.txt"
-if [ "${LAME:-yes}" = "no" ]; then
- mp3lame="--disable-ff-libmp3lame"
-else
- mp3lame=""
-fi
-
-if [ "${FAAC:-yes}" = "no" ]; then
- libfaac="--disable-ff-libfaac"
-else
- libfaac=""
-fi
-
-if [ "${FAAD:-yes}" = "no" ]; then
- libfaad="--disable-ff-libfaad"
-else
- libfaad=""
-fi
-
-if [ "${X264:-yes}" = "no" ]; then
- libx264="--disable-ff-libx264"
-else
- libx264=""
-fi
-
-if [ "${AVFORMAT:-yes}" = "no" ]; then
- libavformat="--disable-libavformat"
-else
- libavformat=""
-fi
-
-if [ "${MPEG:-yes}" = "no" ]; then
- libmpeg="--disable-libmpeg3"
-else
- libmpeg=""
-fi
-
-if [ "${XVID:-yes}" = "no" ]; then
- libxvid="--disable-libxvidcore"
-else
- libxvid=""
-fi
+mp3lame="" ; [ "${LAME:-yes}" != "yes" ] && mp3lame="--disable-ff-libmp3lame"
+libfaac="" ; [ "${FAAC:-yes}" != "yes" ] && libfaac="--disable-ff-libfaac"
+libfaad="" ; [ "${FAAD:-yes}" != "yes" ] && libfaad="--disable-ff-libfaad"
+libx264="" ; [ "${X264:-yes}" != "yes" ] && libx264="--disable-ff-libx264"
+libavformat="" ; [ "${AVFORMAT:-yes}" != "yes" ] && libavformat="--disable-libavformat"
+libmpeg="" ; [ "${MPEG:-yes}" != "yes" ] && libmpeg="--disable-libmpeg3"
+libxvid="" ; [ "${XVID:-yes}" != "yes" ] && libxvid="--disable-libxvidcore"
set -e
@@ -122,14 +88,18 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-audio-support \
+ --build=$ARCH-slackware-linux \
$mp3lame \
$libfaac \
$libfaad \
$libx264 \
$libavformat \
$libmpeg \
- $libxvid \
- --build=$ARCH-slackware-linux
+ $libxvid
+
+# Thanks to Heinz Wiesinger for the patch
+# This patch should fix compilation if internal ffmpeg is used
+#patch -p0 -i $CWD/patch-ffmpeg-Makefile.diff
make
make install DESTDIR=$PKG