diff options
author | dinoex <dinoex@FreeBSD.org> | 2004-11-29 02:30:03 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2004-11-29 02:30:03 +0800 |
commit | 214d5002f1fcab6075388291a57eea52504ca303 (patch) | |
tree | a01ee894c0240ef32ec809490d13e7a37d11e236 /emulators/frodo | |
parent | 4da3ed2681748db8b2e4d3d4fcbc898b34b6389b (diff) | |
download | freebsd-ports-gnome-214d5002f1fcab6075388291a57eea52504ca303.tar.gz freebsd-ports-gnome-214d5002f1fcab6075388291a57eea52504ca303.tar.zst freebsd-ports-gnome-214d5002f1fcab6075388291a57eea52504ca303.zip |
- Fix Sound support
Submitted by: Rob Andrews
Diffstat (limited to 'emulators/frodo')
-rw-r--r-- | emulators/frodo/Makefile | 2 | ||||
-rw-r--r-- | emulators/frodo/files/patch-SID.cpp | 20 | ||||
-rw-r--r-- | emulators/frodo/files/patch-SID_linux.i | 15 |
3 files changed, 36 insertions, 1 deletions
diff --git a/emulators/frodo/Makefile b/emulators/frodo/Makefile index 3b80ba4524c2..06e556a8ec89 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 000000000000..1b340e4795d7 --- /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 000000000000..b7ea9135a256 --- /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" |