[PATCH] turns alsa off for Hurd and kFreeBSD

Gonéri Le Bouder goneri at rulezlan.org
Sun Nov 29 20:59:25 UTC 2009


---
 debian/control |    7 ++++---
 debian/rules   |   10 ++++++++++
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 3f69e61..a5867cf 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,8 @@ Uploaders: Samuel Mimram <smimram at debian.org>, Kilian Krause <kilian at debian.org>
 Build-Depends: debhelper (>= 7), dpkg-dev (>= 1.13.19), cdbs, 
  autoconf, automake1.9, autotools-dev, libtool, pkg-config, intltool,
  libglib2.0-dev, libosip2-dev (>= 3.0.3-2), libexosip2-dev (>= 3.0.3-2),
- libasound2-dev, libspeex-dev (>= 1.1.12), libspeexdsp-dev, libsamplerate0-dev, libxml-parser-perl, libgsm1-dev,
+ libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libspeex-dev (>= 1.1.12),
+ libspeexdsp-dev, libsamplerate0-dev, libxml-parser-perl, libgsm1-dev,
  libgtk2.0-dev, libglade2-dev, libtheora-dev,
  dpatch, libavcodec-dev, libreadline5-dev, libsdl1.2-dev, libswscale-dev, doxygen
 Standards-Version: 3.8.1
@@ -66,7 +67,7 @@ Section: libdevel
 Architecture: any
 Provides: liblinphone2-dev
 Replaces: liblinphone2-dev
-Depends: ${misc:Depends}, liblinphone3 (=${binary:Version}), libmediastreamer-dev, libortp-dev, libosip2-dev (>= 2.2.0), libspeex-dev, libsamplerate0-dev, libasound2-dev
+Depends: ${misc:Depends}, liblinphone3 (=${binary:Version}), libmediastreamer-dev, libortp-dev, libosip2-dev (>= 2.2.0), libspeex-dev, libsamplerate0-dev, libasound2-dev [linux-any]
 Conflicts: liblinphone2-dev
 Description: linphone web phone's library (supporting the SIP protocol)
  Linphone is a is an audio and video internet phone using the SIP protocol. It 
@@ -93,7 +94,7 @@ Section: libdevel
 Architecture: any
 Provides: libmediastreamer0-dev
 Replaces: libmediastreamer0-dev
-Depends: ${misc:Depends}, libmediastreamer0 (=${binary:Version}), libasound2-dev, libortp-dev, libspeex-dev
+Depends: ${misc:Depends}, libmediastreamer0 (=${binary:Version}), libasound2-dev [linux-any], libortp-dev, libspeex-dev
 Conflicts: libmediastreamer0-dev
 Description: linphone web phone's media library
  Linphone is a is an audio and video internet phone using the SIP protocol. It 
diff --git a/debian/rules b/debian/rules
index 1628195..061274e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,16 @@ UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e
 FILENAME := linphone_$(UPVERSION).orig.tar.gz
 URL := http://mirrors.zerg.biz/nongnu/linphone/stable/sources/linphone-$(UPVERSION).tar.gz
 
+
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ifneq (,$(findstring kfreebsd,$(DEB_BUILD_ARCH)))
+    DEB_CONFIGURE_USER_FLAGS := --enable-alsa=no
+endif
+ifneq (,$(findstring hurd,$(DEB_BUILD_ARCH)))
+    DEB_CONFIGURE_USER_FLAGS := --enable-alsa=no
+endif
+
+
 clean::
 	rm -fR oRTP/doc
 
-- 
1.6.4.3


--FL5UXtIhxfXey3p5--





More information about the Pkg-voip-maintainers mailing list