diff options
author | cpiazza <cpiazza@FreeBSD.org> | 1999-09-28 01:51:11 +0800 |
---|---|---|
committer | cpiazza <cpiazza@FreeBSD.org> | 1999-09-28 01:51:11 +0800 |
commit | 8cf33491ffc0ab258270b6ca72d7adb25c9509d0 (patch) | |
tree | 04e222b65e9e6e9c3941a1a598863920a96ffc69 /audio/mpmf20/files | |
parent | 02fb5525caa12b1f37267290c2147cfb50473c0a (diff) | |
download | freebsd-ports-gnome-8cf33491ffc0ab258270b6ca72d7adb25c9509d0.tar.gz freebsd-ports-gnome-8cf33491ffc0ab258270b6ca72d7adb25c9509d0.tar.zst freebsd-ports-gnome-8cf33491ffc0ab258270b6ca72d7adb25c9509d0.zip |
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 <saska@acc.umu.se>
Submitted by: 13911
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 |