[arch-commits] CVS update of extra/multimedia-plugins/gstreamer0.10-wavpack (goodconf)

Eric Belanger eric at archlinux.org
Sat Aug 25 23:43:20 EDT 2007


    Date: Saturday, August 25, 2007 @ 23:43:20
  Author: eric
    Path: /home/cvs-extra/extra/multimedia-plugins/gstreamer0.10-wavpack

   Added: goodconf (1.1)

upgpkg: gstreamer0.10-wavpack 0.10.6-1
added missing goodconf to cvs


----------+
 goodconf |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)


Index: extra/multimedia-plugins/gstreamer0.10-wavpack/goodconf
diff -u /dev/null extra/multimedia-plugins/gstreamer0.10-wavpack/goodconf:1.1
--- /dev/null	Sat Aug 25 23:43:20 2007
+++ extra/multimedia-plugins/gstreamer0.10-wavpack/goodconf	Sat Aug 25 23:43:20 2007
@@ -0,0 +1,49 @@
+# String with all external plugins
+ext_plugins="aalib annodex cairo cdio gdk_pixbuf hal libdv esd flac gconf jpeg ladspa libcaca libpng dv1394 shout2 speex taglib"
+
+# Make sure plugin paths are correct
+plugdirs=${plugins/libdv/dv}
+plugdirs=${plugdirs/dv1394/raw1394}
+
+# 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