[Pkg-voip-commits] [portaudio19] 25/114: * FTBFS on GNU/kFreeBSD (due to unsatisfied Build-Depends on libasound2-dev) (Closes: #401052)

Benjamin Drung bdrung at moszumanska.debian.org
Sun Dec 25 20:05:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

bdrung pushed a commit to branch master
in repository portaudio19.

commit 7ff5177c4acde3b89da0643efa0cbbd8b48b2120
Author: Mikael Magnusson <mikma at users.sourceforge.net>
Date:   Sat Jan 13 10:57:44 2007 +0000

    * FTBFS on GNU/kFreeBSD  (due to unsatisfied Build-Depends on
      libasound2-dev) (Closes: #401052)
---
 debian/changelog |  4 +++-
 debian/control   |  4 ++--
 debian/rules     | 12 ++++++++++--
 3 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index aaa860b..6ec05eb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,10 @@ portaudio19 (19+svn20060825-2) UNRELEASED; urgency=low
 
   * NOT RELEASED YET
   * debian/rules: add binary-indep
+  * FTBFS on GNU/kFreeBSD  (due to unsatisfied Build-Depends on
+    libasound2-dev) (Closes: #401052)
 
- -- Mikael Magnusson <mikma at users.sourceforge.net>  Sat, 13 Jan 2007 11:19:49 +0100
+ -- Mikael Magnusson <mikma at users.sourceforge.net>  Sat, 13 Jan 2007 11:50:50 +0100
 
 portaudio19 (19+svn20060825-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index d9f3023..3ad555b 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Section: sound
 Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
 Uploaders: Kilian Krause <kilian at debian.org>, Jose Carlos Garcia Sogo <jsogo at debian.org>, Mark Purcell <msp at debian.org>, Mikael Magnusson <mikma at users.sourceforge.net>
 Build-Depends: debhelper (>= 4.0.0), dpatch, autotools-dev,
- libasound2-dev, libjack0.100.0-dev, doxygen
+ libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libjack0.100.0-dev, doxygen
 Standards-Version: 3.7.2
 
 Package: libportaudio2
@@ -25,7 +25,7 @@ Description: Portable audio I/O - shared library
 Package: portaudio19-dev
 Section: devel
 Architecture: any
-Depends: libportaudio2 (= ${Source-Version}), libasound2-dev,
+Depends: libportaudio2 (= ${Source-Version}), ${alsa-dev},
  libjack0.100.0-dev
 Conflicts: libportaudio-dev, libportaudio19-dev, libportaudio-19-dev
 Replaces: libportaudio19-dev, libportaudio-19-dev
diff --git a/debian/rules b/debian/rules
index b80e4a7..c14968f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,7 @@ include /usr/share/dpatch/dpatch.make
 # from having to guess our platform (since we know it already)
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_ARCH_OS    ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
 
 CFLAGS = -Wall -g -D_REENTRANT
@@ -25,6 +26,13 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 	INSTALL_PROGRAM += -s
 endif
 
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+	CONFIGURE_SOUND_ARGS = --with-oss=yes --with-jack=yes --with-alsa=yes
+	DH_GENCONTROL_ARGS = -- -Valsa-dev="libasound2-dev"
+else
+	CONFIGURE_SOUND_ARGS = --with-oss=yes --with-jack=yes --with-alsa=no
+endif
+
 DEBVERSION:=$(shell head -n 1 debian/changelog \
 		    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
 UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
@@ -43,7 +51,7 @@ autoreconf:
 config: patch config.status
 config.status:
 	dh_testdir
-	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-oss=yes --with-jack=yes --with-alsa=yes --enable-cxx
+	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-cxx $(CONFIGURE_SOUND_ARGS)
 
 
 build: config build-stamp
@@ -113,7 +121,7 @@ binary-arch: build install
 	dh_makeshlibs -a -V 'libportaudio2 (>= 19+cvs20060311-1)'
 	dh_installdeb -a
 	dh_shlibdeps -a
-	dh_gencontrol -a
+	dh_gencontrol -a $(DH_GENCONTROL_ARGS)
 	dh_md5sums -a
 	dh_builddeb -a
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/portaudio19.git



More information about the Pkg-voip-commits mailing list