Package: libcanberra
Version: 0.11
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd

libcanberra fails to build on GNU/kFreeBSD, as alsa is unconditionally
enabled. The simple patch below fixes the problem. Could you please apply
it in the next upload? Thanks in advance.

diff -u libcanberra-0.11/debian/rules libcanberra-0.11/debian/rules
--- libcanberra-0.11/debian/rules
+++ libcanberra-0.11/debian/rules
@@ -19,11 +19,15 @@
 
 DEB_CONFIGURE_EXTRA_FLAGS =                    \
        --disable-pulse                         \
-       --enable-alsa                           \
        --enable-gtk                            \
        --enable-gtk-doc                        \
        --enable-tdb                            \
        --with-builtin=dso
+
+ifeq ($(DEB_HOST_ARCH_OS), linux)
+DEB_CONFIGURE_EXTRA_FLAGS += --enable-alsa
+endif
+
 DEB_DH_MAKESHLIBS_ARGS_ALL = --exclude=usr/lib/gtk-2.0/modules
 DEB_DH_MAKESHLIBS_ARGS_ALL += --exclude=/usr/lib/libcanberra-0.11
 DEB_DH_MAKESHLIBS_ARGS_libcanberra0 += -V "libcanberra0 (>= 0.11)" -- -c4
--- libcanberra-0.11.orig/debian/libcanberra0.install.kfreebsd
+++ libcanberra-0.11/debian/libcanberra0.install.kfreebsd
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/libcanberra.so.*
+debian/tmp/usr/lib/libcanberra-*/libcanberra-oss.so


-- System Information:
Debian Release: squeeze/sid
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 7.1-1-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to