summaryrefslogtreecommitdiff
path: root/emulators/stonx
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2006-11-01 11:23:57 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2006-11-01 11:23:57 +0000
commitfb2965d5c9e3daf9e736aaad3c51308f62c1d543 (patch)
tree5e43f20014ca47a1e8a5c06319fb9b3f3b7db6fe /emulators/stonx
parent- Pass maintainership to submitter (diff)
- fix build on FreeBSD 6.x
Diffstat (limited to 'emulators/stonx')
-rw-r--r--emulators/stonx/Makefile5
-rw-r--r--emulators/stonx/files/patch-audio.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/emulators/stonx/Makefile b/emulators/stonx/Makefile
index c160e73e3f2a..91e253327d76 100644
--- a/emulators/stonx/Makefile
+++ b/emulators/stonx/Makefile
@@ -20,6 +20,7 @@ RUN_DEPENDS= mkfontdir:${X_CLIENTS_PORT}
RESTRICTED= "tos.img is copyrighted"
TOSIMG?= tos.img
+#USE_XLIB= yes
USE_X_PREFIX= yes
HAS_CONFIGURE= yes
@@ -87,4 +88,8 @@ IGNORE="Please get a ROM dump from your AtariST and save it as"\
"\"${TOSIMG}\" in \"${DISTDIR}\" manually, and then make install again"
.endif
+.if ${X_WINDOW_SYSTEM:L} == xorg
+BUILD_DEPENDS+= ${X11BASE}/lib/X11/fonts/misc/fonts.alias:${PORTSDIR}/x11-fonts/xorg-fonts-miscbitmaps
+.endif
+
.include <bsd.port.post.mk>
diff --git a/emulators/stonx/files/patch-audio.c b/emulators/stonx/files/patch-audio.c
new file mode 100644
index 000000000000..28a63044dd47
--- /dev/null
+++ b/emulators/stonx/files/patch-audio.c
@@ -0,0 +1,11 @@
+--- audio.c.orig Mon May 5 03:07:05 1997
++++ audio.c Wed Oct 25 19:33:27 2006
+@@ -36,7 +36,7 @@
+ #include <linux/unistd.h>
+ #endif
+ #else /* FreeBSD? */
+-#include <machine/soundcard.h>
++#include <sys/soundcard.h>
+ #endif
+ #include <unistd.h>
+ #define LINUX_DEFAULT_FREQ (22050)