On Thu, Aug 20, 2009 at 01:06:46PM +0200, Petr Salinger wrote:
> Hi,
>
> the current version fails to build on GNU/kFreeBSD.
I attached a patched for the new upstream version. It's based on the one from
Petr but It just turns alsa off on kFreeBSD and Hurd.
Cheers
Gonéri Le Bouder
>From 3f26398fc3dbcf850e776b497ed9eb1ee7795874 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= <[email protected]>
Date: Sun, 29 Nov 2009 21:59:25 +0100
Subject: [PATCH] turns alsa off for Hurd and kFreeBSD
---
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 <[email protected]>, Kilian Krause <[email protected]>
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