tags 573809 +patch
--

Hi,


better would be to use native sound interface on kfreebsd-*.
Please do packaging only changes as shown bellow.

Petr


--- xwax-0.7/debian/control
+++ xwax-0.7/debian/control
@@ -2,7 +2,7 @@
 Section: sound
 Priority: extra
 Maintainer: Mitchell Smith <m...@mjsprojects.net>
-Build-Depends: debhelper (>= 7), libasound2-dev, libsdl-ttf2.0-dev
+Build-Depends: debhelper (>= 7), libasound2-dev [!kfreebsd-i386 
!kfreebsd-amd64 !hurd-i386], libsdl-ttf2.0-dev
 Standards-Version: 3.8.4
 Homepage: http://www.xwax.co.uk/




--- xwax-0.7/debian/rules
+++ xwax-0.7/debian/rules
@@ -14,6 +14,7 @@
 # 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)
 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
 CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
 else
@@ -31,7 +32,11 @@
 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
        cp -f /usr/share/misc/config.guess config.guess
 endif
+ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
+       ./configure $(CROSS) --prefix /usr --enable-oss  CFLAGS="$(CFLAGS)" 
LDFLAGS="-Wl,-z,defs"
+else
        ./configure $(CROSS) --prefix /usr --enable-alsa CFLAGS="$(CFLAGS)" 
LDFLAGS="-Wl,-z,defs"
+endif

 build: build-stamp




--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to