1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/audio/rplay/Makefile
Baptiste Daroussin 7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00

58 lines
1.4 KiB
Makefile

# 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
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgsm.so:audio/gsm
USES= makeinfo
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
INFO= RPLAY RPTP librplay rplayd
MAKE_ARGS= infodir=${PREFIX}/${INFO_PATH}
.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)$$(&,g' \
${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:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librplay.so
.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>