git: c7ee43c1c77c - main - audio/musicpd: convert MANPAGES to target helpers
Jan Beich
jbeich at FreeBSD.org
Sat Oct 2 04:21:33 UTC 2021
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c7ee43c1c77cd0a7df51f50849dc4dc09b3f431a
commit c7ee43c1c77cd0a7df51f50849dc4dc09b3f431a
Author: Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-10-02 04:19:41 +0000
Commit: Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-10-02 04:19:41 +0000
audio/musicpd: convert MANPAGES to target helpers
---
audio/musicpd/Makefile | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile
index 0f7d39a915a3..9cadbb10f445 100644
--- a/audio/musicpd/Makefile
+++ b/audio/musicpd/Makefile
@@ -206,8 +206,6 @@ MPDGROUP?= mpd
USERS= ${MPDUSER}
GROUPS= ${MPDGROUP}
-.include <bsd.port.pre.mk>
-
post-patch:
# Make musicpd run as ${MPDUSER} by default
@${REINPLACE_CMD} -e 's|%%MPDUSER%%|${MPDUSER}|' \
@@ -230,15 +228,15 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/_build/mpd \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-.if ${PORT_OPTIONS:MMANPAGES}
- ${INSTALL_MAN} ${WRKSRC}/_build/doc/${PORTNAME}.1 \
- ${STAGEDIR}${PREFIX}/man/man1
- ${INSTALL_MAN} ${WRKSRC}/_build/doc/${PORTNAME}.conf.5 \
- ${STAGEDIR}${PREFIX}/man/man5
-.endif
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/doc/mpdconf.example \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
-.include <bsd.port.post.mk>
+do-install-MANPAGES-on:
+ ${INSTALL_MAN} ${WRKSRC}/_build/doc/${PORTNAME}.1 \
+ ${STAGEDIR}${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/_build/doc/${PORTNAME}.conf.5 \
+ ${STAGEDIR}${PREFIX}/man/man5
+
+.include <bsd.port.mk>
More information about the dev-commits-ports-all
mailing list