summaryrefslogtreecommitdiffstats
path: root/gnash
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2010-09-14 19:51:09 +0000
committer Eric Hameleers <alien@slackware.com>2010-09-14 19:51:09 +0000
commita5b19b377c1099c5c4086f8f998940deebace7df (patch)
treee38bd1502a2047287dd4d3a1c88d3a44394b770a /gnash
parent24e66d86f525ddbcade8c77329f0c41b99758dff (diff)
downloadasb-a5b19b377c1099c5c4086f8f998940deebace7df.tar.gz
asb-a5b19b377c1099c5c4086f8f998940deebace7df.tar.xz
Fix youtube download using libcurl (or at least, try to). Try to find out why the build fails now, while I built it fine on 13.1 before - temporarily leave out vaapi support
Diffstat (limited to 'gnash')
-rwxr-xr-xgnash/build/gnash.SlackBuild20
1 files changed, 13 insertions, 7 deletions
diff --git a/gnash/build/gnash.SlackBuild b/gnash/build/gnash.SlackBuild
index 228fcec8..1aca3385 100755
--- a/gnash/build/gnash.SlackBuild
+++ b/gnash/build/gnash.SlackBuild
@@ -39,6 +39,9 @@
# unless you start them with a flash file as argument.
# 0.8.8-1: 25/aug/2010 by Eric Hameleers <alien@slackware.com>
# * Update, many exciting new features (youtube should work now).
+# 0.8.8-2: 14/sep/2010 by Eric Hameleers <alien@slackware.com>
+# * Needs patching to be able to view youtube videos. Also try to
+# use ffmpeg directly instead of gstreamer.
#
# Run 'sh gnash.SlackBuild' to build a Slackware package.
# The package (.tgz) and .txt file as well as build logs are created in /tmp .
@@ -50,7 +53,7 @@
PRGNAM=gnash
VERSION=${VERSION:-0.8.8}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:" -j4 "}
TAG=${TAG:-alien}
@@ -153,7 +156,10 @@ for (( i = 0; i < ${#SOURCE[*]}; i++ )) ; do
done
cd ${PRGNAM}-${VERSION}
+# Make gnash work with KDE4:
cat $SRCDIR/gnash.kde4.diff | patch -p1 --verbose
+# Gnash does not cope well with libcurl's multithreading:
+cat $SRCDIR/gnash.libcurl.diff | patch -p1 --verbose
# Gnash source configuration is a bag of sloppinesss but this will suffice:
sed -i -e "/_PLUGINDIR/s#lib/#lib64/#" configure
sed -i -e 's#/usr/share/man#@mandir@#' Makefile.in
@@ -167,8 +173,8 @@ chmod -R u+w,go+r-w,a+X-s .
echo Building ...
LDFLAGS="$SLKLDFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="-I$(pwd)/libvaapi $SLKCFLAGS" \
+CFLAGS="-I$(pwd)/libvaapi $SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -178,10 +184,9 @@ CFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--enable-gui=gtk,qt4,sdl \
--with-kde4-plugindir=/usr/lib${LIBDIRSUFFIX}/kde4/plugins \
- --enable-renderer=ogl,cairo \
+ --enable-renderer=cairo,ogl \
--enable-sound=sdl \
- --enable-media=gst \
- --enable-hwaccel=vaapi \
+ --enable-media=ffmpeg \
--with-plugins-install=system \
--with-npapi-install=system \
--with-npapi-plugindir=/usr/lib${LIBDIRSUFFIX}/mozilla/plugins \
@@ -191,8 +196,9 @@ CFLAGS="$SLKCFLAGS" \
--program-suffix= \
--build=$ARCH-slackware-linux \
2>&1 | tee $OUTPUT/configure-${PRGNAM}.log
+ #--enable-hwaccel=vaapi \
-make $NUMJOBS 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
+make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
make DESTDIR=$PKG install install-plugins \
2>&1 | tee $OUTPUT/install-${PRGNAM}.log