updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / gstreamer0.10-good-plugins-ossv4 / PKGBUILD
blobdd5c7c54e4b90156f673a285e1a8a1ecef4048ca
1 # $Id: PKGBUILD 1180 2008-05-01 19:04:15Z jgc $
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Sorin Ionescu <sorin.ionescu@gmail.com>
5 pkgname=gstreamer0.10-good-plugins-ossv4
6 pkgver=0.10.18
7 pkgrel=1
8 pkgdesc="GStreamer Multimedia Framework Good Plugins (gst-plugins-good) with OSSv4 support"
9 arch=('i686' 'x86_64')
10 license=('LGPL')
11 depends=("gstreamer0.10-good>=${pkgver}" 'libavc1394' 'hal>=0.5.10' 'libiec61883' 'aalib' 'libshout' 'libdv' 'esd' 'libcdio>=0.80' 'flac' 'gconf>=2.22.0' 'wavpack' 'taglib' 'libsoup>=2.4.1')
12 makedepends=('perlxml' 'pkgconfig')
13 replaces=('gstreamer0.10-aalib' 'gstreamer0.10-wavpack' 'gstreamer0.10-shout2' 'gstreamer0.10-taglib' 'gstreamer0.10-libcaca' 'gstreamer0.10-libpng' 'gstreamer0.10-jpeg' 'gstreamer0.10-cairo' 'gstreamer0.10-flac' 'gstreamer0.10-speex' 'gstreamer0.10-gdkpixbuf' 'gstreamer0.10-hal' 'gstreamer0.10-dv1394' 'gstreamer0.10-annodex' 'gstreamer0.10-gconf' 'gstreamer0.10-esd' 'gstreamer0.10-cdio' 'gstreamer0.10-dv' 'gstreamer0.10-soup')
14 conflicts=('gstreamer0.10-aalib' 'gstreamer0.10-wavpack' 'gstreamer0.10-shout2' 'gstreamer0.10-taglib' 'gstreamer0.10-libcaca' 'gstreamer0.10-libpng' 'gstreamer0.10-jpeg' 'gstreamer0.10-cairo' 'gstreamer0.10-flac' 'gstreamer0.10-speex' 'gstreamer0.10-gdkpixbuf' 'gstreamer0.10-hal' 'gstreamer0.10-dv1394' 'gstreamer0.10-annodex' 'gstreamer0.10-gconf' 'gstreamer0.10-esd' 'gstreamer0.10-cdio' 'gstreamer0.10-dv' 'gstreamer0.10-bad-plugins<0.10.7' 'gstreamer0.10-soup' 'gstreamer0.10-good-plugins')
15 provides=("gstreamer0.10-aalib=${pkgver}" "gstreamer0.10-wavpack=${pkgver}" "gstreamer0.10-shout2=${pkgver}" "gstreamer0.10-taglib=${pkgver}" "gstreamer0.10-libcaca=${pkgver}" "gstreamer0.10-libpng=${pkgver}" "gstreamer0.10-jpeg=${pkgver}" "gstreamer0.10-cairo=${pkgver}" "gstreamer0.10-flac=${pkgver}" "gstreamer0.10-speex=${pkgver}" "gstreamer0.10-gdkpixbuf=${pkgver}" "gstreamer0.10-hal=${pkgver}" "gstreamer0.10-dv1394=${pkgver}" "gstreamer0.10-annodex=${pkgver}" "gstreamer0.10-gconf=${pkgver}" "gstreamer0.10-esd=${pkgver}" "gstreamer0.10-cdio=${pkgver}" "gstreamer0.10-dv=${pkgver}" "gst-plugins-good=${pkgver}" "gstreamer0.10-soup=${pkgver}" "gstreamer0.10-good-plugins=${pkgver}")
16 url="http://gstreamer.freedesktop.org/"
17 groups=('gstreamer0.10-plugins')
18 options=(!libtool)
19 _relname=gst-plugins-good
20 source=(${url}/src/${_relname}/${_relname}-${pkgver}.tar.bz2
21         http://homepage.ntlworld.com/clive_wright/download/gstreamer-ossv4.tar.gz)
23 build()
25   cd $startdir/src/gstreamer-ossv4
26   
27   oldpath="gst-plugins-good-0.10_6.bak/sys/oss"
28   newpath="gst-plugins-good-0.10.6/sys/oss"
29   
30   sed -e "s:$oldpath/gstossmixer.c:gstossmixer.c~:g" \
31       -e "s:$newpath/gstossmixer.c:gstossmixer.c:g" \
32       -e "s:$oldpath/gstossmixertrack.c:gstossmixertrack.c~:g" \
33       -e "s:$newpath/gstossmixertrack.c:gstossmixertrack.c:g" \
34       -e "s:$oldpath/gstossmixertrack.h:gstossmixertrack.h~:g" \
35       -e "s:$newpath/gstossmixertrack.h:gstossmixertrack.h:g" \
36       -i gst-plugins-good-0.10.6_v0.1.patch  
37   
38   cd ${startdir}/src/${_relname}-${pkgver}/sys/oss
39    
40   patch -p0 -i $startdir/src/gstreamer-ossv4/*.patch || return 1
42   cd ${startdir}/src/${_relname}-${pkgver}
43   
44   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
45     --disable-static --enable-experimental \
46     --disable-docs-build --disable-plugin-docs \
47     --enable-ladspa \
48     --with-package-name="GStreamer Good Plugins (Archlinux)" \
49     --with-package-origin="http://www.archlinux.org/" || return 1
51   make || return 1
52   for dir in ext sys/oss sys/ximage; do
53     make -C ${dir} DESTDIR=${startdir}/pkg install || return 1
54   done
56 md5sums=('9519530e6021698fa1e12a29f16e2feb'
57          '085b6f52a81ed06c8aa2a204286efbac')