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

Jan de Groot jgc at archlinux.org
Sat Jun 30 06:12:13 EDT 2007


    Date: Saturday, June 30, 2007 @ 06:12:13
  Author: jgc
    Path: /home/cvs-extra/extra/multimedia-plugins/gstreamer0.10-mpeg2enc

   Added: PKGBUILD (1.1) badconf (1.1)

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


----------+
 PKGBUILD |   25 +++++++++++++++++++++++++
 badconf  |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)


Index: extra/multimedia-plugins/gstreamer0.10-mpeg2enc/PKGBUILD
diff -u /dev/null extra/multimedia-plugins/gstreamer0.10-mpeg2enc/PKGBUILD:1.1
--- /dev/null	Sat Jun 30 06:12:13 2007
+++ extra/multimedia-plugins/gstreamer0.10-mpeg2enc/PKGBUILD	Sat Jun 30 06:12:13 2007
@@ -0,0 +1,25 @@
+# $Id: PKGBUILD,v 1.1 2007/06/30 10:12:13 jgc Exp $
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gstreamer0.10-mpeg2enc
+pkgver=0.10.5
+pkgrel=1
+pkgdesc="GStreamer MPEG2 encoding plugin"
+arch=(i686 x86_64)
+license=('LGPL')
+depends=("gstreamer0.10-bad>=${pkgver}" 'mjpegtools>=1.8.0-3')
+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'
+         'e00ea92a50565595863e9164e68418ac')
+
+build() {
+  cd ${startdir}/src/${_relname}-${pkgver}
+  plugins="mpeg2enc"
+  . ${startdir}/src/badconf
+  rm -f ${startdir}/pkg/usr/lib/gstreamer-0.10/*.{,l}a
+}
Index: extra/multimedia-plugins/gstreamer0.10-mpeg2enc/badconf
diff -u /dev/null extra/multimedia-plugins/gstreamer0.10-mpeg2enc/badconf:1.1
--- /dev/null	Sat Jun 30 06:12:13 2007
+++ extra/multimedia-plugins/gstreamer0.10-mpeg2enc/badconf	Sat Jun 30 06:12:13 2007
@@ -0,0 +1,48 @@
+# String with all external plugins
+ext_plugins="amrwb bz2 directfb divx dts faac faad gsm ivorbis libmms musepack imusicbrainz neon sdl soundtoch swfdec theora wavpack xvid"
+
+# Make sure plugin paths are correct
+plugdirs=${plugins}
+
+# 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