pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/rtunes Import rtunes CVS snapshot (v0.6 plus a f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bbad3e97b8ee
branches:  trunk
changeset: 535598:bbad3e97b8ee
user:      bjs <bjs%pkgsrc.org@localhost>
date:      Fri Nov 23 00:18:41 2007 +0000

description:
Import rtunes CVS snapshot (v0.6 plus a few bug fixes).


The makefiles for this should really be rewritten to use libtool;
using two makefiles for two different platforms isn't the way we
tend to do things around here ... ;)

Blurb:

Rtunes streams files containing Apple Lossless audio data to
an Apple AirPort Express device.  If a '-' is given as the
file(s) argument, rtunes expects raw PCM audio data on stdin
and encodes it to the Apple Lossless format prior to streaming
it.  With this method it is possible to stream audio data from
any source that can output raw PCM audio data on stdout.

NOTE: the patch and mplayer helper library for this package are
untested; it is installed merely as a convenience.

diffstat:

 audio/rtunes/DESCR             |   9 ++++
 audio/rtunes/Makefile          |  78 ++++++++++++++++++++++++++++++++++++++++++
 audio/rtunes/PLIST             |  10 +++++
 audio/rtunes/distinfo          |  13 +++++++
 audio/rtunes/files/rtunes.conf |  11 +++++
 audio/rtunes/patches/patch-aa  |  13 +++++++
 audio/rtunes/patches/patch-ab  |  10 +++++
 audio/rtunes/patches/patch-ac  |  33 +++++++++++++++++
 audio/rtunes/patches/patch-ad  |  25 +++++++++++++
 audio/rtunes/patches/patch-ae  |  53 ++++++++++++++++++++++++++++
 audio/rtunes/patches/patch-af  |  18 +++++++++
 audio/rtunes/patches/patch-ag  |  13 +++++++
 audio/rtunes/patches/patch-ah  |  44 +++++++++++++++++++++++
 13 files changed, 330 insertions(+), 0 deletions(-)

diffs (truncated from 382 to 300 lines):

