git: 03e4309f9f73 - main - devel/llvm: Add manpage symlinks
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 May 2022 18:58:44 UTC
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=03e4309f9f739856dbf9036e3e9752062dc1a511 commit 03e4309f9f739856dbf9036e3e9752062dc1a511 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2022-05-03 18:58:34 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2022-05-03 18:58:34 +0000 devel/llvm: Add manpage symlinks Include the target LLVM's Makefile.MAN1SRCS and use it to create symlinks corresponding to the command symlinks. Sponsored by: DARPA, AFRL --- devel/llvm/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/devel/llvm/Makefile b/devel/llvm/Makefile index 1cf704252f68..4b0d95d22041 100644 --- a/devel/llvm/Makefile +++ b/devel/llvm/Makefile @@ -31,7 +31,8 @@ CONFLICTS_INSTALL= cling zapcc NO_ARCH= yes NO_BUILD= yes -PLIST_FILES= ${COMMANDS:S|^|bin/|} +PLIST_FILES= ${COMMANDS:S|^|bin/|} \ + ${MAN1SRCS:S|^|man/man1/|:S|$|.gz|} .include <bsd.port.options.mk> @@ -56,27 +57,38 @@ OPTIONS_EXCLUDE= LLDB .endif .include "${.CURDIR}/../llvm${LLVM_SUFFIX}/Makefile.COMMANDS" +.include "${.CURDIR}/../llvm${LLVM_SUFFIX}/Makefile.MAN1SRCS" COMMANDS= ${LLVM_COMMANDS} +MAN1SRCS= ${LLVM_MAN1SRCS} .if ${PORT_OPTIONS:MCLANG} COMMANDS+= ${CLANG_COMMANDS} +MAN1SRCS+= ${CLANG_MAN1SRCS} .endif .if ${PORT_OPTIONS:MEXTRAS} COMMANDS+= ${EXTRAS_COMMANDS} +MAN1SRCS+= ${EXTRAS_MAN1SRCS} .endif .if ${PORT_OPTIONS:MLIT} COMMANDS+= ${LIT_COMMANDS} +MAN1SRCS+= ${LIT_MAN1SRCS} .endif .if ${PORT_OPTIONS:MLLD} COMMANDS+= ${LLD_COMMANDS} +MAN1SRCS+= ${LLD_MAN1SRCS} .endif .if ${PORT_OPTIONS:MLLDB} COMMANDS+= ${LLDB_COMMANDS} +MAN1SRCS+= ${LLDB_MAN1SRCS} .endif do-install: .for c in ${COMMANDS} - ${LN} -s ${c}${LLVM_SUFFIX} ${STAGEDIR}${PREFIX}/bin/${c} + ${LN} -s ${c}${LLVM_SUFFIX} ${STAGEDIR}${PREFIX}/bin/${c} +.endfor +.for _man in ${MAN1SRCS} + ${LN} -s ${_man:R}${LLVM_SUFFIX}.1 \ + ${STAGEDIR}${MANPREFIX}/man/man1/${_man} .endfor .include <bsd.port.mk>