Package: audacity
Severity: important
Version: 1.3.2-1
Tags: patch

Hi,

the current version of audacity has unsatisfied Build-Depends on libasound2-dev under non-linux ports.

This package is able to use OSS under GNU/kFreeBSD,
with small tweaks it builds fine without libasound2-dev installed.
Please use attached patch to fix debian/control and to add
debian/patches/kfreebsd.patch with tweaks.

It would also be nice if you can ask upstream
to include changes in debian/patches/kfreebsd.patch.

Thanks in advance

                        Petr
diff -u audacity-1.3.2/debian/control audacity-1.3.2/debian/control
--- audacity-1.3.2/debian/control
+++ audacity-1.3.2/debian/control
@@ -4,7 +4,7 @@
 Maintainer: Debian Multimedia Team <debian-multimedia@lists.debian.org>
 Uploaders: Matt Brubeck <[EMAIL PROTECTED]>, Free Ekanayaka <[EMAIL PROTECTED]>
 Standards-Version: 3.7.2
-Build-Depends: cdbs (>=0.4.4), debhelper (>= 5.0.0), libwxgtk2.6-dev, 
libvorbis-dev (>=1.0.0-3), libogg-dev (>=1.0.0-1), libmad0-dev, libid3tag0-dev, 
libsndfile1-dev, gettext, zip, libflac++-dev, libexpat1-dev, libjack-dev, 
libasound2-dev
+Build-Depends: cdbs (>=0.4.4), debhelper (>= 5.0.0), libwxgtk2.6-dev, 
libvorbis-dev (>=1.0.0-3), libogg-dev (>=1.0.0-1), libmad0-dev, libid3tag0-dev, 
libsndfile1-dev, gettext, zip, libflac++-dev, libexpat1-dev, libjack-dev, 
libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386]
 
 Package: audacity
 Architecture: any
only in patch2:
unchanged:
--- audacity-1.3.2.orig/debian/patches/kfreebsd.patch
+++ audacity-1.3.2/debian/patches/kfreebsd.patch
@@ -0,0 +1,39 @@
+only in patch2:
+unchanged:
+--- lib-src/portaudio-v19/src/hostapi/oss/pa_unix_oss.c
++++ lib-src/portaudio-v19/src/hostapi/oss/pa_unix_oss.c
+@@ -63,7 +63,7 @@
+ #include <limits.h>
+ #include <semaphore.h>
+ 
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+ # include <sys/soundcard.h>
+ # define DEVICE_NAME_BASE            "/dev/dsp"
+ #elif defined __linux__
+only in patch2:
+unchanged:
+--- lib-src/portaudio/pa_unix_oss/pa_unix_oss.c
++++ lib-src/portaudio/pa_unix_oss/pa_unix_oss.c
+@@ -42,7 +42,7 @@
+ 
+ #if defined(__linux__)
+ #include <linux/soundcard.h>
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+ #include <sys/soundcard.h>
+ #else
+ #include <machine/soundcard.h> /* JH20010905 */
+only in patch2:
+unchanged:
+--- lib-src/libnyquist/snd/sndconfig.h
++++ lib-src/libnyquist/snd/sndconfig.h
+@@ -60,7 +60,7 @@
+ #elif defined(IRIX)
+   #include "sndirix.h"
+ 
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+   #include "sndfreebsd.h"
+ 
+ #elif defined(_WIN32)

Reply via email to