aboutsummaryrefslogtreecommitdiffstats
path: root/audio/rplay/Makefile
blob: 5a7ea8355d809bb2d0f7d8fc675e499e72356fa2 (plain) (blame)
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
47
48
49
50
51
# Created by: rmallory@csusb.edu
# $FreeBSD$

PORTNAME=   rplay
PORTVERSION=    3.3.2
PORTREVISION=   3
CATEGORIES= audio
MASTER_SITES=   http://rplay.doit.org/dist/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Network audio player

LIB_DEPENDS=    libgsm.so:${PORTSDIR}/audio/gsm

USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+=  -I${LOCALBASE}/include

INFO=       RPLAY RPTP librplay rplayd

.include <bsd.port.pre.mk>

USE_RC_SUBR=    rplayd

.if ${ARCH} == "amd64"
# pr ports/166658 mentions a problem with amd64. if it happens on i386, you can delete this conditional
# and rename to patch-ao
EXTRA_PATCHES=  ${FILESDIR}/extra-patch-ao
.endif

post-extract:
    @${CP} ${WRKSRC}/doc/rplay.texi ${WRKSRC}/doc/rplayd.texi

post-patch:
    @${REINPLACE_CMD} -E \
        's,(bin|include|info|lib|man|sbin)dir),DESTDIR)$$(&,' \
        ${WRKSRC}/include/Makefile.in \
        ${WRKSRC}/librplay/Makefile.in \
        ${WRKSRC}/rplayd/Makefile.in \
        ${WRKSRC}/rplay/Makefile.in \
        ${WRKSRC}/rptp/Makefile.in \
        ${WRKSRC}/doc/Makefile.in

post-install:
.for file in rplay.conf rplay.helpers rplay.servers rplay.hosts
    ${CP} ${WRKSRC}/etc/${file} ${STAGEDIR}${PREFIX}/etc/${file}.sample
.endfor
    @${ECHO_CMD} localhost > ${STAGEDIR}${PREFIX}/etc/rplay.hosts.sample

.include <bsd.port.post.mk>