aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2010-12-11 05:43:19 +0800
committerbrooks <brooks@FreeBSD.org>2010-12-11 05:43:19 +0800
commit7ec4d47f633794159ddc9c13674db4c7f7b42af2 (patch)
tree5ff57c0c84af7fc79b226311f30c9d4fc3aaa567 /devel
parente54dff9ceee285078180ca4b808925d1abaeed5e (diff)
downloadfreebsd-ports-gnome-7ec4d47f633794159ddc9c13674db4c7f7b42af2.tar.gz
freebsd-ports-gnome-7ec4d47f633794159ddc9c13674db4c7f7b42af2.tar.zst
freebsd-ports-gnome-7ec4d47f633794159ddc9c13674db4c7f7b42af2.zip
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
Diffstat (limited to 'devel')
-rw-r--r--devel/llvm-devel/Makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/devel/llvm-devel/Makefile b/devel/llvm-devel/Makefile
index 34ba0f131e99..56ac12900efa 100644
--- a/devel/llvm-devel/Makefile
+++ b/devel/llvm-devel/Makefile
@@ -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>