aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gimp-gap/gimp-gap.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackware-id.org>2011-12-18 09:33:23 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-18 09:33:23 -0600
commit1014868c1ce10b10af2af3681980d28e0e3d7f7d (patch)
tree88a454a38c0fe909a42074a43b37502cc5e55919 /multimedia/gimp-gap/gimp-gap.SlackBuild
parentbccc3810b5039a7ed056aae0f6b1b7878568098e (diff)
multimedia/gimp-gap: Included a patch for internal ffmpeg / texlive
This commit also includes some tweaks to option setting (rworkman) Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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