Package: hf
Severity: important
Version: 0.7.3-3
Tags: patch
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs to exclude linux specific build-depends,
and small portability tweaks for sources.
Please find attached patch with that.
It would also be nice if you can ask upstream
to include this changes.
Thanks in advance
Petr
diff -u hf-0.7.3/debian/control hf-0.7.3/debian/control
--- hf-0.7.3/debian/control
+++ hf-0.7.3/debian/control
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Joop Stakenborg <[EMAIL PROTECTED]>
Standards-Version: 3.6.2
-Build-Depends: debhelper (>=4), libgtk1.2-dev, libncurses5-dev,
libasound2-dev, autotools-dev
+Build-Depends: debhelper (>=4), libgtk1.2-dev, libncurses5-dev, libasound2-dev
[!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], autotools-dev
Package: hf
Architecture: any
only in patch2:
unchanged:
--- hf-0.7.3.orig/util/reffreq.c
+++ hf-0.7.3/util/reffreq.c
@@ -45,9 +45,8 @@
#include <sys/ipc.h>
#include <math.h>
#include <stdlib.h>
-#ifdef __linux__
+#ifndef __MSDOS__
#include <sys/soundcard.h>
-#include <asm/page.h>
#include <endian.h>
#endif
only in patch2:
unchanged:
--- hf-0.7.3.orig/hfkernel/l1/oss.c
+++ hf-0.7.3/hfkernel/l1/oss.c
@@ -30,7 +30,7 @@
#include "config.h"
#endif
-#include <asm/byteorder.h>
+#include <endian.h>
#include <sys/soundcard.h>
#include <sys/types.h>
#include <sys/socket.h>
only in patch2:
unchanged:
--- hf-0.7.3.orig/hfkernel/mt63/sound.cc
+++ hf-0.7.3/hfkernel/mt63/sound.cc
@@ -25,7 +25,7 @@
#include "sound.h"
-#ifdef __linux__
+#ifndef __MSDOS__
#include <unistd.h>
#include <sys/soundcard.h>
#include <sys/ioctl.h>
only in patch2:
unchanged:
--- hf-0.7.3.orig/hfkernel/mt63/sound.h
+++ hf-0.7.3/hfkernel/mt63/sound.h
@@ -25,7 +25,7 @@
#define __SOUND_H__
-#ifdef __linux__
+#ifndef __MSDOS__
#include <unistd.h>
#include <sys/fcntl.h>
#define __LINUX_SOUND__
only in patch2:
unchanged:
--- hf-0.7.3.orig/hfkernel/main.c
+++ hf-0.7.3/hfkernel/main.c
@@ -42,7 +42,7 @@
#include <signal.h>
#include <syslog.h>
#include <sys/types.h>
-#include <asm/byteorder.h>
+#include <endian.h>
#include <sys/soundcard.h>
#include <sys/socket.h>
#include <fcntl.h>