blob: d24a31f46ab3fb1dfd62d940e54fb8d926776a7b (
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
44
45
46
|
# $NetBSD: Makefile,v 1.26 2001/05/22 04:33:12 jlam 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/
COMMENT= Network audio player
BUILD_DEPENDS+= autoconf-2.13:../../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) && \
!exists(/usr/include/readline/readline.h)
DEPENDS+= readline>=4.0:../../devel/readline
.endif
INFO_FILES= RPLAY.info RPTP.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"
|