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.
This commit is contained in:
Kamal Mostafa 2012-08-19 13:52:35 -07:00
parent 059719fe02
commit c9efe7f5e8
2 changed files with 14 additions and 1 deletions

2
debian/control vendored
View File

@ -2,7 +2,7 @@ Source: minimodem
Section: comm
Priority: optional
Maintainer: Kamal Mostafa <kamal@whence.com>
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

13
debian/rules vendored
View File

@ -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 $@