summaryrefslogtreecommitdiff
path: root/audio/rplay/patches
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-01-26 22:11:28 +0000
committerjlam <jlam@pkgsrc.org>2000-01-26 22:11:28 +0000
commit0c171b34857691d79d31092d2566bde2807b1228 (patch)
tree4b295ce4af87325b2322ef5446317afc774c43f1 /audio/rplay/patches
parent1944e9c4eab82e275480fb343e0c26b08a87b489 (diff)
downloadpkgsrc-0c171b34857691d79d31092d2566bde2807b1228.tar.gz
* Update rplay to 3.3.2.
* Libtoolize build. * Teach rplay to look for libedit readline emulation if it exists. * Add dependency on rx-1.5. Changes since rplay 3.3.1: * Added devrplay.so which can be used with LD_PRELOAD to add rplay support to audio applications use /dev/dsp. devrplay is known to work with rvplayer, xmp, mpg123, freeamp, s3mod, esd (Enlightenment Sound Daemon) and even rplayd itself. devrplay.so should be installed in your LD_LIBRARY_PATH. Example usage: bash$ LD_PRELOAD=devrplay.so rvplayer bash$ LD_PRELOAD=devrplay.so /usr/X11R6/lib/X11/rvplayer/rvplayer bash$ LD_PRELOAD=devrplay.so dd if=/foo/bar/sound.wav of=/dev/dsp bash$ LD_PRELOAD=devrplay.so xxmp sound.mod bash$ LD_PRELOAD=devrplay.so mpg123 sound.mp3 tcsh users will probably need to `setenv LD_PRELOAD devrplay.so; command' instead of using the `LD_PRELOAD=devrplay.so command' syntax. devrplay has only been tested on Linux, but it should be possible to get it working on other systems. * Added rptp "set" command. This can be used to set rplayd variables. One important use of this is to set the audio-close variable. Examples: Tell rplayd to close the audio device: $ rptp set audio-close 1 Tell rplayd *not* to close the audio device: $ rptp set audio-close 0 * Added rplayd monitor support which allows rptp clients to monitor audio data that is written to the audio device. rptp clients can now issue the "monitor" command to start receiving audio data. One use of this feature is to pipe the audio data to a program for visual display. * rptp includes support for GNU readline and also displays progress information when doing get, put, and monitor. * Fixed several potential rplayd buffer overflows. Changes since rplay 3.2: * Improved Linux support, including playing sounds directly from ATAPI CDROM. Tested with the following: Linux 2.0.34 Debian 2.0 ESS ES1688 AudioDrive (rev 6) (3.1) TOSHIBA CD-ROM XM-1502B, ATAPI CDROM drive This also includes a new --audio-fragsize rplayd option. See README.linux for more information. * Support for external helper applications used to convert unsupported audio formats. Helpers can be configured to support formats such as MPEG (using mpg123), modules (using xmp), and any other format that can be converted using a stdin -> stdout filter. * --fork and --no-fork rplayd options. When not in debug or inetd mode, rplayd will fork to put itself in the background. * rplayd is now installed in $prefix/sbin/rplayd instead of $prefix/bin/rplayd. * Running rplayd from inetd now requires the --inetd option. * --enable-rplayd-user=USER and --enable-rplayd-group=GROUP configure options. * --user=USER and --group=GROUP rplayd options. * Lots of bug fixes.
Diffstat (limited to 'audio/rplay/patches')
-rw-r--r--audio/rplay/patches/patch-aa44
-rw-r--r--audio/rplay/patches/patch-ab73
-rw-r--r--audio/rplay/patches/patch-ac22
-rw-r--r--audio/rplay/patches/patch-ad8
-rw-r--r--audio/rplay/patches/patch-ae15
-rw-r--r--audio/rplay/patches/patch-af16
-rw-r--r--audio/rplay/patches/patch-ag12
-rw-r--r--audio/rplay/patches/patch-ah63
-rw-r--r--audio/rplay/patches/patch-ai23
-rw-r--r--audio/rplay/patches/patch-aj58
-rw-r--r--audio/rplay/patches/patch-ak39
-rw-r--r--audio/rplay/patches/patch-al42
-rw-r--r--audio/rplay/patches/patch-am16
-rw-r--r--audio/rplay/patches/patch-an14
-rw-r--r--audio/rplay/patches/patch-ao12
-rw-r--r--audio/rplay/patches/patch-ap39
-rw-r--r--audio/rplay/patches/patch-aq50
17 files changed, 428 insertions, 118 deletions
diff --git a/audio/rplay/patches/patch-aa b/audio/rplay/patches/patch-aa
index ff2f99b685a..cddda8e82e0 100644
--- a/audio/rplay/patches/patch-aa
+++ b/audio/rplay/patches/patch-aa
@@ -1,25 +1,21 @@
-$NetBSD: patch-aa,v 1.2 1998/08/07 10:36:07 agc Exp $
+$NetBSD: patch-aa,v 1.3 2000/01/26 22:11:36 jlam Exp $
-*** configure.bak Fri Feb 2 03:30:38 1996
---- configure Fri Jun 13 19:14:52 1997
-***************
-*** 2589,2597 ****
-
-
- if test "$no_x" = "yes" -o "$HAVE_FORMS" = "no"; then
-! BUILD_TARGETS="include lib adpcm gsm librplay rplayd rplay rptp doc"
- else
-! BUILD_TARGETS="include lib adpcm gsm librplay rplayd rplay rptp xrplay doc"
- fi
-
-
---- 2589,2597 ----
-
-
- if test "$no_x" = "yes" -o "$HAVE_FORMS" = "no"; then
-! BUILD_TARGETS="include lib adpcm librplay rplayd rplay rptp doc"
- else
-! BUILD_TARGETS="include lib adpcm librplay rplayd rplay rptp xrplay doc"
- fi
-
-
+--- Makefile.config.in.orig Thu Aug 13 02:12:59 1998
++++ Makefile.config.in Tue Jan 18 16:15:32 2000
+@@ -43,6 +43,7 @@
+ #CC_OPTIONS= -O -cckr # SGI
+ #CC_OPTIONS= -O # generic
+ #CC_OPTIONS= -g # debug
++CC_OPTIONS= @CPPFLAGS@ # hack to add CPPFLAGS
+
+ ##
+ ## Extra linker options.
+@@ -53,7 +54,7 @@
+ ##
+ ## Name of the rplay library to build.
+ ##
+-LIBRPLAY_NAME= librplay.a
++LIBRPLAY_NAME= librplay.la
+ #LIBRPLAY_NAME= librplay.sl # HP-UX
+
+ ##
diff --git a/audio/rplay/patches/patch-ab b/audio/rplay/patches/patch-ab
index 45a697d66ee..51222897b7c 100644
--- a/audio/rplay/patches/patch-ab
+++ b/audio/rplay/patches/patch-ab
@@ -1,41 +1,34 @@
-$NetBSD: patch-ab,v 1.2 1998/08/07 10:36:07 agc Exp $
+$NetBSD: patch-ab,v 1.3 2000/01/26 22:11:36 jlam Exp $
-*** rplayd/Makefile.in.orig Fri Feb 2 03:13:57 1996
---- rplayd/Makefile.in Fri Jun 13 19:31:38 1997
-***************
-*** 1,4 ****
---- 1,5 ----
- include @RPLAY_TOP@/Makefile.config
-+ bindir= $(exec_prefix)/sbin
-
- srcdir = @srcdir@
- VPATH = @srcdir@
-***************
-*** 9,21 ****
- MKINSTALLDIRS= @srcdir@/../mkinstalldirs
-
- CPPFLAGS= $(CC_OPTIONS) -I. -I../include -I@srcdir@ -I@srcdir@/../include -I@srcdir@/../lib \
-! -I@srcdir@/../adpcm -I@srcdir@/../gsm @DEFS@
-
- .c.o:
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
-
- LDFLAGS= $(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp \
-! -L../adpcm -ladpcm -L../gsm -lgsm @LDFLAGS@ @LIBS@ -lm
-
- TARGET= rplayd
-
---- 10,22 ----
- MKINSTALLDIRS= @srcdir@/../mkinstalldirs
-
- CPPFLAGS= $(CC_OPTIONS) -I. -I../include -I@srcdir@ -I@srcdir@/../include -I@srcdir@/../lib \
-! -I@srcdir@/../adpcm -I/usr/local/include @DEFS@
-
- .c.o:
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
-
- LDFLAGS= $(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp \
-! -L../adpcm -ladpcm -L/usr/local/lib -lgsm @LDFLAGS@ @LIBS@ -lm
-
- TARGET= rplayd
-
+--- configure.in.orig Wed Jun 9 02:26:28 1999
++++ configure.in Tue Jan 18 16:20:01 2000
+@@ -59,6 +59,7 @@
+ AC_HEADER_TIME
+ dnl AC_PATH_XTRA
+ AC_CHECK_HEADERS(fcntl.h sys/file.h sys/ioctl.h sys/time.h stdlib.h unistd.h memory.h string.h strings.h utime.h limits.h gsm.h gsm/gsm.h rxposix.h rx/rxposix.h)
++AC_CHECK_HEADERS(readline.h history.h readline/readline.h readline/history.h)
+ AC_HEADER_SYS_WAIT
+
+ dnl Check for typedefs, structures, and compiler characteristics.
+@@ -74,7 +75,20 @@
+ AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])
+ AC_CHECK_LIB(nsl, t_accept, [LIBS="$LIBS -lnsl"])
+
+-AC_CHECK_LIB(readline, readline, [RL_LIBS="-lreadline"])
++if test "$ac_cv_header_readline_h" = "yes" ||
++ test "$ac_cv_header_readline_readline_h" = "yes"; then
++ AC_CHECK_LIB(termcap, tputs,
++ [AC_CHECK_LIB(edit, readline,
++ [AC_DEFINE(HAVE_LIBEDIT)
++ AC_DEFINE(HAVE_READLINE)
++ RL_LIBS="-ledit -ltermcap"],
++ [AC_CHECK_LIB(readline, readline,
++ [AC_DEFINE(HAVE_LIBREADLINE)
++ AC_DEFINE(HAVE_READLINE)
++ RL_LIBS="-ledit -ltermcap"], -ltermcap)
++ ], -ltermcap)
++ ])
++fi
+ AC_SUBST(RL_LIBS)
+
+ AC_CHECK_LIB(gsm, gsm_decode, [HAVE_GSM="yes"])
diff --git a/audio/rplay/patches/patch-ac b/audio/rplay/patches/patch-ac
index ff96c554d90..7805e90640f 100644
--- a/audio/rplay/patches/patch-ac
+++ b/audio/rplay/patches/patch-ac
@@ -1,13 +1,13 @@
-$NetBSD: patch-ac,v 1.2 1998/08/07 10:36:07 agc Exp $
+$NetBSD: patch-ac,v 1.3 2000/01/26 22:11:36 jlam Exp $
---- lib/regex.h.orig Sun Jan 18 20:42:26 1998
-+++ lib/regex.h Sun Jan 18 20:42:56 1998
-@@ -473,7 +473,7 @@
- unsigned num_regs, regoff_t *starts, regoff_t *ends));
+--- doc/Makefile.in.orig Tue Jul 14 18:35:23 1998
++++ doc/Makefile.in Tue Jan 18 16:15:32 2000
+@@ -23,7 +23,7 @@
+ .texi.html:
+ $(TEXI2HTML) $(TEXI2HTML_FLAGS) $<
+
+-all:
++all: info
+
+ info: RPLAY.info RPTP.info librplay.info rplay.info
- /* 4.2 bsd compatibility. */
--#ifndef __FreeBSD__
-+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
- extern char *re_comp _RE_ARGS ((_CONST_ char *));
- extern int re_exec _RE_ARGS ((_CONST_ char *));
- #endif
diff --git a/audio/rplay/patches/patch-ad b/audio/rplay/patches/patch-ad
index 336eeae761f..23bde85378a 100644
--- a/audio/rplay/patches/patch-ad
+++ b/audio/rplay/patches/patch-ad
@@ -1,14 +1,14 @@
-$NetBSD: patch-ad,v 1.2 1998/08/07 10:36:07 agc Exp $
+$NetBSD: patch-ad,v 1.3 2000/01/26 22:11:36 jlam Exp $
---- doc/RPLAY.texi.orig Sun Jan 18 20:59:52 1998
-+++ doc/RPLAY.texi Sun Jan 18 21:04:54 1998
+--- doc/RPLAY.texi.orig Tue Jul 14 18:35:23 1998
++++ doc/RPLAY.texi Tue Jan 18 16:15:32 2000
@@ -2,6 +2,10 @@
@c %**start of header
@setfilename RPLAY.info
@settitle The RPLAY Protocol
+@dircategory Network Audio Systems
+@direntry
-+* RPLAY-Protocol: (RPLAY). The RPLAY Protocol
++* RPLAY Protocol: (RPLAY) The RPLAY Protocol
+@end direntry
@iftex
@finalout
diff --git a/audio/rplay/patches/patch-ae b/audio/rplay/patches/patch-ae
new file mode 100644
index 00000000000..353499b8991
--- /dev/null
+++ b/audio/rplay/patches/patch-ae
@@ -0,0 +1,15 @@
+$NetBSD: patch-ae,v 1.1 2000/01/26 22:11:36 jlam Exp $
+
+--- doc/RPTP.texi.orig Tue Jul 14 18:35:23 1998
++++ doc/RPTP.texi Tue Jan 18 16:15:32 2000
+@@ -2,6 +2,10 @@
+ @c %**start of header
+ @setfilename RPTP.info
+ @settitle The RPTP Protocol
++@dircategory Network Audio Systems
++@direntry
++* RPTP: (RPTP) RPTP Protocol
++@end direntry
+ @defindex ev
+ @iftex
+ @finalout
diff --git a/audio/rplay/patches/patch-af b/audio/rplay/patches/patch-af
index 71d8326dc6d..119ac326eb3 100644
--- a/audio/rplay/patches/patch-af
+++ b/audio/rplay/patches/patch-af
@@ -1,14 +1,14 @@
-$NetBSD: patch-af,v 1.2 1998/08/07 10:36:07 agc Exp $
+$NetBSD: patch-af,v 1.3 2000/01/26 22:11:36 jlam Exp $
---- doc/RPTP.texi.orig Sun Jan 18 20:59:52 1998
-+++ doc/RPTP.texi Sun Jan 18 21:04:57 1998
-@@ -3,6 +3,10 @@
- @setfilename RPTP.info
- @settitle The RPTP Protocol
- @defindex ev
+--- doc/librplay.texi.orig Tue Jul 14 18:35:23 1998
++++ doc/librplay.texi Tue Jan 18 16:15:33 2000
+@@ -2,6 +2,10 @@
+ @c %**start of header
+ @setfilename librplay.info
+ @settitle The rplay Programmer's Manual
+@dircategory Network Audio Systems
+@direntry
-+* RPTP: (RPTP). The RPTP Protocol
++* librplay: (librplay) The rplay Programmer's Manual
+@end direntry
@iftex
@finalout
diff --git a/audio/rplay/patches/patch-ag b/audio/rplay/patches/patch-ag
index 28aa86017e3..44ca54c72f7 100644
--- a/audio/rplay/patches/patch-ag
+++ b/audio/rplay/patches/patch-ag
@@ -1,14 +1,14 @@
-$NetBSD: patch-ag,v 1.2 1998/08/07 10:36:08 agc Exp $
+$NetBSD: patch-ag,v 1.3 2000/01/26 22:11:36 jlam Exp $
---- doc/librplay.texi.orig Sun Jan 18 20:59:52 1998
-+++ doc/librplay.texi Sun Jan 18 21:04:59 1998
+--- doc/rplay.texi.orig Tue Jul 14 18:35:23 1998
++++ doc/rplay.texi Tue Jan 18 16:15:33 2000
@@ -2,6 +2,10 @@
@c %**start of header
- @setfilename librplay.info
- @settitle The RPlay Programmer's Manual
+ @setfilename rplay.info
+ @settitle rplay
+@dircategory Network Audio Systems
+@direntry
-+* librplay: (librplay). The RPlay Programmer's Manual
++* rplay: (rplay) RPlay
+@end direntry
@iftex
@finalout
diff --git a/audio/rplay/patches/patch-ah b/audio/rplay/patches/patch-ah
index 5f87d24262b..a4208e4b042 100644
--- a/audio/rplay/patches/patch-ah
+++ b/audio/rplay/patches/patch-ah
@@ -1,15 +1,50 @@
-$NetBSD: patch-ah,v 1.2 1998/08/07 10:36:08 agc Exp $
+$NetBSD: patch-ah,v 1.3 2000/01/26 22:11:36 jlam Exp $
---- doc/rplay.texi.orig Sun Jan 18 20:59:52 1998
-+++ doc/rplay.texi Sun Jan 18 21:05:01 1998
-@@ -2,6 +2,10 @@
- @c %**start of header
- @setfilename rplay.info
- @settitle RPlay
-+@dircategory Network Audio Systems
-+@direntry
-+* rplay: (rplay). RPlay
-+@end direntry
- @iftex
- @finalout
- @end iftex
+--- doc/rplayd.8.orig Tue Jul 14 18:35:23 1998
++++ doc/rplayd.8 Tue Jan 18 16:15:39 2000
+@@ -125,7 +125,7 @@
+ Linux uses cdrom[0-3] -> /dev/cdrom[0-3].
+ .TP
+ .I "\-C FILE, \-\-conf=FILE"
+-Use FILE for rplay.conf (/etc/rplay/rplay.conf).
++Use FILE for rplay.conf.
+ .TP
+ .I "\-T N, \-\-connection\-timeout=N"
+ Close idle RPTP connections after N seconds, disabled with 0 (300).
+@@ -146,10 +146,10 @@
+ Display helpful information.
+ .TP
+ .I "\-\-helpers=FILE"
+-Use FILE for rplay.helpers (/etc/rplay/rplay.helpers).
++Use FILE for rplay.helpers.
+ .TP
+ .I "\-H FILE, \-\-hosts=FILE"
+-Use FILE for rplay.hosts (/etc/rplay/rplay.hosts).
++Use FILE for rplay.hosts.
+ .TP
+ .I "\-\-inetd"
+ Enable inetd mode. (disabled)
+@@ -191,7 +191,7 @@
+ (--other-rptp-port may also be available)
+ .TP
+ .I "\-S FILE, \-\-servers=FILE"
+-Use FILE for rplay.servers (/etc/rplay/rplay.servers).
++Use FILE for rplay.servers.
+ .TP
+ .I "\-t N, \-\-timeout=N"
+ Exit after N idle seconds, disabled with 0 (0).
+@@ -205,10 +205,10 @@
+ .nf
+ ~/.rplaydrc
+ /tmp/.rplay-cache
+-/usr/local/etc/rplay.conf
+-/usr/local/etc/rplay.helpers
+-/usr/local/etc/rplay.hosts
+-/usr/local/etc/rplay.servers
++/usr/pkg/etc/rplay.conf
++/usr/pkg/etc/rplay.helpers
++/usr/pkg/etc/rplay.hosts
++/usr/pkg/etc/rplay.servers
+ .fi
+ .SH SEE ALSO
+ .IR rplay.conf (5),
diff --git a/audio/rplay/patches/patch-ai b/audio/rplay/patches/patch-ai
index b436ef08f17..77bca25f758 100644
--- a/audio/rplay/patches/patch-ai
+++ b/audio/rplay/patches/patch-ai
@@ -1,12 +1,13 @@
-$NetBSD: patch-ai,v 1.1 1999/07/19 23:46:20 hubertf Exp $
+$NetBSD: patch-ai,v 1.2 2000/01/26 22:11:36 jlam Exp $
---- rplayd/timer.h.orig Tue Jul 20 01:33:57 1999
-+++ rplayd/timer.h Tue Jul 20 01:34:12 1999
-@@ -27,6 +27,7 @@
- #include "config.h"
- #endif
-
-+#include <signal.h>
- #include <sys/types.h>
-
- extern double timer_rate;
+--- include/config.h.in.orig Wed Jun 9 02:25:20 1999
++++ include/config.h.in Tue Jan 18 16:15:33 2000
+@@ -189,6 +189,8 @@
+ #undef HAVE_WAITPID
+ #undef HAVE_SNPRINTF
+ #undef HAVE_VSNPRINTF
++#undef HAVE_READLINE
++#undef HAVE_LIBEDIT
+ #undef HAVE_LIBREADLINE
+ #undef HAVE_RANDOM
+ #undef HAVE_SRANDOM
diff --git a/audio/rplay/patches/patch-aj b/audio/rplay/patches/patch-aj
new file mode 100644
index 00000000000..1f46bde726e
--- /dev/null
+++ b/audio/rplay/patches/patch-aj
@@ -0,0 +1,58 @@
+$NetBSD: patch-aj,v 1.1 2000/01/26 22:11:37 jlam Exp $
+
+--- librplay/Makefile.in.orig Mon Mar 22 21:38:38 1999
++++ librplay/Makefile.in Tue Jan 18 16:15:33 2000
+@@ -9,28 +9,25 @@
+ MKINSTALLDIRS= @srcdir@/../mkinstalldirs
+
+ CPPFLAGS= $(CC_OPTIONS) -I. -I../include -I@srcdir@/../include @DEFS@
+-LDFLAGS= $(LD_OPTIONS) -shared @LDFLAGS@
+-
+-.c.o:
+- $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
++LDFLAGS= $(LD_OPTIONS) @LDFLAGS@
+
+ .SUFFIXES: .lo
+ .c.lo:
+- $(CC) -c -fPIC $(CPPFLAGS) $(CFLAGS) -o $@ $<
++ $(LIBTOOL) $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
+
+ TARGET= $(LIBRPLAY_NAME)
+ SRCS= rplay.c rptp.c async.c
+ OBJS= rplay.o rptp.o async.o
+ SHAREDOBJS= rplay.lo rptp.lo async.lo
+
+-all: $(TARGET) librplay.so
++all: $(TARGET)
+
+ #
+ # Use the following for SunOS 4.1.x, Solaris 2.x, Linux, NetBSD
+ #
+-$(TARGET): $(OBJS)
+- $(AR) rcv $@ $?
+- $(RANLIB) $@
++$(TARGET): $(SHAREDOBJS)
++ $(LIBTOOL) $(CC) $(LDFLAGS) -o $@ $? \
++ -rpath $(libdir) -version-info 0:0
+
+ librplay.so: $(SHAREDOBJS)
+ $(CC) -o $@ $(SHAREDOBJS) $(LDFLAGS)
+@@ -49,15 +46,13 @@
+
+ install: all
+ $(MKINSTALLDIRS) $(libdir)
+- $(INSTALL_DATA) $(TARGET) $(libdir)
+- $(INSTALL_DATA) librplay.so $(libdir)
++ $(LIBTOOL) $(INSTALL_DATA) $(TARGET) $(libdir)
+
+ uninstall:
+- $(RM) $(libdir)/$(TARGET)
+- $(RM) $(libdir)/librplay.so
++ $(LIBTOOL) $(RM) $(libdir)/$(TARGET)
+
+ clean:
+- $(RM) $(OBJS) $(SHAREDOBJS) $(TARGET) librplay.so a.out core *~ *.bak *.orig TAGS
++ $(LIBTOOL) $(RM) $(OBJS) $(SHAREDOBJS) $(TARGET) librplay.so a.out core *~ *.bak *.orig TAGS
+
+ distclean: clean
+ $(RM) Makefile
diff --git a/audio/rplay/patches/patch-ak b/audio/rplay/patches/patch-ak
new file mode 100644
index 00000000000..37de480e83f
--- /dev/null
+++ b/audio/rplay/patches/patch-ak
@@ -0,0 +1,39 @@
+$NetBSD: patch-ak,v 1.1 2000/01/26 22:11:37 jlam Exp $
+
+--- rplay/Makefile.in.orig Sat Mar 20 19:44:57 1999
++++ rplay/Makefile.in Tue Jan 18 16:15:33 2000
+@@ -13,7 +13,7 @@
+ .c.o:
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
+
+-LDFLAGS= $(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp @LDFLAGS@ @LIBS@
++LDFLAGS= $(LD_OPTIONS) ../librplay/$(LIBRPLAY_NAME) ../lib/librp.a @LDFLAGS@ @LIBS@
+
+ TARGET= rplay
+ SRCS= rplay.c
+@@ -22,7 +22,7 @@
+ all: $(TARGET)
+
+ $(TARGET): $(OBJS) ../librplay/$(LIBRPLAY_NAME) ../lib/librp.a
+- $(CC) -o $@ $(OBJS) $(LDFLAGS)
++ $(LIBTOOL) $(CC) -o $@ $(OBJS) $(LDFLAGS)
+
+ ../librplay/$(LIBRPLAY_NAME):
+ (cd ../librplay; $(MAKE) $(MFLAGS))
+@@ -32,13 +32,13 @@
+
+ install: all
+ $(MKINSTALLDIRS) $(bindir)
+- $(INSTALL_PROGRAM) $(TARGET) $(bindir)/$(TARGET)
++ $(LIBTOOL) $(INSTALL_PROGRAM) $(TARGET) $(bindir)/$(TARGET)
+
+ uninstall:
+- $(RM) $(bindir)/$(TARGET)
++ $(LIBTOOL) $(RM) $(bindir)/$(TARGET)
+
+ clean:
+- $(RM) $(OBJS) $(TARGET) a.out core *~ *.bak *.orig TAGS
++ $(LIBTOOL) $(RM) $(OBJS) $(TARGET) a.out core *~ *.bak *.orig TAGS
+
+ distclean: clean
+ $(RM) Makefile
diff --git a/audio/rplay/patches/patch-al b/audio/rplay/patches/patch-al
new file mode 100644
index 00000000000..eec81268add
--- /dev/null
+++ b/audio/rplay/patches/patch-al
@@ -0,0 +1,42 @@
+$NetBSD: patch-al,v 1.1 2000/01/26 22:11:37 jlam Exp $
+
+--- rplayd/Makefile.in.orig Wed Jun 9 02:27:43 1999
++++ rplayd/Makefile.in Wed Jan 26 17:03:44 2000
+@@ -24,8 +24,8 @@
+ .c.o:
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
+
+-LDFLAGS= $(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp \
+- -L../adpcm -ladpcm @GSM_LIBS@ -L../rx -lrx @LDFLAGS@ @LIBS@ -lm
++LDFLAGS= $(LD_OPTIONS) ../librplay/$(LIBRPLAY_NAME) ../lib/librp.a \
++ ../adpcm/libadpcm.a @GSM_LIBS@ @RX_LIBS@ @LDFLAGS@ @LIBS@ -lm
+
+ TARGET= rplayd
+
+@@ -40,7 +40,7 @@
+ all: $(TARGET)
+
+ $(TARGET): $(OBJS) ../librplay/$(LIBRPLAY_NAME) ../lib/librp.a ../adpcm/libadpcm.a
+- $(CC) -o $@ $(OBJS) $(LDFLAGS)
++ $(LIBTOOL) $(CC) -o $@ $(OBJS) $(LDFLAGS)
+
+ ../librplay/$(LIBRPLAY_NAME):
+ (cd ../librplay; $(MAKE) $(MFLAGS))
+@@ -53,14 +53,13 @@
+
+ install: all
+ $(MKINSTALLDIRS) $(sbindir)
+- $(INSTALL_PROGRAM) $(TARGET) $(sbindir)/$(TARGET)
+- @test -x $(bindir)/$(TARGET) && echo "" && echo " Note: Consider removing $(bindir)/$(TARGET)" && echo ""
++ $(LIBTOOL) $(INSTALL_PROGRAM) $(TARGET) $(sbindir)/$(TARGET)
+
+ uninstall:
+- $(RM) $(bindir)/$(TARGET)
++ $(LIBTOOL) $(RM) $(bindir)/$(TARGET)
+
+ clean:
+- $(RM) $(OBJS) $(TARGET) a.out core *~ *.bak *.orig TAGS
++ $(LIBTOOL) $(RM) $(OBJS) $(TARGET) a.out core *~ *.bak *.orig TAGS
+ cd audio; $(RM) *~ *.bak *.orig
+
+ distclean: clean
diff --git a/audio/rplay/patches/patch-am b/audio/rplay/patches/patch-am
new file mode 100644
index 00000000000..783d6531728
--- /dev/null
+++ b/audio/rplay/patches/patch-am
@@ -0,0 +1,16 @@
+$NetBSD: patch-am,v 1.1 2000/01/26 22:11:37 jlam Exp $
+
+--- rplayd/sound.h.orig Wed Jun 9 02:27:44 1999
++++ rplayd/sound.h Tue Jan 18 16:15:33 2000
+@@ -170,9 +170,9 @@
+ int gsm_bit_frame_bytes; /* Number of bytes in gsm_bit_frame */
+ int gsm_fixed_buffer_size;
+ #endif /* HAVE_GSM */
+-#ifdef HAVE_CDROM
++#if defined(HAVE_CDROM) || defined(HAVE_HELPERS)
+ int pid;
+-#endif /* HAVE_CDROM */
++#endif /* HAVE_CDROM || HAVE_HELPERS */
+ }
+ SINDEX;
+
diff --git a/audio/rplay/patches/patch-an b/audio/rplay/patches/patch-an
new file mode 100644
index 00000000000..6287617ebb5
--- /dev/null
+++ b/audio/rplay/patches/patch-an
@@ -0,0 +1,14 @@
+$NetBSD: patch-an,v 1.1 2000/01/26 22:11:37 jlam Exp $
+
+--- rplayd/spool.c.orig Wed Mar 10 16:14:38 1999
++++ rplayd/spool.c Tue Jan 18 16:15:33 2000
+@@ -1127,8 +1127,8 @@
+ spool_flow_pause(sp);
+ }
+ }
+-#endif /* HAVE_CDROM */
+ }
++#endif /* HAVE_CDROM */
+ }
+ else
+ {
diff --git a/audio/rplay/patches/patch-ao b/audio/rplay/patches/patch-ao
new file mode 100644
index 00000000000..ac3e00628e8
--- /dev/null
+++ b/audio/rplay/patches/patch-ao
@@ -0,0 +1,12 @@
+$NetBSD: patch-ao,v 1.1 2000/01/26 22:11:37 jlam Exp $
+
+--- rplayd/timer.h.orig Wed Mar 10 02:58:04 1999
++++ rplayd/timer.h Tue Jan 18 16:15:34 2000
+@@ -30,6 +30,7 @@
+ #include "config.h"
+ #endif
+
++#include <signal.h>
+ #include <sys/types.h>
+
+ extern double timer_rate;
diff --git a/audio/rplay/patches/patch-ap b/audio/rplay/patches/patch-ap
new file mode 100644
index 00000000000..860abc068b8
--- /dev/null
+++ b/audio/rplay/patches/patch-ap
@@ -0,0 +1,39 @@
+$NetBSD: patch-ap,v 1.1 2000/01/26 22:11:37 jlam Exp $
+
+--- rptp/Makefile.in.orig Wed Jun 9 02:27:48 1999
++++ rptp/Makefile.in Tue Jan 18 16:15:34 2000
+@@ -13,7 +13,7 @@
+ .c.o:
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
+
+-LDFLAGS= $(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp @LDFLAGS@ @RL_LIBS@ @LIBS@
++LDFLAGS= $(LD_OPTIONS) ../librplay/$(LIBRPLAY_NAME) ../lib/librp.a @LDFLAGS@ @RL_LIBS@ @LIBS@
+
+ TARGET= rptp
+
+@@ -24,7 +24,7 @@
+ all: $(TARGET)
+
+ $(TARGET): $(OBJS) ../librplay/$(LIBRPLAY_NAME) ../lib/librp.a
+- $(CC) -o $@ $(OBJS) $(LDFLAGS)
++ $(LIBTOOL) $(CC) -o $@ $(OBJS) $(LDFLAGS)
+
+ ../librplay/$(LIBRPLAY_NAME):
+ (cd ../librplay; $(MAKE) $(MFLAGS))
+@@ -34,13 +34,13 @@
+
+ install: all
+ $(MKINSTALLDIRS) $(bindir)
+- $(INSTALL_PROGRAM) $(TARGET) $(bindir)/$(TARGET)
++ $(LIBTOOL) $(INSTALL_PROGRAM) $(TARGET) $(bindir)/$(TARGET)
+
+ uninstall:
+- $(RM) $(bindir)/$(TARGET)
++ $(LIBTOOL) $(RM) $(bindir)/$(TARGET)
+
+ clean:
+- $(RM) $(OBJS) $(TARGET) a.out core *~ *.bak *.orig TAGS
++ $(LIBTOOL) $(RM) $(OBJS) $(TARGET) a.out core *~ *.bak *.orig TAGS
+
+ distclean: clean
+ $(RM) Makefile
diff --git a/audio/rplay/patches/patch-aq b/audio/rplay/patches/patch-aq
new file mode 100644
index 00000000000..3020511e2ac
--- /dev/null
+++ b/audio/rplay/patches/patch-aq
@@ -0,0 +1,50 @@
+$NetBSD: patch-aq,v 1.1 2000/01/26 22:11:37 jlam Exp $
+
+--- rptp/rptp.c.orig Sat Mar 20 19:45:08 1999
++++ rptp/rptp.c Tue Jan 18 16:15:34 2000
+@@ -31,10 +31,23 @@
+ #ifdef HAVE_STRING_H
+ #include <string.h>
+ #endif
+-#ifdef HAVE_LIBREADLINE
+-#include <readline/readline.h>
+-#include <readline/history.h>
+-#endif /* HAVE_LIBREADLINE */
++
++#ifdef HAVE_READLINE
++# ifdef HAVE_READLINE_H
++# include <readline.h>
++# ifdef HAVE_HISTORY_H
++# include <history.h>
++# endif
++# elif defined(HAVE_READLINE_READLINE_H)
++# include <readline/readline.h>
++# ifdef HAVE_READLINE_HISTORY_H
++# include <readline/history.h>
++# endif
++# else
++# undef HAVE_READLINE
++# endif
++#endif /* HAVE_READLINE */
++
+ #include "rplay.h"
+ #include "getopt.h"
+
+@@ -249,7 +262,7 @@
+ {
+ if (!raw)
+ {
+-#ifdef HAVE_LIBREADLINE
++#ifdef HAVE_READLINE
+ p = readline(prompt);
+ if (!p)
+ {
+@@ -263,7 +276,7 @@
+ #endif
+ }
+
+-#ifndef HAVE_LIBREADLINE
++#ifndef HAVE_READLINE
+ if (fgets(buf, sizeof(buf), stdin) == NULL)
+ {
+ done(0);