Package: fmit
Severity: important
Tags: patch

Hi,

currently your package isn't even tried on kfreebsd-* (and hurd-i386)
since it has a B-D on libasound2-dev, which is only available on Linux.
Please find attached a patch to make it optional on these architectures,
which makes your package build fine on GNU/kFreeBSD, and might help on
GNU/Hurd (unsure about the sound support out there).

Cheers,

-- 
Cyril Brulebois
--- fmit-0.96.7/debian/control	2007-03-11 15:54:05.136658000 +0100
+++ fmit-0.96.7/debian/control	2007-03-11 15:54:38.000000000 +0100
@@ -2,7 +2,7 @@
 Section: sound
 Priority: optional
 Maintainer: Ludovic RESLINGER <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4), autotools-dev, dpatch, libqt3-mt-dev, fftw3-dev, freeglut3-dev, libasound2-dev, libjack-dev
+Build-Depends: debhelper (>= 4), autotools-dev, dpatch, libqt3-mt-dev, fftw3-dev, freeglut3-dev, libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libjack-dev
 Standards-Version: 3.7.2
 
 Package: fmit
--- fmit-0.96.7/debian/rules	2007-03-11 15:54:42.090975000 +0100
+++ fmit-0.96.7/debian/rules	2007-03-11 15:58:43.000000000 +0100
@@ -16,6 +16,14 @@
 # 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)
+
+# Disable Alsa on non-Linux architectures
+ifneq (,$(findstring $(DEB_HOST_ARCH_OS), kfreebsd hurd))
+	DEB_CONFIGURE_ALSA = --disable-alsa
+else
+	DEB_CONFIGURE_ALSA = --enable-alsa
+endif
 
 
 CFLAGS = -Wall -g
@@ -29,7 +37,7 @@
 config.status: patch configure
 	dh_testdir
 	# Add here commands to configure the package.
-	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-Qt-dir=/usr/share/qt3 --disable-alsa CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-Qt-dir=/usr/share/qt3 $(DEB_CONFIGURE_ALSA) CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
 
 
 build: build-stamp

Reply via email to