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:
parent
059719fe02
commit
c9efe7f5e8
|
@ -2,7 +2,7 @@ Source: minimodem
|
||||||
Section: comm
|
Section: comm
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Kamal Mostafa <kamal@whence.com>
|
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
|
Standards-Version: 3.9.3
|
||||||
Homepage: http://www.whence.com/minimodem
|
Homepage: http://www.whence.com/minimodem
|
||||||
#Vcs-Git: git://git.debian.org/collab-maint/minimodem.git
|
#Vcs-Git: git://git.debian.org/collab-maint/minimodem.git
|
||||||
|
|
|
@ -9,5 +9,18 @@
|
||||||
# Uncomment this to turn on verbose mode.
|
# Uncomment this to turn on verbose mode.
|
||||||
#export DH_VERBOSE=1
|
#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 $@
|
dh $@
|
||||||
|
|
Loading…
Reference in New Issue