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 | |
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
-rw-r--r-- | audio/mpmf20/Makefile | 25 | ||||
-rw-r--r-- | audio/mpmf20/distinfo | 1 | ||||
-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 | ||||
-rw-r--r-- | audio/mpmf20/pkg-comment | 1 | ||||
-rw-r--r-- | audio/mpmf20/pkg-descr | 10 | ||||
-rw-r--r-- | audio/mpmf20/pkg-plist | 1 |
8 files changed, 101 insertions, 0 deletions
diff --git a/audio/mpmf20/Makefile b/audio/mpmf20/Makefile new file mode 100644 index 000000000000..804201d66f70 --- /dev/null +++ b/audio/mpmf20/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: mpmf20 +# Version required: 1.01 +# Date created: 22 September 1999 +# Whom: Markus Holmberg <saska@acc.umu.se> +# +# $FreeBSD$ +# + +DISTNAME= mpmf20 +PKGNAME= mpmf20-1.01 +CATEGORIES= audio +MASTER_SITES= http://www.world.co.uk/sba/ +EXTRACT_SUFX= .tgz + +MAINTAINER= ports@freebsd.org + +MAKEFILE= makefile + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/mpmf20 ${PREFIX}/bin + +post-install: + @${CAT} ${PKGDIR}/MESSAGE + +.include <bsd.port.mk> diff --git a/audio/mpmf20/distinfo b/audio/mpmf20/distinfo new file mode 100644 index 000000000000..6558e7f90184 --- /dev/null +++ b/audio/mpmf20/distinfo @@ -0,0 +1 @@ +MD5 (mpmf20.tgz) = c51b6938a8c67106d460c31ee271943c 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 diff --git a/audio/mpmf20/pkg-comment b/audio/mpmf20/pkg-comment new file mode 100644 index 000000000000..2da55ae220f1 --- /dev/null +++ b/audio/mpmf20/pkg-comment @@ -0,0 +1 @@ +File transfer tool for the MPMan MP-F20 portable MP3-player diff --git a/audio/mpmf20/pkg-descr b/audio/mpmf20/pkg-descr new file mode 100644 index 000000000000..c334ea00d141 --- /dev/null +++ b/audio/mpmf20/pkg-descr @@ -0,0 +1,10 @@ +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. + +WWW: http://www.world.co.uk/sba/ + +- Markus Holmberg +saska@acc.umu.se diff --git a/audio/mpmf20/pkg-plist b/audio/mpmf20/pkg-plist new file mode 100644 index 000000000000..6247ffa6aaef --- /dev/null +++ b/audio/mpmf20/pkg-plist @@ -0,0 +1 @@ +bin/mpmf20 |