Initial import of dosbox-0.62
DOSBox emulates an x86 PC + DOS as well as various hardware required to play old games. earlier version ok sturm@, ok brad@
This commit is contained in:
parent
6acd3d9907
commit
288141ec3e
34
emulators/dosbox/Makefile
Normal file
34
emulators/dosbox/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2004/10/07 03:05:32 jsg Exp $
|
||||
|
||||
COMMENT= "x86 with DOS emulator targeted at playing old games"
|
||||
VERSION= 0.62
|
||||
DISTNAME= dosbox-${VERSION}
|
||||
CATEGORIES= games x11 emulators
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dosbox/}
|
||||
|
||||
HOMEPAGE= http://dosbox.sourceforge.net/
|
||||
|
||||
MAINTAINER= Jonathan Gray <jsg@openbsd.org>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
LIB_DEPENDS= SDL_net::devel/sdl-net \
|
||||
SDL_sound::devel/sdl-sound \
|
||||
png.2::graphics/png
|
||||
|
||||
USE_X11= Yes
|
||||
NO_REGRESS= Yes
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ENV=CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include"
|
||||
CONFIGURE_ENV+=LDFLAGS="-L${LOCALBASE}/lib"
|
||||
# The dynamic CPU core does nasty things
|
||||
CONFIGURE_ARGS= --disable-dynamic-x86
|
||||
CONFIGURE_ARGS+= --disable-alsatest
|
||||
CONFIGURE_ARGS+= --disable-opengl
|
||||
|
||||
.include <bsd.port.mk>
|
3
emulators/dosbox/distinfo
Normal file
3
emulators/dosbox/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (dosbox-0.62.tar.gz) = 80b10f438119f9d83b44dcf175493dcb
|
||||
RMD160 (dosbox-0.62.tar.gz) = 41676d63f9eef9963bce2050931b6bc925d67969
|
||||
SHA1 (dosbox-0.62.tar.gz) = 998053d80fa70b761e9752b36abaf79433eadaff
|
16
emulators/dosbox/patches/patch-include_cross_h
Normal file
16
emulators/dosbox/patches/patch-include_cross_h
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-include_cross_h,v 1.1.1.1 2004/10/07 03:05:32 jsg Exp $
|
||||
--- include/cross.h.orig Tue Oct 5 19:42:34 2004
|
||||
+++ include/cross.h Tue Oct 5 19:42:47 2004
|
||||
@@ -34,10 +34,11 @@
|
||||
#else /* LINUX / GCC */
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
+#include <sys/param.h>
|
||||
#define LONGTYPE(a) a##LL
|
||||
#endif
|
||||
|
||||
-#define CROSS_LEN 512 /* Maximum filename size */
|
||||
+#define CROSS_LEN MAXPATHLEN /* Maximum filename size */
|
||||
|
||||
|
||||
#if defined (WIN32) /* Win 32 */
|
12
emulators/dosbox/patches/patch-src_dos_cdrom_h
Normal file
12
emulators/dosbox/patches/patch-src_dos_cdrom_h
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_dos_cdrom_h,v 1.1.1.1 2004/10/07 03:05:32 jsg Exp $
|
||||
--- src/dos/cdrom.h.orig Sun Oct 3 20:47:55 2004
|
||||
+++ src/dos/cdrom.h Sun Oct 3 20:48:02 2004
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <iostream>
|
||||
+#include <fstream>
|
||||
+#include <string>
|
||||
#include <vector>
|
||||
#include "dosbox.h"
|
||||
#include "mem.h"
|
37
emulators/dosbox/patches/patch-src_dos_cdrom_image_cpp
Normal file
37
emulators/dosbox/patches/patch-src_dos_cdrom_image_cpp
Normal file
@ -0,0 +1,37 @@
|
||||
$OpenBSD: patch-src_dos_cdrom_image_cpp,v 1.1.1.1 2004/10/07 03:05:32 jsg Exp $
|
||||
--- src/dos/cdrom_image.cpp.orig Sun Oct 3 20:48:13 2004
|
||||
+++ src/dos/cdrom_image.cpp Sun Oct 3 20:48:32 2004
|
||||
@@ -23,9 +23,9 @@
|
||||
#include <cstdio>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
-#include <limits>
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
+#include <sys/limits.h>
|
||||
#include <sys/stat.h>
|
||||
#include "cdrom.h"
|
||||
#include "drives.h"
|
||||
@@ -111,11 +111,11 @@ int CDROM_Interface_Image::AudioFile::ge
|
||||
while (true) {
|
||||
int success = Sound_Seek(sample, (unsigned int)(shift + time));
|
||||
if (!success) {
|
||||
- if (time == 1) return lround((double)shift * 176.4f);
|
||||
+ if (time == 1) return (int)((double)shift * 176.4f) + 0.5;
|
||||
shift += time >> 1;
|
||||
time = 1;
|
||||
} else {
|
||||
- if (time > ((numeric_limits<int>::max() - shift) / 2)) return -1;
|
||||
+ if (time > ((INT_MAX - shift) / 2)) return -1;
|
||||
time = time << 1;
|
||||
}
|
||||
}
|
||||
@@ -572,7 +572,7 @@ bool CDROM_Interface_Image::GetRealFileN
|
||||
if (stat(filename.c_str(), &test) == 0) return true;
|
||||
|
||||
// check if file with path relative to cue file exists
|
||||
-#if not defined(WIN32)
|
||||
+#if !defined(WIN32)
|
||||
string tmpstr(pathname + "/" + filename);
|
||||
if (stat(tmpstr.c_str(), &test) == 0) {
|
||||
filename = tmpstr;
|
9
emulators/dosbox/pkg/DESCR
Normal file
9
emulators/dosbox/pkg/DESCR
Normal file
@ -0,0 +1,9 @@
|
||||
DOSBox is a x86 + DOS-emulator.
|
||||
|
||||
DOSBox emulates CPU:286/386 realmode/protected mode, Directory
|
||||
FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics
|
||||
and SoundBlaster/Gravis Ultra Sound cards for excellent sound compatibility
|
||||
with older games...
|
||||
|
||||
You can "re-live" the good old days with the help of DOSBox, it can run plenty
|
||||
of the old classics that don't run on your new computer!
|
8
emulators/dosbox/pkg/PLIST
Normal file
8
emulators/dosbox/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/10/07 03:05:32 jsg Exp $
|
||||
bin/dosbox
|
||||
@man man/man1/dosbox.1
|
||||
share/doc/dosbox/
|
||||
share/doc/dosbox/AUTHORS
|
||||
share/doc/dosbox/NEWS
|
||||
share/doc/dosbox/README
|
||||
share/doc/dosbox/THANKS
|
Loading…
Reference in New Issue
Block a user