summaryrefslogtreecommitdiff
path: root/audio/rplay/Makefile
blob: f4bd8f598f581111039ac0df25dbdfbdd40babaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $NetBSD: Makefile,v 1.20 2001/01/26 04:58:57 hubertf Exp $
# FreeBSD Id: Makefile,v 1.8 1997/06/13 16:17:01 ache Exp
#

DISTNAME=	rplay-3.3.2
CATEGORIES=	audio
MASTER_SITES=	ftp://rplay.doit.org/pub/rplay/ \
		http://rplay.doit.org/dist/

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

USE_LIBTOOL=	# defined
GNU_CONFIGURE=	# defined
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:
	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

post-install:
	${SED} -e "s,@PREFIX@,${PREFIX},g" \
		< ${FILESDIR}/rplayd.sh > ${WRKDIR}/rplayd.sh
	${INSTALL_SCRIPT} ${WRKDIR}/rplayd.sh ${PREFIX}/etc/rc.d/rplayd
	PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL

.include "../../mk/bsd.pkg.mk"