openbsd-ports/audio/libcanberra/patches/patch-src_Makefile_am
ajacoutot d53a51f041 MULTIPACKAGE this port into:
-main, the main libcanberra library
    -gtk, libcanberra-gtk (gtk+2)
    -gtk3 libcanberra-gtk3 (gtk+3)

This is needed for the ongoing GNOME3 work without forcing a global move
to gtk+3. The -gtk subpackage may disappear in the future when nothing
uses it.

This move will prevent the login/logout sounds to work in
gnome-session-2.X but it is a necessary evil to move forward.

EDONOTCARE/agreed by several
2011-04-13 06:47:22 +00:00

41 lines
993 B
Plaintext

$OpenBSD: patch-src_Makefile_am,v 1.5 2011/04/13 06:47:22 ajacoutot Exp $
--- src/Makefile.am.orig Thu Feb 24 23:06:16 2011
+++ src/Makefile.am Tue Apr 12 15:02:53 2011
@@ -212,6 +212,36 @@ libcanberra_oss_la_LDFLAGS = \
endif
endif
+if HAVE_SNDIO
+if BUILTIN_SNDIO
+
+libcanberra_la_SOURCES += \
+ sndio.c
+libcanberra_la_LIBADD += \
+ $(SNDIO_LIBS)
+
+else
+
+plugin_LTLIBRARIES += \
+ libcanberra-sndio.la
+
+libcanberra_sndio_la_SOURCES = \
+ sndio.c
+libcanberra_sndio_la_CFLAGS = \
+ -Ddriver_open=sndio_driver_open \
+ -Ddriver_destroy=sndio_driver_destroy \
+ -Ddriver_change_device=sndio_driver_change_device \
+ -Ddriver_change_props=sndio_driver_change_props \
+ -Ddriver_play=sndio_driver_play \
+ -Ddriver_cancel=sndio_driver_cancel \
+ -Ddriver_cache=sndio_driver_cache
+libcanberra_sndio_la_LIBADD = \
+ libcanberra.la $(SNDIO_LIBS)
+libcanberra_sndio_la_LDFLAGS = \
+ -avoid-version -module -export-dynamic
+endif
+endif
+
if HAVE_GSTREAMER
if BUILTIN_GSTREAMER