From 0c171b34857691d79d31092d2566bde2807b1228 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 26 Jan 2000 22:11:28 +0000 Subject: * 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. --- audio/rplay/Makefile | 53 +++++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 25 deletions(-) (limited to 'audio/rplay/Makefile') diff --git a/audio/rplay/Makefile b/audio/rplay/Makefile index 66f29708cc5..80973c4a97f 100644 --- a/audio/rplay/Makefile +++ b/audio/rplay/Makefile @@ -1,40 +1,43 @@ -# $NetBSD: Makefile,v 1.15 2000/01/02 03:07:31 wiz Exp $ +# $NetBSD: Makefile,v 1.16 2000/01/26 22:11:28 jlam Exp $ # FreeBSD Id: Makefile,v 1.8 1997/06/13 16:17:01 ache Exp # -DISTNAME= rplay-3.2.0b6 +DISTNAME= rplay-3.3.2 CATEGORIES= audio -MASTER_SITES= ftp://ftp.sdsu.edu/pub/rplay/ +MASTER_SITES= ftp://rplay.doit.org/pub/rplay/ \ + http://rplay.doit.org/dist/ -MAINTAINER= rmallory@csusb.edu +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://rplay.doit.org/ +BUILD_DEPENDS+= ${LOCALBASE}/bin/autoreconf:../../devel/autoconf DEPENDS+= gsm-1.0.10:../../audio/gsm +DEPENDS+= rx-1.5:../../devel/rx -HAS_CONFIGURE= yes -CONFIGURE_ARGS= "--prefix=${PREFIX}" -CONFIGURE_ENV+= RPLAY_TARGET=generic # XXX -CONFIGURE_ENV+= CFLAGS=-I${PREFIX}/include # XXX -CONFIGURE_ENV+= LDFLAGS=-L${PREFIX}/lib # XXX -INFO_FILES= RPTP.info RPLAY.info rplay.info librplay.info +USE_LIBTOOL= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV+= RPLAY_TARGET=generic # XXX generic, or oss, or sun? +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" + +CPPFLAGS+= -I${LOCALBASE}/include # for gsm.h and rxposix.h + +.if !exists(/usr/include/readline.h) +DEPENDS+= readline-4.0:../../devel/readline +.endif + +INFO_FILES= RPLAY.info RPLAY.info librplay.info rplay.info pre-configure: - for f in `${FIND} ${WRKDIR}/. -type f -print|xargs ${GREP} -l '/usr/local'`; do \ - ${SED} -e 's:/usr/local:'${PREFIX}':g' < $$f > $$f.pdone && ${MV} $$f.pdone $$f; \ + cd ${WRKSRC}; ${LOCALBASE}/bin/autoreconf + cd ${WRKSRC}/doc; for f in *.[0-9]; do \ + ${SED} -e "s,/usr/local,${PREFIX},g" < $$f > $$f.pdone; \ + ${MV} -f $$f.pdone $$f; \ done - ${CHMOD} +x ${WRKSRC}/configure - -post-build: - cd ${WRKSRC}/doc ; ${MAKE} info post-install: - @if [ ! -f ${PREFIX}/etc/rc.d/rplayd.sh ]; then \ - ${ECHO} "Installing ${PREFIX}/etc/rc.d/rplayd.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/rplayd.sh; \ - ${ECHO} "[ -x ${PREFIX}/sbin/rplayd ] && ( ${PREFIX}/sbin/rplayd & ) && ${ECHO} -n ' rplayd'" >> ${PREFIX}/etc/rc.d/rplayd.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/rplayd.sh; \ - fi - @if [ ! -f ${PREFIX}/etc/rplay.hosts ]; then \ - ${ECHO} localhost > ${PREFIX}/etc/rplay.hosts; \ - fi + ${SED} -e "s,@PREFIX@,${PREFIX},g" \ + < ${FILESDIR}/rplayd.sh > ${WRKDIR}/rplayd.sh + ${INSTALL_SCRIPT} ${WRKDIR}/rplayd.sh ${PREFIX}/etc/rc.d/rplayd.sh + PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3