Hi,
This diff adds the rtunes FLAVOR to the mplayer port, which enables
mplayer to stream audio directly to an Apple Airport Express device
over the AO interface like this:
mplayer -ao rtunes:device=192.168.1.23 <audiofile>
or
mplayer -ao rtunes:device=192.168.1.23 <URL>
The FLAVOR depends on rtunes-0.6 which I've just updated.
Comments? Objections? Testers? OKs?
Cheers,
Marcus
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/mplayer/Makefile,v
retrieving revision 1.110
diff -u -p -r1.110 Makefile
--- Makefile 22 Jan 2007 15:04:04 -0000 1.110
+++ Makefile 8 Feb 2007 10:21:58 -0000
@@ -88,7 +88,7 @@ CONFIGURE_ARGS+=--enable-runtime-cpudete
CONFIGURE_ARGS+=--disable-altivec
.endif
-FLAVORS= arts esd sdl ggi debug mad no_x11 aa
+FLAVORS= arts esd sdl ggi debug mad no_x11 aa rtunes
FLAVOR?=
.if ${MACHINE_ARCH:Marm}
@@ -182,6 +182,12 @@ LIB_DEPENDS+= aa.>=1.3:aalib-*:graphics/
.endif
.else
CONFIGURE_ARGS+=--disable-aa
+.endif
+
+.if ${FLAVOR:L:Mrtunes}
+LIB_DEPENDS+= rtunes::audio/rtunes
+post-patch:
+ cd ${WRKDIR}; patch -p0 < ${PREFIX}/share/examples/rtunes/mplayer.diff
.endif
NO_REGRESS= Yes