openbsd-ports/audio/rplay/Makefile

32 lines
763 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.9 2000/02/11 01:09:59 espie Exp $
1997-12-04 21:18:05 -05:00
1998-06-25 23:55:51 -04:00
DISTNAME= rplay-3.3.0
1997-12-04 21:18:05 -05:00
CATEGORIES= audio
1999-09-06 14:23:45 -04:00
MASTER_SITES= http://rplay.doit.org/dist/
1997-12-04 21:18:05 -05:00
MAINTAINER= angelos@openbsd.org
LIB_DEPENDS= gsm.1.0:${PORTSDIR}/audio/gsm
1997-12-04 21:18:05 -05:00
USE_GMAKE= yes
SYSCONFDIR= /etc/rplay
1999-09-06 14:23:45 -04:00
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${SYSCONFDIR}
post-configure:
.for ff in rplay.conf.5 rplay.helpers.5 rplay.hosts.5 rplayd.8
@cd ${WRKSRC}/doc; \
sed -e "s,/usr/local/etc,${SYSCONFDIR},g" ${ff} >${ff}.tmp; \
mv ${ff}.tmp ${ff}
.endfor
1997-12-04 21:18:05 -05:00
post-install:
@if [ ! -d /etc/rplay ]; then \
echo "Installing default configs..."; \
mkdir -p /etc/rplay; \
echo localhost >/etc/rplay/rplay.hosts; \
touch /etc/rplay/rplay.{conf,helpers,servers}; \
1997-12-04 21:18:05 -05:00
fi
.include <bsd.port.mk>