Package: classpath
Severity: important
Version: 2:0.91-3
Tags: patch

Hi,

the current version fails to build on GNU/kFreeBSD.

Please find attached patch to fix that.
It excludes linux specific package libasound2-dev
in Build-Depends and changes debian/rules accordingly.

Thanks for your cooperation.
                                 Petr

diff -u classpath-0.91/debian/control classpath-0.91/debian/control
--- classpath-0.91/debian/control
+++ classpath-0.91/debian/control
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Java Maintainers 
<[email protected]> 
 Uploaders: Michael Koch <[EMAIL PROTECTED]>, Arnaud Vandyck <[EMAIL 
PROTECTED]>, John Leuner <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.0.0), jikes (>= 1.19) [!arm], gcj [arm], zip, 
libgtk2.0-dev, libart-2.0-dev, libx11-dev, libice-dev, libxt-dev, libxtst-dev, 
libasound2-dev, cdbs, libcairo2-dev, dpatch, libqt4-dev (>= 4.1.0), dssi-dev, 
ladspa-sdk, libjack0.100.0-dev
+Build-Depends: debhelper (>= 4.0.0), jikes (>= 1.19) [!arm], gcj [arm], zip, 
libgtk2.0-dev, libart-2.0-dev, libx11-dev, libice-dev, libxt-dev, libxtst-dev, 
libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], cdbs, 
libcairo2-dev, dpatch, libqt4-dev (>= 4.1.0), dssi-dev, ladspa-sdk, 
libjack0.100.0-dev
 Build-Depends-Indep: gjdoc (>= 0.7.5-4)
 Standards-Version: 3.7.2
 
diff -u classpath-0.91/debian/rules classpath-0.91/debian/rules
--- classpath-0.91/debian/rules
+++ classpath-0.91/debian/rules
@@ -7,6 +7,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 (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -g
@@ -24,6 +25,13 @@
        OPT_COMPILER=--with-jikes=/usr/bin/jikes
 endif
 
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+       OPT_ALSA=--enable-dssi  --enable-alsa
+else
+       OPT_ALSA=--disable-dssi --disable-alsa
+endif
+
+
 config.status: patch configure
        dh_testdir
        MOC=moc-qt4 ./configure \
@@ -38,7 +46,7 @@
                $(OPT_COMPILER) \
                --enable-gtk-cairo \
                --enable-qt-peer \
-               --enable-dssi \
+               $(OPT_ALSA) \
                --enable-jni \
                --with-gjdoc
        touch configured-stamp
@@ -57,7 +65,7 @@
                $(OPT_COMPILER) \
                --enable-gtk-cairo \
                --enable-qt-peer \
-               --enable-dssi \
+               $(OPT_ALSA) \
                --enable-jni
        sed -e 's/^\(SUBDIRS.*\) tools/\1/' < Makefile > Makefile.tmp
        mv Makefile.tmp Makefile

Reply via email to