diff options
author | brooks <brooks@FreeBSD.org> | 2008-07-02 04:48:43 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2008-07-02 04:48:43 +0800 |
commit | 35363f10edc4cacd41abd97cc9055f4710cf3ac0 (patch) | |
tree | 7ba0edf36e69a06569c255c947ea30c95fb750e6 /devel/llvm/Makefile | |
parent | 828ed9d036be80b4dd707f1b2be6fea1b66ee9c6 (diff) | |
download | freebsd-ports-gnome-35363f10edc4cacd41abd97cc9055f4710cf3ac0.tar.gz freebsd-ports-gnome-35363f10edc4cacd41abd97cc9055f4710cf3ac0.tar.zst freebsd-ports-gnome-35363f10edc4cacd41abd97cc9055f4710cf3ac0.zip |
Don't install docs other than manpages in the NOPORTDOCS case.
Requested by: obrien
Diffstat (limited to 'devel/llvm/Makefile')
-rw-r--r-- | devel/llvm/Makefile | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/devel/llvm/Makefile b/devel/llvm/Makefile index 605060566c0b..39be08e60eae 100644 --- a/devel/llvm/Makefile +++ b/devel/llvm/Makefile @@ -7,7 +7,7 @@ PORTNAME= llvm PORTVERSION= 2.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel lang MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/ DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} @@ -32,6 +32,12 @@ CONFIGURE_ARGS+= --with-f2c=${LOCALBASE} CONFIGURE_ARGS+= --enable-optimized .endif +.if defined(NOPORTDOCS) +DOCSRCDIR= +.else +DOCSRCDIR= docs +.endif + MAN1= bugpoint.1 llc.1 lli.1 llvm-ar.1 \ llvm-as.1 llvm-bcanalyzer.1 llvm-config.1 llvm-db.1 \ llvm-dis.1 llvm-extract.1 llvm-ld.1 llvm-link.1 llvm-nm.1 \ @@ -39,12 +45,20 @@ MAN1= bugpoint.1 llc.1 lli.1 llvm-ar.1 \ llvmgxx.1 opt.1 stkrc.1 tblgen.1 post-patch: - ${REINPLACE_CMD} -e 's,\(PROJ_docsdir.*:=\).*$$,\1${DOCSDIR},g' \ - ${WRKSRC}/Makefile.config.in - ${REINPLACE_CMD} -e 's,\(PROJ_mandir.*:=\).*$$,\1${MANPREFIX}/man,g' \ - ${WRKSRC}/Makefile.config.in + ${REINPLACE_CMD} -e 's|\(PROJ_docsdir.*:=\).*$$|\1${DOCSDIR}|g' \ + ${WRKSRC}/Makefile.config.in + ${REINPLACE_CMD} -e 's|\(PROJ_mandir.*:=\).*$$|\1${MANPREFIX}/man|g' \ + ${WRKSRC}/Makefile.config.in + ${REINPLACE_CMD} -e 's|%%DOCSRCDIR%%|${DOCSRCDIR}|' \ + ${WRKSRC}/Makefile + +post-build: + cd ${WRKSRC}/docs/CommandGuide && \ + ${GMAKE} man post-install: + cd ${WRKSRC}/docs/CommandGuide && \ + ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1/ @${RM} ${PREFIX}/bin/.dir \ ${PREFIX}/lib/.dir |