Petr Stehlik dixit:

>Any suggestion how to work around this?

Try this:

diff -pruN aranym-0.9.14~/debian/control aranym-0.9.14/debian/control
--- aranym-0.9.14~/debian/control       2012-10-09 09:14:46.000000000 +0200
+++ aranym-0.9.14/debian/control        2012-10-09 09:17:00.000000000 +0200
@@ -4,7 +4,7 @@ Priority: extra
 Maintainer: Antonin Kral <a.k...@sh.cvut.cz>
 Homepage: http://aranym.org/
 Standards-Version: 3.9.3
-Build-Depends: debhelper (>= 5), dpkg-dev (>= 1.16.1~), autotools-dev, bzip2, 
libsdl1.2-dev, libsdl-image1.2-dev, libmpfr-dev, libusb-1.0-0-dev, imagemagick, 
quilt
+Build-Depends: debhelper (>= 5), dpkg-dev (>= 1.16.1~), autotools-dev, bzip2, 
libsdl1.2-dev, libsdl-image1.2-dev, libmpfr-dev, libusb-1.0-0-dev 
[!kfreebsd-any], imagemagick, quilt
 
 Package: aranym
 Architecture: any
diff -pruN aranym-0.9.14~/debian/rules aranym-0.9.14/debian/rules
--- aranym-0.9.14~/debian/rules 2012-10-09 09:14:46.000000000 +0200
+++ aranym-0.9.14/debian/rules  2012-10-09 09:17:02.000000000 +0200
@@ -19,6 +19,14 @@ ifeq ($(HOSTTYPE),i686)
        HOSTTYPE = i386
 endif
 
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
+ifeq (${DEB_HOST_ARCH_OS},kfreebsd)
+CF_USB=                --disable-usbhost
+else
+CF_USB=                --enable-usbhost
+endif
+
 build: build-arch build-indep
 build-arch: build-stamp
 build-indep: build-stamp
@@ -26,11 +34,11 @@ build-stamp:
        dh_testdir
 
        ([ ! -f Makefile ] || $(MAKE) distclean)
-       (./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 
--prefix=/usr --enable-usbhost && $(MAKE))
+       (./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 
--prefix=/usr ${CF_USB} && $(MAKE))
        ($(MAKE) install DESTDIR=`pwd`/debian/tmp )
 
        ([ ! -f Makefile ] || $(MAKE) distclean)
-       (./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 
--prefix=/usr --enable-fullmmu --enable-lilo --enable-usbhost && $(MAKE))
+       (./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 
--prefix=/usr --enable-fullmmu --enable-lilo ${CF_USB} && $(MAKE))
        ($(MAKE) install DESTDIR=`pwd`/debian/aranym-mmu )
        cp `pwd`/debian/aranym-mmu/usr/bin/aranym 
`pwd`/debian/tmp/usr/bin/aranym-mmu
 
@@ -38,7 +46,7 @@ build-stamp:
 
 ifeq ($(HOSTTYPE),i386)
        ([ ! -f Makefile ] || $(MAKE) distclean)
-       (./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 
--prefix=/usr --enable-jit-compiler --enable-usbhost && $(MAKE))
+       (./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 
--prefix=/usr --enable-jit-compiler ${CF_USB} && $(MAKE))
        ($(MAKE) install DESTDIR=`pwd`/debian/aranym-jit )
 
        cp `pwd`/debian/aranym-jit/usr/bin/aranym 
`pwd`/debian/tmp/usr/bin/aranym-jit


bye,
//mirabilos, who thinks that this packaging could use a general cleanup…
-- 
<Natureshadow> Oh, ich hab mim Bauch Mittelklick gemacht, als ich nach dem
    Kaffee gegriffen habe…
<mirabilos> Cool, ich hab ne neue eMail-Signatur
<Natureshadow> Sag doch sowas nich, wenn ich den Kaffee in der Hand habe!
    Gib mir nen Lappen! Schnell! Das kommt aber nicht mit in die Signatur!


--
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