diff options
author | Eric Hameleers <alien@slackware.com> | 2012-10-10 20:36:41 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2012-10-10 20:36:41 +0000 |
commit | 7e53222c805001dbf0b9a867acfac1be125584ce (patch) | |
tree | 91aa8f70d98dcd96512bd25d531ab576afd67336 /gst-plugins-ffmpeg/build/gst-plugins-ffmpeg.SlackBuild | |
parent | 43e52dc2723fd81d848a77c2955369e6ad3f6324 (diff) | |
download | asb-7e53222c805001dbf0b9a867acfac1be125584ce.tar.gz asb-7e53222c805001dbf0b9a867acfac1be125584ce.tar.xz |
Rebuilt for Slackware 14
Diffstat (limited to 'gst-plugins-ffmpeg/build/gst-plugins-ffmpeg.SlackBuild')
-rwxr-xr-x | gst-plugins-ffmpeg/build/gst-plugins-ffmpeg.SlackBuild | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/gst-plugins-ffmpeg/build/gst-plugins-ffmpeg.SlackBuild b/gst-plugins-ffmpeg/build/gst-plugins-ffmpeg.SlackBuild index 8516571b..5de4b84d 100755 --- a/gst-plugins-ffmpeg/build/gst-plugins-ffmpeg.SlackBuild +++ b/gst-plugins-ffmpeg/build/gst-plugins-ffmpeg.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright (c) 2009, 2010, 2011 Eric Hameleers, Eindhoven, NL +# Copyright (c) 2009, 2010, 2011, 2012 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -41,6 +41,10 @@ # not used by default. You can change the variable # USE_INTERNAL_FFMPEG to "NO" after installing my ffmpeg package, # and then rebuild gst-plugins-ffmpeg. +# 0.10.13-1: 09/feb/2012 by Eric Hameleers <alien@slackware.com> +# * Update. +# 0.10.13-2: 10/oct/2012 by Eric Hameleers <alien@slackware.com> +# * Rebuilt for Slackware 14. # # Run 'sh gst-plugins-ffmpeg.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -52,7 +56,7 @@ PRGNAM=gst-plugins-ffmpeg SRCNAM=gst-ffmpeg -VERSION=${VERSION:-0.10.11} +VERSION=${VERSION:-0.10.13} BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:" -j4 "} TAG=${TAG:-alien} @@ -81,12 +85,14 @@ SRCURL="http://gstreamer.freedesktop.org/src/${SRCNAM}/${SRCNAM}-${VERSION}.tar. ## # Automatically determine the architecture we're building on: +MARCH=$( uname -m ) if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) export ARCH=i486 ;; - arm*) export ARCH=arm ;; + case "$MARCH" in + i?86) export ARCH=i486 ;; + armv7hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$( uname -m ) ;; + *) export ARCH=$MARCH ;; esac fi @@ -97,6 +103,9 @@ case "$ARCH" in x86_64) SLKCFLAGS="-O2 -fPIC" SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" ;; + armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + SLKLDFLAGS=""; LIBDIRSUFFIX="" + ;; *) SLKCFLAGS="-O2" SLKLDFLAGS=""; LIBDIRSUFFIX="" ;; @@ -124,10 +133,11 @@ rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log # Source file availability: if ! [ -f ${SOURCE} ]; then + echo "Source '$(basename ${SOURCE})' not available yet..." + # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT + [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" + if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi if ! [ "x${SRCURL}" == "x" ]; then - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - echo "Source '$(basename ${SOURCE})' not available yet..." echo "Will download file to $(dirname $SOURCE)" wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then @@ -159,6 +169,10 @@ cd ${SRCNAM}-${VERSION} chown -R root:root . chmod -R u+w,go+r-w,a+X-s . +# Compensate for using gcc 4.7: +cat $SRCDIR/gst-ffmpeg-0.10.13_gcc47.patch | patch -p1 --verbose \ + 2>&1 | tee $OUTPUT/patch-${PRGNAM}.log + if [ "$USE_INTERNAL_FFMPEG" = "NO" -o "$USE_INTERNAL_FFMPEG" = "no" ]; then FFMPEG_OPTS="--with-system-ffmpeg" else |