From 84c35d1a4ccf5199136cf32bebf4b7259fbd43ec Mon Sep 17 00:00:00 2001
From: ajacoutot <ajacoutot@openbsd.org>
Date: Mon, 12 Jan 2009 14:36:12 +0000
Subject: [PATCH] - show libsndio in the GStreamer preferences selector - regen
 PLIST+WANTLIB while here

---
 x11/gnome/media/Makefile                      |  6 +++---
 ...-gstreamer-properties_pipeline-constants_c | 21 +++++++++++++++++++
 x11/gnome/media/pkg/PLIST                     |  4 +---
 3 files changed, 25 insertions(+), 6 deletions(-)
 create mode 100644 x11/gnome/media/patches/patch-gstreamer-properties_pipeline-constants_c

diff --git a/x11/gnome/media/Makefile b/x11/gnome/media/Makefile
index 0d67ebfb850..020d068729a 100644
--- a/x11/gnome/media/Makefile
+++ b/x11/gnome/media/Makefile
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.11 2008/12/17 18:45:36 jasper Exp $
+# $OpenBSD: Makefile,v 1.12 2009/01/12 14:36:12 ajacoutot Exp $
 
 COMMENT=		GNOME media utilities
 
 GNOME_PROJECT=		gnome-media
 GNOME_VERSION=		2.24.0.1
-PKGNAME=		${DISTNAME}p0
+PKGNAME=		${DISTNAME}p1
 SHARED_LIBS +=	gnome-media-profiles 0.0      # .0.0
 CATEGORIES=		x11
 
@@ -20,7 +20,7 @@ WANTLIB=	ICE ORBit-2 ORBitCosNaming-2 SM X11 Xau Xcomposite \
 		c cairo crypto dbus-1 dbus-glib-1 esd expat fontconfig \
 		freetype gailutil gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glade-2.0 \
 		glib-2.0 glitz gmodule-2.0 gnome-2 gnome-keyring gnomecanvas-2 \
-		gobject-2.0 gthread-2.0 gtk-x11-2.0 jpeg m pcre pixman-1 png \
+		gobject-2.0 gthread-2.0 gtk-x11-2.0 sndio m pcre pixman-1 png \
 		popt pthread ssl util xml2 z
 
 MODULES=		devel/gettext \
diff --git a/x11/gnome/media/patches/patch-gstreamer-properties_pipeline-constants_c b/x11/gnome/media/patches/patch-gstreamer-properties_pipeline-constants_c
new file mode 100644
index 00000000000..9e905c2c082
--- /dev/null
+++ b/x11/gnome/media/patches/patch-gstreamer-properties_pipeline-constants_c
@@ -0,0 +1,21 @@
+$OpenBSD: patch-gstreamer-properties_pipeline-constants_c,v 1.1 2009/01/12 14:36:12 ajacoutot Exp $
+--- gstreamer-properties/pipeline-constants.c.orig	Mon Sep  1 13:42:32 2008
++++ gstreamer-properties/pipeline-constants.c	Mon Jan 12 15:34:21 2009
+@@ -76,6 +76,8 @@ GSTPPipelineDescription audiosink_pipelines[] = {
+       "osssink", NULL, FALSE, TEST_PIPE_SUPPLIED, audiosink_test_pipe, TRUE},
+   {PIPE_TYPE_AUDIOSINK, 0, N_("PulseAudio Sound Server"),
+       "pulsesink", NULL, FALSE, TEST_PIPE_SUPPLIED, audiosink_test_pipe, FALSE},
++  {PIPE_TYPE_AUDIOSINK, 0, N_("SNDIO - OpenBSD libsndio"),
++      "libsndiosink", NULL, FALSE, TEST_PIPE_SUPPLIED, audiosink_test_pipe, FALSE},
+   {PIPE_TYPE_AUDIOSINK, 0, N_("Custom"), NULL, NULL, TRUE, TEST_PIPE_SUPPLIED,
+       audiosink_test_pipe, TRUE}
+ };
+@@ -125,6 +127,8 @@ GSTPPipelineDescription audiosrc_pipelines[] = {
+       TEST_PIPE_AUDIOSINK, NULL, FALSE},
+   {PIPE_TYPE_AUDIOSRC, 0, N_("PulseAudio Sound Server"), "pulsesrc", NULL,
+       FALSE, TEST_PIPE_AUDIOSINK, NULL, FALSE},
++  {PIPE_TYPE_AUDIOSRC, 0, N_("SNDIO - OpenBSD libsndio"),
++      "libsndiosrc", NULL, FALSE, TEST_PIPE_AUDIOSINK, NULL, FALSE},
+   /* Note: using triangle instead of sine for test sound so we
+    * can test the vorbis encoder as well (otherwise it'd compress too well) */
+   {PIPE_TYPE_AUDIOSRC, 0, N_("Test Sound"), "audiotestsrc wave=triangle is-live=true",
diff --git a/x11/gnome/media/pkg/PLIST b/x11/gnome/media/pkg/PLIST
index c57add71ec8..95ac2d725d8 100644
--- a/x11/gnome/media/pkg/PLIST
+++ b/x11/gnome/media/pkg/PLIST
@@ -1,4 +1,4 @@
-@comment $OpenBSD: PLIST,v 1.5 2008/12/17 18:45:36 jasper Exp $
+@comment $OpenBSD: PLIST,v 1.6 2009/01/12 14:36:12 ajacoutot Exp $
 %%SHARED%%
 @bin bin/gnome-audio-profiles-properties
 @bin bin/gnome-sound-recorder
@@ -186,8 +186,6 @@ share/locale/as/LC_MESSAGES/
 share/locale/as/LC_MESSAGES/gnome-media-2.0.mo
 share/locale/az/LC_MESSAGES/gnome-media-2.0.mo
 share/locale/be/LC_MESSAGES/gnome-media-2.0.mo
-share/locale/be@latin/
-share/locale/be@latin/LC_MESSAGES/
 share/locale/be@latin/LC_MESSAGES/gnome-media-2.0.mo
 share/locale/bg/LC_MESSAGES/gnome-media-2.0.mo
 share/locale/bn/LC_MESSAGES/gnome-media-2.0.mo