From c9efe7f5e85056cd9ae0da7f7387ad0e21c9e9da Mon Sep 17 00:00:00 2001 From: Kamal Mostafa Date: Sun, 19 Aug 2012 13:52:35 -0700 Subject: [PATCH] debian: disable ALSA on non-Linux platforms kfreebsd in Debian supplies alsa via the alsa-oss wrapper package, but that is missing snd_pcm_recover() at least, so build --without-alsa on the non-Linux platforms. --- debian/control | 2 +- debian/rules | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 983baa3..38ed260 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: minimodem Section: comm Priority: optional Maintainer: Kamal Mostafa -Build-Depends: debhelper (>= 7.0.50~), libfftw3-dev, libpulse-dev, libasound2-dev, libsndfile1-dev +Build-Depends: debhelper (>= 7.0.50~), libfftw3-dev, libpulse-dev, libasound2-dev [linux-any], libsndfile1-dev Standards-Version: 3.9.3 Homepage: http://www.whence.com/minimodem #Vcs-Git: git://git.debian.org/collab-maint/minimodem.git diff --git a/debian/rules b/debian/rules index b760bee..725319c 100755 --- a/debian/rules +++ b/debian/rules @@ -9,5 +9,18 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 + +# kfreebsd in Debian supplies alsa via the alsa-oss wrapper package, but that +# is missing snd_pcm_recover() at least, so build --without-alsa on the +# non-Linux platforms: +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) +ifneq (linux,$(DEB_HOST_ARCH_OS)) + configure_flags += --without-alsa +endif + + +override_dh_auto_configure: + dh_auto_configure -- $(configure_flags) + %: dh $@