diff options
Diffstat (limited to 'main/gst-ffmpeg')
-rw-r--r-- | main/gst-ffmpeg/APKBUILD | 40 | ||||
-rw-r--r-- | main/gst-ffmpeg/pic.patch | 11 |
2 files changed, 51 insertions, 0 deletions
diff --git a/main/gst-ffmpeg/APKBUILD b/main/gst-ffmpeg/APKBUILD new file mode 100644 index 0000000000..090b036855 --- /dev/null +++ b/main/gst-ffmpeg/APKBUILD @@ -0,0 +1,40 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=gst-ffmpeg +pkgver=0.10.11 +pkgrel=3 +pkgdesc="Gstreamer FFMpeg Plugin" +url="http://www.gstreamer.net" +arch="all" +license="GPL" +makedepends="gstreamer-dev gst-plugins-base-dev liboil-dev coreutils orc-dev" +source="http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-$pkgver.tar.bz2 + pic.patch" + +_builddir="$srcdir"/gst-ffmpeg-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} +build() { + cd "$_builddir" + export CFLAGS="$CFLAGS -fno-strict-aliasing" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-ffmpeg-extra-configure="--enable-pic --disable-mmx --disable-mmx2" || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir"/usr/lib/ -name '*.la' -o -name '*.a' \ + | xargs rm -f +} + +md5sums="0d23197ba7ac06ea34fa66d38469ebe5 gst-ffmpeg-0.10.11.tar.bz2 +154fa474ee135ff709bc76a761477da4 pic.patch" diff --git a/main/gst-ffmpeg/pic.patch b/main/gst-ffmpeg/pic.patch new file mode 100644 index 0000000000..3a7268e61b --- /dev/null +++ b/main/gst-ffmpeg/pic.patch @@ -0,0 +1,11 @@ +--- ./gst-libs/ext/ffmpeg/libswscale/rgb2rgb.c.orig ++++ ./gst-libs/ext/ffmpeg/libswscale/rgb2rgb.c +@@ -159,7 +159,7 @@ + #define RENAME(a) a ## _C + #include "rgb2rgb_template.c" + +-#if ARCH_X86 ++#if ARCH_X86 && !defined(PIC) + + //MMX versions + #undef RENAME |