Hi,

As threaten I've done a diff to add rtunes FLAVOR to the mplayer
port, which applies to the current ports audio/rtunes and x11/mplayer.

I tested this successfully on i386.  It would be nice if some people
could also test it and give some feedback.

And of course Bjorn needs to agree to take the new FLAVOR into
the mplayer port then.

Thanks,
Marcus

-- 
Marcus Glocker, [EMAIL PROTECTED], http://www.nazgul.ch -----------------
diff -urN -x CVS /usr/ports/audio/rtunes/Makefile rtunes/Makefile
--- /usr/ports/audio/rtunes/Makefile    Mon May 29 07:41:51 2006
+++ rtunes/Makefile     Mon May 29 13:28:38 2006
@@ -23,8 +23,13 @@
        ${INSTALL_PROGRAM} ${WRKSRC}/rtunes/rtunes ${PREFIX}/bin/rtunes
        ${INSTALL_MAN} ${WRKSRC}/rtunes/rtunes.1 ${PREFIX}/man/man1
        ${INSTALL_MAN} ${WRKSRC}/rtunes/rtunes.conf.5 ${PREFIX}/man/man5
+       ${INSTALL_DATA} ${WRKSRC}/librtunes/librtunes.a ${PREFIX}/lib
        ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rtunes
        ${INSTALL_DATA} ${WRKSRC}/rtunes/rtunes.conf \
+           ${PREFIX}/share/examples/rtunes
+       ${INSTALL_DATA} ${WRKSRC}/librtunes/mplayer.diff \
+           ${PREFIX}/share/examples/rtunes
+       ${INSTALL_DATA} ${WRKSRC}/librtunes/README \
            ${PREFIX}/share/examples/rtunes
 
 .include <bsd.port.mk>
diff -urN -x CVS /usr/ports/audio/rtunes/pkg/PLIST rtunes/pkg/PLIST
--- /usr/ports/audio/rtunes/pkg/PLIST   Wed Apr 12 09:10:25 2006
+++ rtunes/pkg/PLIST    Mon May 29 13:28:47 2006
@@ -1,7 +1,10 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2006/04/12 07:10:25 mbalmer Exp $
 bin/rtunes
+lib/librtunes.a
 @man man/man1/rtunes.1
 @man man/man5/rtunes.conf.5
 share/examples/rtunes/
+share/examples/rtunes/README
+share/examples/rtunes/mplayer.diff
 share/examples/rtunes/rtunes.conf
 @sample ${SYSCONFDIR}/rtunes.conf
diff -urN -x CVS /usr/ports/x11/mplayer/Makefile mplayer/Makefile
--- /usr/ports/x11/mplayer/Makefile     Wed Apr 19 00:21:51 2006
+++ mplayer/Makefile    Mon May 29 13:37:14 2006
@@ -77,7 +77,7 @@
 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}
@@ -170,6 +170,15 @@
 .endif
 .else
 CONFIGURE_ARGS+=--disable-aa
+.endif
+
+.if ${FLAVOR:L:Mrtunes}
+LIB_DEPENDS+=  rtunes::audio/rtunes
+WANTLIB+=      rtunes
+post-patch:
+       cd ${WRKDIR}; patch -p0 < ${PREFIX}/share/examples/rtunes/mplayer.diff
+       @perl -pi -e 's,librtunes/librtunes.a,${PREFIX}/lib/librtunes.a,g' \
+               ${WRKDIST}/Makefile
 .endif
 
 NO_REGRESS=    Yes

Reply via email to