2005-12-24 17:19:24 +01:00
|
|
|
# New ports collection makefile for: llvm
|
|
|
|
# Date created: 20 Nov 2005
|
|
|
|
# Whom: Hye-Shik Chang
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= llvm
|
2008-06-12 18:16:42 +02:00
|
|
|
PORTVERSION= 2.3
|
2008-07-01 22:48:43 +02:00
|
|
|
PORTREVISION= 2
|
2005-12-24 17:19:24 +01:00
|
|
|
CATEGORIES= devel lang
|
2007-01-03 20:43:35 +01:00
|
|
|
MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
|
2008-06-12 18:16:42 +02:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
2005-12-24 17:19:24 +01:00
|
|
|
|
2007-07-18 07:58:55 +02:00
|
|
|
MAINTAINER= brooks@FreeBSD.org
|
2005-12-24 17:19:24 +01:00
|
|
|
COMMENT= Low Level Virtual Machine
|
|
|
|
|
2008-06-20 05:50:58 +02:00
|
|
|
.if defined(PACKAGE_BUILDING) || defined(MAINTAINER_MODE)
|
|
|
|
BUILD_DEPENDS= runtest:${PORTSDIR}/misc/dejagnu
|
|
|
|
.endif
|
2008-06-12 18:16:42 +02:00
|
|
|
.if defined(MAINTAINER_MODE)
|
2008-06-20 05:50:58 +02:00
|
|
|
BUILD_DEPENDS+= f2c:${PORTSDIR}/lang/f2c
|
2008-06-12 18:16:42 +02:00
|
|
|
.endif
|
|
|
|
|
2005-12-24 17:19:24 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2006-05-18 16:05:38 +02:00
|
|
|
USE_PERL5_BUILD=yes
|
2005-12-24 17:19:24 +01:00
|
|
|
|
2008-06-12 18:16:42 +02:00
|
|
|
.if defined(MAINTAINER_MODE)
|
|
|
|
CONFIGURE_ARGS+= --with-f2c=${LOCALBASE}
|
|
|
|
.else
|
2008-06-13 21:29:45 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-optimized
|
2008-06-12 18:16:42 +02:00
|
|
|
.endif
|
2005-12-24 17:19:24 +01:00
|
|
|
|
2008-07-01 22:48:43 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
DOCSRCDIR=
|
|
|
|
.else
|
|
|
|
DOCSRCDIR= docs
|
|
|
|
.endif
|
|
|
|
|
2007-07-18 16:53:39 +02:00
|
|
|
MAN1= bugpoint.1 llc.1 lli.1 llvm-ar.1 \
|
2006-05-16 07:33:50 +02:00
|
|
|
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 \
|
2008-06-12 18:16:42 +02:00
|
|
|
llvm-prof.1 llvm-ranlib.1 llvmgcc.1 \
|
2006-08-10 05:07:26 +02:00
|
|
|
llvmgxx.1 opt.1 stkrc.1 tblgen.1
|
2005-12-24 17:19:24 +01:00
|
|
|
|
|
|
|
post-patch:
|
2008-07-01 22:48:43 +02:00
|
|
|
${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
|
2005-12-24 17:19:24 +01:00
|
|
|
|
2006-05-23 12:50:37 +02:00
|
|
|
post-install:
|
2008-07-01 22:48:43 +02:00
|
|
|
cd ${WRKSRC}/docs/CommandGuide && \
|
|
|
|
${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1/
|
2007-09-28 17:24:14 +02:00
|
|
|
@${RM} ${PREFIX}/bin/.dir \
|
2008-06-12 18:16:42 +02:00
|
|
|
${PREFIX}/lib/.dir
|
|
|
|
|
2008-06-20 05:50:58 +02:00
|
|
|
regression-test: build
|
2008-06-12 18:16:42 +02:00
|
|
|
(cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check)
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|