diff options
author | Chris Piazza <cpiazza@FreeBSD.org> | 1999-09-27 17:51:11 +0000 |
---|---|---|
committer | Chris Piazza <cpiazza@FreeBSD.org> | 1999-09-27 17:51:11 +0000 |
commit | 2c83614e4333f5be6c36db32efae90ddb78c27b1 (patch) | |
tree | 8e1e3cbd56376008800a7c3e344a1f315a232ddd /audio/mpmf20/files | |
parent | 72a9dd8777dba4336e7d2ac4c48afe1ef9167e03 (diff) |
Notes
Diffstat (limited to 'audio/mpmf20/files')
-rw-r--r-- | audio/mpmf20/files/patch-aa | 15 | ||||
-rw-r--r-- | audio/mpmf20/files/patch-ab | 36 | ||||
-rw-r--r-- | audio/mpmf20/files/patch-ac | 12 |
3 files changed, 63 insertions, 0 deletions
diff --git a/audio/mpmf20/files/patch-aa b/audio/mpmf20/files/patch-aa new file mode 100644 index 000000000000..c5fefa38cea6 --- /dev/null +++ b/audio/mpmf20/files/patch-aa @@ -0,0 +1,15 @@ +--- app.cpp.orig Wed Sep 22 22:55:41 1999 ++++ app.cpp Wed Sep 22 22:27:06 1999 +@@ -22,6 +22,12 @@ + #define SIZE_MAXPATH _MAX_PATH + #define DELETEARRAY delete[] + ++#elif defined(__FreeBSD__) ++ // FreeBSD g++ ++ #include <unistd.h> ++ #include <sys/syslimits.h> ++ #define SIZE_MAXPATH PATH_MAX ++ + #elif defined(__linux__) + // linux g++ + #include <unistd.h> diff --git a/audio/mpmf20/files/patch-ab b/audio/mpmf20/files/patch-ab new file mode 100644 index 000000000000..d2b75d6c2022 --- /dev/null +++ b/audio/mpmf20/files/patch-ab @@ -0,0 +1,36 @@ +--- mpmf20.cpp.orig Wed Sep 22 22:55:50 1999 ++++ mpmf20.cpp Wed Sep 22 22:47:45 1999 +@@ -23,6 +23,17 @@ + #define DELETEARRAY delete[] + #define STRICMP stricmp + ++#elif defined(__FreeBSD__) ++ // FreeBSD g++ ++ #include <fcntl.h> ++ #include <unistd.h> ++ #include <machine/cpufunc.h> ++ #define OUTPORT(p,v) outb( (p), (v) ) ++ #define INPORT(p) inb( p ) ++ #define CLOCK_SECOND CLOCKS_PER_SEC ++ #define DELETEARRAY delete[] ++ #define STRICMP strcasecmp ++ + #elif defined(__linux__) + // linux g++ + #include <unistd.h> +@@ -237,6 +248,15 @@ + // init error + m_szError[ 0 ] = 0; + m_iIDError = CMPMF20_ERROR_NONE; ++ ++ // if FreeBSD ++ #if defined(__FreeBSD__) ++ // request access to required ports ++ if (open("/dev/io", O_RDONLY) < 0) { ++ LogError( CMPMF20_ERROR_IOPRERM, "open(\"/dev/io\") failed, reason '%s'", SZERROR ); ++ return FALSE; ++ } ++ #endif + + // if linux + #if defined(__linux__) diff --git a/audio/mpmf20/files/patch-ac b/audio/mpmf20/files/patch-ac new file mode 100644 index 000000000000..7e5913ab4626 --- /dev/null +++ b/audio/mpmf20/files/patch-ac @@ -0,0 +1,12 @@ +--- makefile.orig Mon Apr 12 06:49:40 1999 ++++ makefile Mon Sep 27 10:48:08 1999 +@@ -9,8 +9,7 @@ + all: mpmf20 + + mpmf20: app.cpp mpmf20.cpp +- g++ -O1 -o mpmf20 app.cpp mpmf20.cpp +- chmod +s mpmf20 ++ ${CXX} ${CXXFLAGS} -o mpmf20 app.cpp mpmf20.cpp + + clean: + rm -f mpmf20 |