diff -r 9965813fb16e -r bbad3e97b8ee audio/rtunes/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/rtunes/DESCR        Fri Nov 23 00:18:41 2007 +0000
@@ -0,0 +1,9 @@
+Rtunes streams files containing Apple Lossless audio data to
+an Apple AirPort Express device.  If a '-' is given as the
+file(s) argument, rtunes expects raw PCM audio data on stdin
+and encodes it to the Apple Lossless format prior to streaming
+it.  With this method it is possible to stream audio data from
+any source that can output raw PCM audio data on stdout.
+
+NOTE: the patch and mplayer helper library for this package are
+untested; it is installed merely as a convenience.
diff -r 9965813fb16e -r bbad3e97b8ee audio/rtunes/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/rtunes/Makefile     Fri Nov 23 00:18:41 2007 +0000
@@ -0,0 +1,78 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/11/23 00:18:41 bjs Exp $
+#
+
+DISTNAME=      rtunes-snap-20071122
+CATEGORIES=    audio
+MASTER_SITES=  ${MASTER_SITE_LOCAL}
+EXTRACT_SUFX=  .tar.bz2
+
+
+MAINTAINER=    bjs%NetBSD.org@localhost
+HOMEPAGE=      http://www.nazgul.ch/dev.html
+COMMENT=       Streams audio to an Apple AirPort Express device
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+NO_CONFIGURE=          yes
+USE_TOOLS+=            yacc lex
+
+.include "../../mk/bsd.prefs.mk"
+
+###
+### XXX this dual-makefile, non-libtoolized package really needs to be
+###     reworked for proper multi-platform support, but I do not have
+###     time as of now.
+###
+.if ${OPSYS} == "Linux"
+USE_TOOLS+=    gmake
+MAKE_ENV+=     MAKE=${GMAKE:Q}
+.else
+USE_BSD_MAKEFILE=      yes
+MAKE_ENV+=             MKPRIVATELIB=yes
+.endif
+
+EGDIR=                 ${PREFIX}/share/examples/rtunes
+CONF_FILES=            ${EGDIR}/${RTUNES_CONF:T} \
+                               ${PKG_SYSCONFDIR}/${RTUNES_CONF:T}
+RTUNES_CONF=           ${WRKDIR}/rtunes.conf
+
+
+INSTALLATION_DIRS_FROM_PLIST=  yes
+
+
+SUBST_CLASSES+=                doc
+SUBST_FILES.doc=       librtunes/README
+SUBST_STAGE.doc=       post-extract
+SUBST_VARS.doc=                PREFIX
+
+post-extract:
+       cp ${FILESDIR}/${RTUNES_CONF:T} ${WRKDIR}/${RTUNES_CONF:T}
+
+.if defined(RTUNES_SERVER) && !empty(RTUNES_SERVER)
+pre-build: prepare-rtunes-conf
+.endif
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/rtunes/rtunes \
+               ${DESTDIR}${PREFIX}/bin/rtunes
+       ${INSTALL_MAN} ${WRKSRC}/rtunes/rtunes.1 \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_MAN} ${WRKSRC}/rtunes/rtunes.conf.5 \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+       ${INSTALL_DATA} ${WRKSRC}/librtunes/librtunes.a \
+               ${DESTDIR}${PREFIX}/lib
+
+       ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/rtunes
+       ${INSTALL_DATA} ${WRKDIR}/rtunes.conf ${DESTDIR}${EGDIR}
+       ${INSTALL_DATA} ${WRKSRC}/librtunes/mplayer.diff ${DESTDIR}${EGDIR}
+       ${INSTALL_DATA} ${WRKSRC}/librtunes/README \
+               ${DESTDIR}${PREFIX}/share/doc/rtunes
+
+.PHONY: prepare-rtunes-conf
+prepare-rtunes-conf:
+       ${RUN} ${ECHO_MSG} "stream to ${RTUNES_SERVER}" >> ${RTUNES_CONF:Q}
+
+.include "../../security/openssl/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r 9965813fb16e -r bbad3e97b8ee audio/rtunes/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/rtunes/PLIST        Fri Nov 23 00:18:41 2007 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/11/23 00:18:41 bjs Exp $
+bin/rtunes
+lib/librtunes.a
+man/man1/rtunes.1
+man/man5/rtunes.conf.5
+share/doc/rtunes/README
+share/examples/rtunes/mplayer.diff
+share/examples/rtunes/rtunes.conf
+@dirrm share/examples/rtunes
+@dirrm share/doc/rtunes
diff -r 9965813fb16e -r bbad3e97b8ee audio/rtunes/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/rtunes/distinfo     Fri Nov 23 00:18:41 2007 +0000
@@ -0,0 +1,13 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/11/23 00:18:41 bjs Exp $
+
+SHA1 (rtunes-snap-20071122.tar.bz2) = 8de9a4e7811785bf2fa05f1da85319942a38c000
+RMD160 (rtunes-snap-20071122.tar.bz2) = 8442a8f90a1a94bdeb61fb8bf1d94bcd861169ab
+Size (rtunes-snap-20071122.tar.bz2) = 17785 bytes
+SHA1 (patch-aa) = 6f4daa1a3adbc8f78f19d3224ecdaedebc4dffc5
+SHA1 (patch-ab) = de448ef28337874aef3704f013b0c8e914f6cdb4
+SHA1 (patch-ac) = 323085981da113f9cc118895af14a60b2ce6fba1
+SHA1 (patch-ad) = 199a0844ce3e62f53e5f34df00af3eb26ab8cbb6
+SHA1 (patch-ae) = 45afb27cd512e77aee74c4da1607f85fd5d15ee1
+SHA1 (patch-af) = 3a4b8e29943e29bf0b94028e3777b07e79a1b9b7
+SHA1 (patch-ag) = e5fb147e809875404a1cd239751b7d8667e0b927
+SHA1 (patch-ah) = 7c04858f66bce0e9def8689b4ecf0f1a5d2c3948
diff -r 9965813fb16e -r bbad3e97b8ee audio/rtunes/files/rtunes.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/rtunes/files/rtunes.conf    Fri Nov 23 00:18:41 2007 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: rtunes.conf,v 1.1.1.1 2007/11/23 00:18:41 bjs Exp $
+
+# This configuration file is very simple:  It contains one line specifying
+# the host to stream to, e.g.
+#
+# stream to your-raop-device.yourdomain.tld
+#
+# If you set the RTUNES_SERVER variable at build-time, pkgsrc
+# has configured this file accordingly.  If not, please add one to this
+# file now.
+
diff -r 9965813fb16e -r bbad3e97b8ee audio/rtunes/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/rtunes/patches/patch-aa     Fri Nov 23 00:18:41 2007 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/11/23 00:18:41 bjs Exp $
+
+--- rtunes/rtsp.c.orig 2006-09-17 08:14:05.000000000 -0400
++++ rtunes/rtsp.c
+@@ -207,7 +207,7 @@ rtsp_Announce(void)
+       len_header = snprintf(header, sizeof(header),
+           "%s"
+           "Content-Type: application/sdp\r\n"
+-          "Content-Length: %ld\r\n"
++          "Content-Length: %zd\r\n"
+           "\r\n",
+           rtsp_execreq("ANNOUNCE"), len_body);
+ 
diff -r 9965813fb16e -r bbad3e97b8ee audio/rtunes/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/rtunes/patches/patch-ab     Fri Nov 23 00:18:41 2007 +0000
@@ -0,0 +1,10 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/11/23 00:18:41 bjs Exp $
+
+--- Makefile.orig      2006-05-06 04:24:03.000000000 -0400
++++ Makefile
+@@ -1,4 +1,3 @@
+-SUBDIR+= rtunes
+-SUBDIR+= librtunes
++SUBDIR+= rtunes .WAIT librtunes
+ 
+ .include <bsd.subdir.mk>
diff -r 9965813fb16e -r bbad3e97b8ee audio/rtunes/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/rtunes/patches/patch-ac     Fri Nov 23 00:18:41 2007 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-ac,v 1.1.1.1 2007/11/23 00:18:41 bjs Exp $
+
+--- rtunes/Makefile.orig       2006-05-06 18:49:18.000000000 -0400
++++ rtunes/Makefile
+@@ -2,25 +2,15 @@
+ 
+ PROG=         rtunes
+-SRCS=         rtunes.c cipher.c mp4.c rtsp.c sys.c parse.y scan.l
+-
+-OS!= uname -s
+-.if ${OS} != "OpenBSD"
+-YFLAGS= -d
+-SRCS+= y.tab.h
+-y.tab.h: parse.y
+-.endif
++SRCS=         rtunes.c cipher.c mp4.c rtsp.c sys.c parse.c scan.l
+ 
+ CFLAGS+=      -Wall -Wstrict-prototypes -ansi
+ LDADD+=               -lcrypto
+ LINTFLAGS+=   -u
++NOGCCERROR=   # defined
++YHEADER=      # defined
+ 
+ CLEANFILES+=  y.tab.h
+ 
+-PIPE=         -pipe
+-
+ MAN=          rtunes.1 rtunes.conf.5
+-MANDIR=               /usr/local/man/cat
+-
+-BINDIR=               /usr/local/bin
+ 
+ .include <bsd.prog.mk>
diff -r 9965813fb16e -r bbad3e97b8ee audio/rtunes/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/rtunes/patches/patch-ad     Fri Nov 23 00:18:41 2007 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-ad,v 1.1.1.1 2007/11/23 00:18:41 bjs Exp $
+
+--- librtunes/README.orig      2007-02-07 14:49:33.000000000 -0500
++++ librtunes/README
+@@ -19,16 +19,16 @@ Do the following steps to build MPlayer 
+ 
+       * build rtunes
+       * apply mplayer.diff to the MPlayer source directory
+-      * copy librtunes.a to your system library directory (e.g. /usr/lib)
++      * copy librtunes.a to your system library directory (e.g. @PREFIX@)
+       * build mplayer
+ 
+-Note: This works also for the OpenBSD port.  Just use the MPlayer source in
+-      the ports working directory after doing a `make patch`.
++Note: This works also for the pkgsrc package.  Just use the MPlayer source in
++      the appropriate ${WRKSRC} directory after invoking `make patch`.
+ 
+ Usage
+ -----
+ 
+-Now MPlayer should include rtunes support.  Check if it worked by:
++Now MPlayer should include rtunes support.  Check if it works by:
+ 
+       mplayer -ao help
+ 
diff -r 9965813fb16e -r bbad3e97b8ee audio/rtunes/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/rtunes/patches/patch-ae     Fri Nov 23 00:18:41 2007 +0000
@@ -0,0 +1,53 @@
+$NetBSD: patch-ae,v 1.1.1.1 2007/11/23 00:18:41 bjs Exp $
+
+--- librtunes/mplayer.diff.orig        2007-02-07 14:49:34.000000000 -0500
++++ librtunes/mplayer.diff
+@@ -1,6 +1,6 @@
+-diff -urN MPlayer-1.0pre8/Makefile MPlayer-1.0pre8-rtunes/Makefile
+---- MPlayer-1.0pre8/Makefile  Sun Jun 11 20:35:47 2006
+-+++ MPlayer-1.0pre8-rtunes/Makefile   Wed Feb  7 20:26:10 2007
++diff -urN Makefile Makefile.orig
++--- Makefile.orig     Sun Jun 11 20:35:47 2006
+++++ Makefile  Wed Feb  7 20:26:10 2007
+ @@ -105,6 +105,8 @@
+               $(X264_LIB) \
+               $(MUSEPACK_LIB) \
+@@ -18,9 +18,9 @@ diff -urN MPlayer-1.0pre8/Makefile MPlay
+          libmpcodecs \
+          libavutil \
+          libavcodec \
+-diff -urN MPlayer-1.0pre8/libao2/Makefile MPlayer-1.0pre8-rtunes/libao2/Makefile
+---- MPlayer-1.0pre8/libao2/Makefile   Sun Jun 11 20:35:42 2006
+-+++ MPlayer-1.0pre8-rtunes/libao2/Makefile    Wed Feb  7 19:42:13 2007
++diff -urN libao2/Makefile libao2/Makefile.orig
++--- libao2/Makefile.orig      Sun Jun 11 20:35:42 2006
+++++ libao2/Makefile   Wed Feb  7 19:42:13 2007
+ @@ -6,6 +6,7 @@
+       ao_mpegpes.c \
+       ao_null.c \
+@@ -29,9 +29,9 @@ diff -urN MPlayer-1.0pre8/libao2/Makefil
+       $(OPTIONAL_SRCS) \
+  
+  OBJS=$(SRCS:.c=.o)
+-diff -urN MPlayer-1.0pre8/libao2/ao_rtunes.c MPlayer-1.0pre8-rtunes/libao2/ao_rtunes.c
+---- MPlayer-1.0pre8/libao2/ao_rtunes.c        Thu Jan  1 01:00:00 1970
+-+++ MPlayer-1.0pre8-rtunes/libao2/ao_rtunes.c Wed Feb  7 19:45:43 2007
++diff -urN libao2/ao_rtunes.c libao2/ao_rtunes.c.orig
++--- libao2/ao_rtunes.c.orig   Thu Jan  1 01:00:00 1970
+++++ libao2/ao_rtunes.c        Wed Feb  7 19:45:43 2007
+ @@ -0,0 +1,142 @@
+ +#include "config.h"
+ +
+@@ -175,9 +175,9 @@ diff -urN MPlayer-1.0pre8/libao2/ao_rtun
+ +{
+ +    return (0.0);
+ +}
+-diff -urN MPlayer-1.0pre8/libao2/audio_out.c MPlayer-1.0pre8-rtunes/libao2/audio_out.c
+---- MPlayer-1.0pre8/libao2/audio_out.c        Sun Jun 11 20:35:42 2006
+-+++ MPlayer-1.0pre8-rtunes/libao2/audio_out.c Wed Feb  7 19:47:07 2007
++diff -urN libao2/audio_out.c libao2/audio_out.c.orig
++--- libao2/audio_out.c.orig   Sun Jun 11 20:35:42 2006
+++++ libao2/audio_out.c        Wed Feb  7 19:47:07 2007
+ @@ -68,6 +68,7 @@
+  extern ao_functions_t audio_out_mpegpes;
+  extern ao_functions_t audio_out_pcm;
diff -r 9965813fb16e -r bbad3e97b8ee audio/rtunes/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/rtunes/patches/patch-af     Fri Nov 23 00:18:41 2007 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-af,v 1.1.1.1 2007/11/23 00:18:41 bjs Exp $



Home | Main Index | Thread Index | Old Index