mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Install manpages in the NOPORTDOCS case.
Don't depend on PYTHON since it's only needed by clang which is a seperate port. Minor cleanup and diff reduction relative to devel/llvm
This commit is contained in:
parent
9b749c9023
commit
82ac728938
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266005
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= llvm
|
||||
DISTVERSION= 2.9.r${SVN_REV}
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= devel lang
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= brooks
|
||||
@ -31,7 +31,6 @@ USE_GMAKE= yes
|
||||
USE_BZIP2= yes
|
||||
USE_LDCONFIG= yes
|
||||
USE_PERL5= yes
|
||||
USE_PYTHON_RUN= yes
|
||||
MAKE_JOBS_SAFE= yes
|
||||
|
||||
# Suggested tweaks from http://llvm.org/docs/Packaging.html
|
||||
@ -47,19 +46,17 @@ CONFIGURE_ARGS+= --enable-optimized
|
||||
|
||||
CONFIGURE_ARGS+= --enable-bindings=none
|
||||
|
||||
OPTIONS= ASSERTS "Enable assertions (thread unsafe)" off
|
||||
OPTIONS= ASSERTS "Enable assertions (thread unsafe)" off
|
||||
|
||||
.if defined(NOPORTDOCS)
|
||||
CONFIGURE_ARGS+= --disable-docs
|
||||
.endif
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
MAN1= bugpoint.1 lit.1 llc.1 lli.1 llvm-ar.1 \
|
||||
llvm-as.1 llvm-bcanalyzer.1 llvm-config.1 llvm-diff.1 \
|
||||
llvm-dis.1 llvm-extract.1 llvm-ld.1 llvm-link.1 llvm-nm.1 \
|
||||
llvm-prof.1 llvm-ranlib.1 llvmc.1 llvmgcc.1 \
|
||||
llvmgxx.1 opt.1 tblgen.1
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
@ -109,6 +106,17 @@ post-patch:
|
||||
${REINPLACE_CMD} -e 's|\(PROJ_mandir.*:=\).*$$|\1${MANPREFIX}/man|g' \
|
||||
${WRKSRC}/Makefile.config.in
|
||||
|
||||
.if defined(NOPORTDOCS)
|
||||
post-build:
|
||||
@cd ${WRKSRC}/docs/CommandGuide && ${GMAKE} ${MAN1}
|
||||
|
||||
post-install:
|
||||
.for man in ${MAN1}
|
||||
@${INSTALL_MAN} ${WRKSRC}/docs/CommandGuide/${man} \
|
||||
${MANPREFIX}/man/man1/
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
TEST_CMD= '(cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check-local-lit)'
|
||||
regression-test: ${BUILD_COOKIE}
|
||||
if [ `${ID} -u` = 0 ]; then \
|
||||
@ -147,8 +155,7 @@ build-plist:
|
||||
${FIND} ${PLIST_DIR_LIST} -type d | \
|
||||
${SORT} -r | ${SED} -e 's|^|@dirrm |' >> ${PLIST}
|
||||
${FIND} ${DOCSDIR} -type d | ${SORT} -r | \
|
||||
${SED} -e 's|${DATADIR}|%%DATADIR%%|' \
|
||||
-e 's|${DOCSDIR}|%%DOCSDIR%%|' \
|
||||
${SED} -e 's|${DOCSDIR}|%%DOCSDIR%%|' \
|
||||
-e 's|^|%%PORTDOCS%%@dirrm |' >> ${PLIST}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user