summaryrefslogtreecommitdiff
path: root/audio/rio
diff options
context:
space:
mode:
authoragc <agc>1999-12-31 21:19:49 +0000
committeragc <agc>1999-12-31 21:19:49 +0000
commit4cabf5d72c7d009a77619c041673789801d67f8c (patch)
tree75fd1a17b95b96cb6f7e0dcacf87a9b56f60d699 /audio/rio
parent17877c857e96fadb1a629b95b37a021c81e3d139 (diff)
downloadpkgsrc-4cabf5d72c7d009a77619c041673789801d67f8c.tar.gz
Import the Snowblind Alliance rio tools into the NetBSD packages
collection: 'rio' is a simple command line utility which allows you to display and manage files on your Diamond Rio portable music player. At present the Rio utility supports the Diamond Rio PMP300 with 32M internal flash memory. Additional external flash memory is now supported thanks to the work done by Guido March (march@pc40.mpier.uni-frankfurt.de).
Diffstat (limited to 'audio/rio')
-rw-r--r--audio/rio/Makefile24
-rw-r--r--audio/rio/files/md53
-rw-r--r--audio/rio/files/patch-sum4
-rw-r--r--audio/rio/patches/patch-aa27
-rw-r--r--audio/rio/patches/patch-ab61
-rw-r--r--audio/rio/pkg/COMMENT1
-rw-r--r--audio/rio/pkg/DESCR7
-rw-r--r--audio/rio/pkg/PLIST4
8 files changed, 131 insertions, 0 deletions
diff --git a/audio/rio/Makefile b/audio/rio/Makefile
new file mode 100644
index 00000000000..56039d202b5
--- /dev/null
+++ b/audio/rio/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/12/31 21:19:49 agc Exp $
+#
+
+DISTNAME= rio007
+PKGNAME= rio-1.07
+CATEGORIES= audio
+MASTER_SITES= http://www.world.co.uk/sba/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.world.co.uk/sba/rio.htm
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386
+
+WRKSRC= ${WRKDIR}/rio107
+
+MAKEFILE= makefile
+
+do-install:
+ ${BSD_INSTALL_PROGRAM} ${WRKSRC}/rio ${PREFIX}/bin
+ ${MKDIR} -p ${PREFIX}/share/rio
+ ${BSD_INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/rio
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/rio/files/md5 b/audio/rio/files/md5
new file mode 100644
index 00000000000..67323b9fa55
--- /dev/null
+++ b/audio/rio/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/12/31 21:19:50 agc Exp $
+
+MD5 (rio007.tgz) = 81be1f37f98a23a013d02495b8b23ca9
diff --git a/audio/rio/files/patch-sum b/audio/rio/files/patch-sum
new file mode 100644
index 00000000000..e4419345546
--- /dev/null
+++ b/audio/rio/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 1999/12/31 21:19:50 agc Exp $
+
+MD5 (patch-aa) = e92f08157c6eaf9a0f3963ac91a85a89
+MD5 (patch-ab) = 829e7a99dfc821cc42acb2e3c6003a44
diff --git a/audio/rio/patches/patch-aa b/audio/rio/patches/patch-aa
new file mode 100644
index 00000000000..b4eb5efa254
--- /dev/null
+++ b/audio/rio/patches/patch-aa
@@ -0,0 +1,27 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/12/31 21:19:50 agc Exp $
+
+Add support for NetBSD and Solaris
+
+--- app.cpp 1999/12/17 17:39:52 1.1
++++ app.cpp 1999/12/17 17:41:47
+@@ -67,6 +67,20 @@
+ #define SIZE_MAXPATH MAXPATH
+ #define DELETEARRAY delete
+
++#elif defined(__NetBSD__)
++ // NetBSD g++
++ #include <unistd.h>
++ #include <sys/syslimits.h>
++ #define SIZE_MAXPATH PATH_MAX
++ #define DELETEARRAY delete[]
++
++#elif defined(__sun__) && defined(__svr4__)
++ // Solaris 2.x g++
++ #include <unistd.h>
++ #include <limits.h>
++ #define SIZE_MAXPATH PATH_MAX
++ #define DELETEARRAY delete[]
++
+ #else
+ // not supported
+ #error ! ! compiler/platform not supported ! !
diff --git a/audio/rio/patches/patch-ab b/audio/rio/patches/patch-ab
new file mode 100644
index 00000000000..da45d68c780
--- /dev/null
+++ b/audio/rio/patches/patch-ab
@@ -0,0 +1,61 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/12/31 21:19:50 agc Exp $
+
+Add NetBSD and Solaris platforms
+Add inb() and outb() from XFree86 sources.
+
+--- rio.cpp 1999/12/17 17:42:31 1.1
++++ rio.cpp 1999/12/17 17:44:25
+@@ -109,9 +109,53 @@
+ #define CLOCK_SECOND ((int)CLOCKS_PER_SEC)
+ #define DELETEARRAY delete
+
++#elif defined(__NetBSD__)
++ // NetBSD 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[]
++
++#elif defined(__sun__) && defined(__svr4__)
++ // NetBSD g++
++ #include <fcntl.h>
++ #include <unistd.h>
++ #include <sys/cpupart.h>
++ #include <sys/cpuvar.h>
++ #include <sys/ddi.h>
++ #include <sys/sunddi.h>
++ #define OUTPORT(p,v) outb( p, v )
++ #define INPORT(p) inb( p )
++ #define CLOCK_SECOND CLOCKS_PER_SEC
++ #define DELETEARRAY delete[]
++
+ #else
+ // not supported
+ #error ! ! compiler/platform not supported ! !
++#endif
++
++#if defined(__NetBSD__)
++/* copied from the XFree86 sources */
++/* xc/programs/Xserver/hw/xfree86/common/compiler.h */
++static __inline__ unsigned int
++inb(unsigned short int port)
++{
++ unsigned char ret;
++
++ __asm__ __volatile__("inb %1,%0" :
++ "=a" (ret) :
++ "d" (port));
++ return ret;
++}
++
++static __inline__ void
++outb(unsigned short int port, unsigned char val)
++{
++ __asm__ __volatile__("outb %0,%1" : :"a" (val), "d" (port));
++}
+ #endif
+
+ // port offset constants
diff --git a/audio/rio/pkg/COMMENT b/audio/rio/pkg/COMMENT
new file mode 100644
index 00000000000..d7bbcab4bda
--- /dev/null
+++ b/audio/rio/pkg/COMMENT
@@ -0,0 +1 @@
+utility to display and manage files on the Diamond Rio PMP300
diff --git a/audio/rio/pkg/DESCR b/audio/rio/pkg/DESCR
new file mode 100644
index 00000000000..69f29499f44
--- /dev/null
+++ b/audio/rio/pkg/DESCR
@@ -0,0 +1,7 @@
+'rio' is a simple command line utility which allows you to display and
+manage files on your Diamond Rio portable music player.
+
+At present the Rio utility supports the Diamond Rio PMP300 with 32M
+internal flash memory. Additional external flash memory is now
+supported thanks to the work done by Guido March
+(march@pc40.mpier.uni-frankfurt.de).
diff --git a/audio/rio/pkg/PLIST b/audio/rio/pkg/PLIST
new file mode 100644
index 00000000000..aec017854d2
--- /dev/null
+++ b/audio/rio/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/12/31 21:19:50 agc Exp $
+bin/rio
+share/rio/README
+@dirrm share/rio