From 2c83614e4333f5be6c36db32efae90ddb78c27b1 Mon Sep 17 00:00:00 2001 From: Chris Piazza Date: Mon, 27 Sep 1999 17:51:11 +0000 Subject: import of mpmf20. This software is a command line utility used used for transfering audio files in the MP3 format to and from the portable MP3 player MPMan MP-F20. It enables you to upload (specifying the files with wildcards or from a textfile), download, delete, reorder already uploaded files and more on your MPMan MP-F20. PR: Markus Holmberg Submitted by: 13911 --- audio/mpmf20/files/patch-aa | 15 +++++++++++++++ audio/mpmf20/files/patch-ab | 36 ++++++++++++++++++++++++++++++++++++ audio/mpmf20/files/patch-ac | 12 ++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 audio/mpmf20/files/patch-aa create mode 100644 audio/mpmf20/files/patch-ab create mode 100644 audio/mpmf20/files/patch-ac (limited to 'audio/mpmf20/files') 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 ++ #include ++ #define SIZE_MAXPATH PATH_MAX ++ + #elif defined(__linux__) + // linux g++ + #include 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 ++ #include ++ #include ++ #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 +@@ -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 -- cgit v1.2.3