retitle 620559 qmmp: FTBFS on !linux archs (due to ALSA plugin)
tag 620559 + patch
thanks

Alle Sunday 03 April 2011, Samuel Thibault ha scritto:
> [...], so qmmp should disable alsa support on
> non-linux (I see that it has oss support, so it should be fine).

Attached there is a patch to remove the libasound2-dev build-depend and 
disable the compilation of the ALSA plugin on non-Linux architectures; 
successfully tested on hurd-i386.

-- 
Pino Toscano
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 DEBDIR=debian/tmp
 
 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
@@ -8,13 +9,17 @@
 	MAKE_AUX_FLAGS = -j$(NUMJOBS)
 endif
 
+ifneq ($(DEB_HOST_ARCH_OS),linux)
+	EXTRA_CMAKE_ARGS = -DUSE_ALSA:BOOL=FALSE
+endif
+
 %:
 	dh $@
 
 build: build-stamp
 build-stamp:
 	dh build --before configure
-	cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_BS2B:BOOL=FALSE
+	cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_BS2B:BOOL=FALSE $(EXTRA_CMAKE_ARGS)
 	dh build --after configure -- $(MAKE_AUX_FLAGS)
 	touch build-stamp
 
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Eugene V. Lyubimkin <jac...@debian.org>
 Build-Depends: debhelper (>= 7.0.50), libqt4-dev (>= 4.6.0), cmake (>= 2.6.0),
-  pkg-config, libasound2-dev, libjack-dev (>= 0.102.5), libpulse-dev (>= 0.9.15),
+  pkg-config, libasound2-dev [linux-any], libjack-dev (>= 0.102.5), libpulse-dev (>= 0.9.15),
   libvorbis-dev, libmad0-dev, libtag1-dev (>= 1.6),
   libcurl4-gnutls-dev (>= 7.16), libflac-dev (>= 1.1.3),
   libsamplerate0-dev (>= 0.1.2), libmodplug-dev (>= 1:0.8.4),

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to