Add rplay port.

This commit is contained in:
angelos 1997-12-05 02:18:05 +00:00
parent e3594ec8d1
commit 187f2796be
9 changed files with 173 additions and 0 deletions

33
audio/rplay/Makefile Normal file
View File

@ -0,0 +1,33 @@
# OpenBSD makefile for: rplay - Network audio player
# Version required: 3.2.0b6
# Date created: December 4, 1997
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.1.1.1 1997/12/05 02:18:05 angelos Exp $
#
DISTNAME= rplay-3.2.0b6
CATEGORIES= audio
MASTER_SITES= ftp://ftp.sdsu.edu/pub/rplay/
MAINTAINER= angelos@openbsd.org
LIB_DEPENDS= gsm\\.1\\.0:${PORTSDIR}/audio/gsm
HAS_CONFIGURE= yes
USE_GMAKE= yes
MAN1= rplay.1 xrplay.1 rplayd.1 rptp.1
MAN5= rplay.conf.5 rplay.hosts.5 rplay.servers.5
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 /usr/local/sbin/rplayd ] && ( /usr/local/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
.include <bsd.port.mk>

1
audio/rplay/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (rplay-3.2.0b6.tar.gz) = d8346e6f132193d076341de0d9fa35ca

View File

@ -0,0 +1,23 @@
*** 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

View File

@ -0,0 +1,39 @@
*** 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

View File

@ -0,0 +1,15 @@
*** lib/regex.h.orig Thu Dec 4 21:11:50 1997
--- lib/regex.h Thu Dec 4 21:12:03 1997
***************
*** 474,481 ****
--- 474,483 ----
/* 4.2 bsd compatibility. */
#ifndef __FreeBSD__
+ #ifndef __OpenBSD__
extern char *re_comp _RE_ARGS ((_CONST_ char *));
extern int re_exec _RE_ARGS ((_CONST_ char *));
+ #endif
#endif
/* POSIX compatibility. */

1
audio/rplay/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
Network audio player.

33
audio/rplay/pkg/DESCR Normal file
View File

@ -0,0 +1,33 @@
rplay is a flexible network audio system that allows sounds to be played to
and from local and remote systems. The rplay audio server currently
supports SunOS 4.1.X, Solaris 2.X, Linux, SGI IRIX 4 & 5, HP9000/705,
HP9000/710 and now FreeBSD. The rplay clients and client library should
work on any system that supports Berkeley sockets. X Windows is not required.
Version 3.2.0beta
-------------------
* Supported systems include SunOS 4.1.X, Solaris 2.x, FreeBSD, Linux,
SGI IRIX 4 and IRIX 5, and HP9000/710.
* 8-bit & 16-bit audio input and output.
* All audio sample rates.
* .au, .snd, .aiff, .wav, .voc, .ub, .ul, G.721 4-bit, G.723 3-bit, and
G.723 5-bit audio files.
* Stereo input and output. (2 channels)
* Sounds can be played at any sample rate.
* Compile rplayd with -DTEST_FLANGE for some fun.
* Flexible audio configuration using the following long-named options:
--audio-device, --audio-bufsize, --audio-bits, --audio-channels,
--audio-close, --audio-flush, --audio-format, --audio-match, --audio-port,
--audio-rate, --audio-sample-rate, and no-audio.
(See `rplayd --help' for more details)
* HTML documentation.

20
audio/rplay/pkg/PLIST Normal file
View File

@ -0,0 +1,20 @@
etc/rc.d/rplayd.sh
etc/rplay.hosts
bin/rplay
bin/rptp
@comment requires XForms
@comment bin/xrplay
sbin/rplayd
include/rplay.h
lib/librplay.a
info/librplay.info
info/rplay.info
info/RPLAY.info
info/RPTP.info
man/man1/rplay.1.gz
man/man1/rplayd.1.gz
man/man1/xrplay.1.gz
man/man1/rptp.1.gz
man/man5/rplay.conf.5.gz
man/man5/rplay.hosts.5.gz
man/man5/rplay.servers.5.gz

8
audio/rplay/scripts/configure vendored Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
chmod -R +w ${WRKSRC}
echo -n "Removing disgusting malloc.h includes. Please wait.."
for i in `find ${WRKSRC} -name '*.[ch]' | xargs fgrep -l malloc.h`; do
sed -e 's/malloc.h/stdlib.h/' < $i > $i.bak && mv $i.bak $i
done
echo " Done."