summaryrefslogtreecommitdiffstats
path: root/emulators/frodo
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/frodo')
-rw-r--r--emulators/frodo/Makefile2
-rw-r--r--emulators/frodo/files/patch-SID.cpp20
-rw-r--r--emulators/frodo/files/patch-SID_linux.i15
3 files changed, 36 insertions, 1 deletions
diff --git a/emulators/frodo/Makefile b/emulators/frodo/Makefile
index 3b80ba4..06e556a 100644
--- a/emulators/frodo/Makefile
+++ b/emulators/frodo/Makefile
@@ -7,7 +7,7 @@
PORTNAME= frodo
PORTVERSION= 4.1b
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= emulators tk84
MASTER_SITES= http://wwwthep.physik.uni-mainz.de/~cbauer/
DISTNAME= FrodoV4_1b.Src
diff --git a/emulators/frodo/files/patch-SID.cpp b/emulators/frodo/files/patch-SID.cpp
new file mode 100644
index 0000000..1b340e4
--- /dev/null
+++ b/emulators/frodo/files/patch-SID.cpp
@@ -0,0 +1,20 @@
+--- SID.cpp.orig 2002-01-02 21:18:59.000000000 +0000
++++ SID.cpp 2004-11-27 15:51:44.000000000 +0000
+@@ -428,7 +428,7 @@
+ int play_buf; // Number of buffer currently playing
+ #endif
+
+-#ifdef __linux__
++#if defined(__linux__) || defined(__FreeBSD__)
+ int devfd, sndbufsize, buffer_rate;
+ int16 *sound_buffer;
+ #endif
+@@ -1351,7 +1351,7 @@
+ #elif defined(AMIGA)
+ #include "SID_Amiga.i"
+
+-#elif defined(__linux__)
++#elif defined(__linux__) || defined(__FreeBSD__)
+ #include "SID_linux.i"
+
+ #elif defined(SUN)
diff --git a/emulators/frodo/files/patch-SID_linux.i b/emulators/frodo/files/patch-SID_linux.i
new file mode 100644
index 0000000..b7ea913
--- /dev/null
+++ b/emulators/frodo/files/patch-SID_linux.i
@@ -0,0 +1,15 @@
+--- SID_linux.i.orig 2002-01-02 21:17:00.000000000 +0000
++++ SID_linux.i 2004-11-27 15:54:36.000000000 +0000
+@@ -8,7 +8,12 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+-#include <linux/soundcard.h>
++
++#if defined(__linux__)
++# include <linux/soundcard.h>
++#elif defined(__FreeBSD__)
++# include <machine/soundcard.h>
++#endif
+
+ #include "VIC.h"
OpenPOWER on IntegriCloud