[arch-commits] CVS update of extra/multimedia-plugins/gstreamer0.10-jack (2 files)

Jan de Groot jgc at archlinux.org
Sat Jun 30 05:46:30 EDT 2007


    Date: Saturday, June 30, 2007 @ 05:46:30
  Author: jgc
    Path: /home/cvs-extra/extra/multimedia-plugins/gstreamer0.10-jack

   Added: PKGBUILD (1.1) badconf (1.1)

upgpkg: gstreamer0.10-jack 0.10.5-1
Add new plugin


----------+
 PKGBUILD |   25 +++++++++++++++++++++++++
 badconf  |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)


Index: extra/multimedia-plugins/gstreamer0.10-jack/PKGBUILD
diff -u /dev/null extra/multimedia-plugins/gstreamer0.10-jack/PKGBUILD:1.1
--- /dev/null	Sat Jun 30 05:46:29 2007
+++ extra/multimedia-plugins/gstreamer0.10-jack/PKGBUILD	Sat Jun 30 05:46:29 2007
@@ -0,0 +1,25 @@
+# $Id: PKGBUILD,v 1.1 2007/06/30 09:46:29 jgc Exp $
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gstreamer0.10-jack
+pkgver=0.10.5
+pkgrel=1
+pkgdesc="GStreamer Jack plugin"
+arch=(i686 x86_64)
+license=('LGPL' 'GPL')
+depends=("gstreamer0.10-bad>=${pkgver}" 'jack-audio-connection-kit')
+makedepends=('pkgconfig')
+url="http://gstreamer.freedesktop.org/"
+groups=('gstreamer0.10-plugins')
+_relname=gst-plugins-bad
+source=(${url}/src/${_relname}/${_relname}-${pkgver}.tar.bz2
+        badconf)
+md5sums=('395f3ed705928e77e5620cccf11a8cff'
+         'e0cebf1d6da30d851d4fc6d40b42e0e6')
+
+build() {
+  cd ${startdir}/src/${_relname}-${pkgver}
+  plugins="jack"
+  . ${startdir}/src/badconf
+  rm -f ${startdir}/pkg/usr/lib/gstreamer-0.10/*.{,l}a
+}
Index: extra/multimedia-plugins/gstreamer0.10-jack/badconf
diff -u /dev/null extra/multimedia-plugins/gstreamer0.10-jack/badconf:1.1
--- /dev/null	Sat Jun 30 05:46:29 2007
+++ extra/multimedia-plugins/gstreamer0.10-jack/badconf	Sat Jun 30 05:46:29 2007
@@ -0,0 +1,49 @@
+# String with all external plugins
+ext_plugins="alsa amrwb bz2 cdaudio directfb divx dts faac faad gsm ivorbis jack ladspa libmms mpeg2enc musepack musicbrainz mythtv neon sdl sndfile soundtoch spc swfdec theoradec timidity x264 xvid"
+
+# Make sure plugin paths are correct
+plugdirs=${plugins/alsa/alsaspdif/}
+plugdirs=${plugdirs/theoradec/theora/}
+
+# Enable plugins in $plugins
+for plugin in ${plugins}; do
+  ext_plugins=${ext_plugins/ ${plugin} / }
+done
+
+for plugin in ${ext_plugins}; do
+  gst_conf="${gst_conf} --disable-${plugin} "
+done
+
+for plugin in ${plugins}; do
+  gst_conf="${gst_conf} --enable-${plugin} "
+done
+
+if [ ! -z "${plugins}" ]; then
+  # Speed up configure script if we only build plugins
+  makefiles="Makefile ext/Makefile"
+  for plugdir in ${plugdirs}; do
+    makefiles="${makefiles} ext/${plugdir}/Makefile"
+  done
+  sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" -i configure
+fi
+
+./configure --prefix=/usr \
+            --sysconfdir=/etc \
+            --localstatedir=/var \
+            --disable-docs-build \
+            --disable-plugin-docs \
+	    ${gst_conf}
+
+# Normal install without additional external plugins
+if [ -z "${plugins}" ]; then  
+  make || return 1
+  make DESTDIR=$startdir/pkg install
+else
+  # Install $plugins
+  for plugdir in ${plugdirs}; do
+    pushd ext/${plugdir}
+    make || return 1
+    make DESTDIR=$startdir/pkg install
+    popd
+  done
+fi




More information about the arch-commits mailing list