pkgsrc/audio/rioutil/patches/patch-ac
schmonz 1fca6d8469 Update to 1.5.0. From the changelog:
- Added support for Rio Nitrus.
- Updated mp3 and id3 parsers.
- Removed macosx and usbdevfs drivers. libusb is now the standard driver.
- Several small bugfixes.

pkgsrc patches for DragonFly carried forward. Builds and runs on
OS X but untested (I haven't had a Rio for years). 1.4.7 was broken
in Krister's NetBSD 4.0_BETA2/i386 bulk build; perhaps this will
help.
2007-01-06 04:21:24 +00:00

22 lines
820 B
Text

$NetBSD: patch-ac,v 1.2 2007/01/06 04:21:24 schmonz Exp $
--- librioutil/driver_file.c.orig 2006-08-07 11:47:28.000000000 -0400
+++ librioutil/driver_file.c
@@ -32,7 +32,7 @@
char driver_method[] = "device file";
/* Duplicated from rio_usb.h */
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#define RIO_RECV_COMMAND _IOWR('U', 201, struct RioCommand)
#else
#define RIO_RECV_COMMAND 0x2
@@ -42,7 +42,7 @@ char driver_method[] = "device file";
#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"