Subject: xmms patch for raw cds
To: None <tech-pkg@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-pkg
Date: 02/10/2003 16:11:01
Anyone see any problems with the trailing patch to set correct defaults
for the audio CD plugin (under NetBSD at least)?  The "/cdrom/" for the
cdda-dir is probably not correct for every system though, so the current
MESSAGE file in the package should stay.

Simon.
--
Simon Burge                                   <simonb@wasabisystems.com>
NetBSD Development, Support and Service:   http://www.wasabisystems.com/


Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/audio/xmms/Makefile,v
retrieving revision 1.40
diff -d -p -u -r1.40 Makefile
--- Makefile	2002/12/20 21:34:25	1.40
+++ Makefile	2003/02/10 05:09:19
@@ -35,7 +35,10 @@ CONFIGURE_ARGS+=	--enable-ipv6
 .endif
 
 .if (${OPSYS} == NetBSD)
-CONFIGURE_ARGS+=	--with-dev-dsp=${DEVOSSSOUND}
+RAWPART!=               sysctl -n kern.rawpartition | tr 0-9 a-j
+CONFIGURE_ARGS+=	--with-dev-dsp=${DEVOSSSOUND}		\
+			--with-cdda-device=/dev/rcd0${RAWPART}	\
+			--with-cdda-dir=/cdrom/
 CPPFLAGS+=		-DHAVE_NANOSLEEP=1
 
 .  if (${MACHINE_ARCH} == i386)