summaryrefslogtreecommitdiff
path: root/devel/llvm/Makefile
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2008-06-12 16:16:42 +0000
committerBrooks Davis <brooks@FreeBSD.org>2008-06-12 16:16:42 +0000
commit6cd633c412ec711729458b1c2a00ae50856943a0 (patch)
treeeafae6bcadb3a991c81514692d599028dec228cd /devel/llvm/Makefile
parentupdate to 3.43.1 (diff)
Upgrade LLVM to release 2.3.
In theory this should build on every architecture so remove the no-sparc64 bit. Add a MAINTAINER_MODE option to allow debug (very slow) versions to be built and a regression-test target. [1] Submitted by: Pedro Giffuni <pfgshield dash freebsd at yahoo dot com> [1] PR: ports/124068
Notes
Notes: svn path=/head/; revision=214717
Diffstat (limited to 'devel/llvm/Makefile')
-rw-r--r--devel/llvm/Makefile35
1 files changed, 18 insertions, 17 deletions
diff --git a/devel/llvm/Makefile b/devel/llvm/Makefile
index 9f6da8631064..99f01c34d966 100644
--- a/devel/llvm/Makefile
+++ b/devel/llvm/Makefile
@@ -6,37 +6,35 @@
#
PORTNAME= llvm
-PORTVERSION= 2.2
+PORTVERSION= 2.3
CATEGORIES= devel lang
MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
+DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= brooks@FreeBSD.org
COMMENT= Low Level Virtual Machine
+.if defined(MAINTAINER_MODE)
+BUILD_DEPENDS= f2c:${PORTSDIR}/lang/f2c \
+ runtest:${PORTSDIR}/misc/dejagnu
+.endif
+
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_PERL5_BUILD=yes
-USE_GCC= 3.3+
+.if defined(MAINTAINER_MODE)
+CONFIGURE_ARGS+= --with-f2c=${LOCALBASE}
+.else
CONFIGURE_FLAGS+= --enable-optimized
+.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 \
- llvm-prof.1 llvm-ranlib.1 llvm-upgrade.1 \
- llvm2cpp.1 llvmc.1 llvmgcc.1 \
+ llvm-prof.1 llvm-ranlib.1 llvmgcc.1 \
llvmgxx.1 opt.1 stkrc.1 tblgen.1
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64" && ${OSVERSION} >= 700042
-BROKEN= does not build on sparc64
-.endif
-
-.if ${PERL_LEVEL} < 500800
-BROKEN= does not compile with perl ${PERL_VERSION}
-.endif
-
post-patch:
${REINPLACE_CMD} -e 's,\(PROJ_docsdir.*:=\).*$$,\1${DOCSDIR},g' \
${WRKSRC}/Makefile.config.in
@@ -45,7 +43,10 @@ post-patch:
post-install:
@${RM} ${PREFIX}/bin/.dir \
- ${PREFIX}/etc/llvm/.dir \
- ${PREFIX}/lib/.dir
+ ${PREFIX}/lib/.dir
+
+regression-test:
+ (cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check)
+
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>