aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-09-03 14:32:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-09-03 14:32:21 +0000
commit7ece645426f894660fb3d8268847aceb1cf0e183 (patch)
tree07da4335159610870258749896f2b30b53c6ab37 /main
parentc240bcc69839d096a399fa3530d44a457ca75f67 (diff)
downloadaports-7ece645426f894660fb3d8268847aceb1cf0e183.tar.bz2
aports-7ece645426f894660fb3d8268847aceb1cf0e183.tar.xz
main/gstreamer: build fix for gnu make-3.82
Diffstat (limited to 'main')
-rw-r--r--main/gstreamer/APKBUILD18
1 files changed, 17 insertions, 1 deletions
diff --git a/main/gstreamer/APKBUILD b/main/gstreamer/APKBUILD
index a7c684ea60..1434e085cc 100644
--- a/main/gstreamer/APKBUILD
+++ b/main/gstreamer/APKBUILD
@@ -8,9 +8,25 @@ license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="pkgconfig libxml2-dev glib-dev bison flex gettext-dev libiconv-dev"
-source="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.bz2"
+source="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.bz2
+ "
depends_dev="glib-dev libxml2-dev"
+_builddir="$srcdir"/gstreamer-$pkgver
+prepare() {
+ cd "$_builddir"
+ # fix building with gnu make 3.82
+ find -name Makefile.in | xargs sed -i -e "s/^ /\t/" || return 1
+
+ for i in $source; do
+ case "$i" in
+ *.patch)
+ msg "Applying $i"
+ patch -p1 -i "$srcdir"/$i || return 1
+ ;;
+ esac
+ done
+}
build() {
cd "$srcdir"/gstreamer-$pkgver