summaryrefslogtreecommitdiff
path: root/audio/rioutil
diff options
context:
space:
mode:
authorjoerg <joerg>2005-12-07 17:35:37 +0000
committerjoerg <joerg>2005-12-07 17:35:37 +0000
commit8ce6cd5fe50b0026dd71d72c1b1cd640bf6522aa (patch)
treefb0f6799f2379819814ad238c5e7ba98035605bf /audio/rioutil
parent02a76c6411a868893b67dfe21c32f3e3baf59a5e (diff)
downloadpkgsrc-8ce6cd5fe50b0026dd71d72c1b1cd640bf6522aa.tar.gz
Add DragonFly support. Also unmask for FreeBSD and OpenBSD, if it
doesn't work there, it should be fixed.
Diffstat (limited to 'audio/rioutil')
-rw-r--r--audio/rioutil/Makefile3
-rw-r--r--audio/rioutil/distinfo8
-rw-r--r--audio/rioutil/patches/patch-aa18
-rw-r--r--audio/rioutil/patches/patch-ab13
-rw-r--r--audio/rioutil/patches/patch-ac13
-rw-r--r--audio/rioutil/patches/patch-ad13
-rw-r--r--audio/rioutil/patches/patch-ae23
-rw-r--r--audio/rioutil/patches/patch-af13
8 files changed, 102 insertions, 2 deletions
diff --git a/audio/rioutil/Makefile b/audio/rioutil/Makefile
index ea421e41ffc..c6ed5a13677 100644
--- a/audio/rioutil/Makefile
+++ b/audio/rioutil/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2005/09/28 20:52:18 rillig Exp $
+# $NetBSD: Makefile,v 1.20 2005/12/07 17:35:37 joerg Exp $
#
DISTNAME= rioutil-1.4.7
@@ -16,6 +16,7 @@ CONFIGURE_ARGS+= --with-libusb
ONLY_FOR_PLATFORM= Darwin-*-* Linux-*-* NetBSD-1.6*-* NetBSD-[2-9]*-*
# depends on -r1.6 of sys/dev/usb/urio.c
ONLY_FOR_PLATFORM+= NetBSD-1.5Z-* NetBSD-1.5Z[A-Z]-*
+ONLY_FOR_PLATFORM+= DragonFly-*-* FreeBSD-*-* OpenBSD-*-*
.include "../../audio/id3lib/buildlink3.mk"
.include "../../devel/libusb/buildlink3.mk"
diff --git a/audio/rioutil/distinfo b/audio/rioutil/distinfo
index 19ff3eac38b..39a066853f2 100644
--- a/audio/rioutil/distinfo
+++ b/audio/rioutil/distinfo
@@ -1,5 +1,11 @@
-$NetBSD: distinfo,v 1.8 2005/02/23 20:39:51 agc Exp $
+$NetBSD: distinfo,v 1.9 2005/12/07 17:35:37 joerg Exp $
SHA1 (rioutil-1.4.7.tar.gz) = 956a75ce2f23fa0dfd62a4c1facbd1994b88cde6
RMD160 (rioutil-1.4.7.tar.gz) = 8578338b2b77d3cc9477bc92a6bb8c28b4cf434e
Size (rioutil-1.4.7.tar.gz) = 406844 bytes
+SHA1 (patch-aa) = 6932aee6f2fe76209e65d90e5dd5afb61bb5428b
+SHA1 (patch-ab) = 903135b95b821af8b056805f46e801ef37236e1e
+SHA1 (patch-ac) = 21c13d418b10c173e893365a10de40b4b1f5cc16
+SHA1 (patch-ad) = 3f92420ad40f48953ed3b313dc9452e6d31c9533
+SHA1 (patch-ae) = e803dca42db9f6ebf7af436d722646a223ed0b7b
+SHA1 (patch-af) = 1fc20cbf82272fbdc44f6dd909f64347d9927ea4
diff --git a/audio/rioutil/patches/patch-aa b/audio/rioutil/patches/patch-aa
new file mode 100644
index 00000000000..3b27bb438f2
--- /dev/null
+++ b/audio/rioutil/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.3 2005/12/07 17:35:37 joerg Exp $
+
+--- src/main.c.orig 2005-12-07 17:12:51.000000000 +0000
++++ src/main.c
+@@ -893,10 +893,10 @@ void usage(void){
+ printf(" -d, --delete=<int> delete a track(s)\n\n");
+
+ printf(" options:\n");
+-#if !defined(__FreeBSD__) || !defined(__NetBSD__)
+- printf(" -o, --device=<int> minor number of rio (assigned by driver), /dev/usb/rio?\n");
+-#else
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ printf(" -o, --device=<int> minor number of rio (assigned by driver), /dev/urio?\n");
++#else
++ printf(" -o, --device=<int> minor number of rio (assigned by driver), /dev/usb/rio?\n");
+ #endif
+ printf(" -k, --nocolor supress ansi color\n");
+ printf(" -m, --memory=<int> memory unit to upload/download/delete/format to/from\n");
diff --git a/audio/rioutil/patches/patch-ab b/audio/rioutil/patches/patch-ab
new file mode 100644
index 00000000000..ca0bc48be77
--- /dev/null
+++ b/audio/rioutil/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2005/12/07 17:35:37 joerg Exp $
+
+--- linux_driver/rio_usb.h.orig 2005-12-07 17:17:16.000000000 +0000
++++ linux_driver/rio_usb.h
+@@ -59,7 +59,7 @@ struct RioCommand {
+ int timeout;
+ };
+
+-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+ #define RIO_SEND_COMMAND _IOWR('U', 200, struct RioCommand)
+ #define RIO_RECV_COMMAND _IOWR('U', 201, struct RioCommand)
+ #else
diff --git a/audio/rioutil/patches/patch-ac b/audio/rioutil/patches/patch-ac
new file mode 100644
index 00000000000..1a37e7af999
--- /dev/null
+++ b/audio/rioutil/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2005/12/07 17:35:37 joerg Exp $
+
+--- librioutil/driver_standard.c.orig 2005-12-07 17:14:39.000000000 +0000
++++ librioutil/driver_standard.c
+@@ -33,7 +33,7 @@
+ #ifdef linux
+ #include <linux/usb.h>
+ #define RIODEVICE "/dev/usb/rio"
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ #define RIODEVICE "/dev/urio"
+ #elif defined(__NetBSD__)
+ #define RIODEVICE "/dev/urio"
diff --git a/audio/rioutil/patches/patch-ad b/audio/rioutil/patches/patch-ad
new file mode 100644
index 00000000000..b94361249f9
--- /dev/null
+++ b/audio/rioutil/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2005/12/07 17:35:37 joerg Exp $
+
+--- include/rio_usb.h.orig 2005-12-07 17:15:13.000000000 +0000
++++ include/rio_usb.h
+@@ -54,7 +54,7 @@ struct RioCommand {
+ int timeout;
+ };
+
+-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+ #define RIO_SEND_COMMAND _IOWR('U', 200, struct RioCommand)
+ #define RIO_RECV_COMMAND _IOWR('U', 201, struct RioCommand)
+ #else
diff --git a/audio/rioutil/patches/patch-ae b/audio/rioutil/patches/patch-ae
new file mode 100644
index 00000000000..e280bdb8677
--- /dev/null
+++ b/audio/rioutil/patches/patch-ae
@@ -0,0 +1,23 @@
+$NetBSD: patch-ae,v 1.1 2005/12/07 17:35:37 joerg Exp $
+
+--- include/rio_internal.h.orig 2005-12-07 17:15:27.000000000 +0000
++++ include/rio_internal.h
+@@ -567,7 +567,7 @@ unsigned int crc32_rio (unsigned char *,
+
+ #if defined (__FreeBSD__) || defined(__MacOSX__)
+ u_int32_t bswap_32(u_int32_t);
+-#elif defined (__NetBSD__)
++#elif defined (__NetBSD__) || defined(__DragonFly__)
+ #define bswap_32(x) bswap32(x)
+ #endif
+
+@@ -585,6 +585,9 @@ char *basename(char *x);
+
+ #include <machine/endian.h>
+
++#elif defined(__DragonFly__)
++#include <sys/endian.h>
++
+ #else
+
+ #include <sys/endian.h>
diff --git a/audio/rioutil/patches/patch-af b/audio/rioutil/patches/patch-af
new file mode 100644
index 00000000000..ccdb120e456
--- /dev/null
+++ b/audio/rioutil/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2005/12/07 17:35:37 joerg Exp $
+
+--- librioutil/cksum.c.orig 2005-12-07 17:21:36.000000000 +0000
++++ librioutil/cksum.c
+@@ -29,6 +29,8 @@
+ #ifdef linux
+ #include <byteswap.h>
+ #include <endian.h>
++#elif defined(__DragonFly__)
++#include <sys/endian.h>
+ #elif defined(__FreeBSD__) || defined(__MacOSX__)
+ #include <machine/endian.h>
+ #else