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-03-24 23:48:35 +01:00
|
|
|
PORTVERSION= 2.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}/
|
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
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2006-05-18 16:05:38 +02:00
|
|
|
USE_PERL5_BUILD=yes
|
2006-05-20 08:59:16 +02:00
|
|
|
USE_GCC= 3.3+
|
2005-12-24 17:19:24 +01:00
|
|
|
|
2007-01-03 20:43:35 +01:00
|
|
|
CONFIGURE_FLAGS+= --enable-optimized
|
2005-12-24 17:19:24 +01:00
|
|
|
|
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 \
|
2007-07-18 16:53:39 +02:00
|
|
|
llvm-prof.1 llvm-ranlib.1 llvm-upgrade.1 \
|
|
|
|
llvm2cpp.1 llvmc.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
|
|
|
|
2006-08-08 15:21:16 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-09-28 22:37:11 +02:00
|
|
|
.if ${ARCH} == "sparc64" && ${OSVERSION} >= 700042
|
2007-09-28 22:10:29 +02:00
|
|
|
BROKEN= does not build on sparc64
|
|
|
|
.endif
|
|
|
|
|
2006-08-08 15:21:16 +02:00
|
|
|
.if ${PERL_LEVEL} < 500800
|
|
|
|
BROKEN= does not compile with perl ${PERL_VERSION}
|
|
|
|
.endif
|
|
|
|
|
2005-12-24 17:19:24 +01:00
|
|
|
post-patch:
|
2005-12-24 17:45:20 +01:00
|
|
|
${REINPLACE_CMD} -e 's,\(PROJ_docsdir.*:=\).*$$,\1${DOCSDIR},g' \
|
|
|
|
${WRKSRC}/Makefile.config.in
|
2007-09-28 17:24:14 +02:00
|
|
|
${REINPLACE_CMD} -e 's,\(PROJ_mandir.*:=\).*$$,\1${MANPREFIX}/man,g' \
|
|
|
|
${WRKSRC}/Makefile.config.in
|
2005-12-24 17:19:24 +01:00
|
|
|
|
2006-05-23 12:50:37 +02:00
|
|
|
post-install:
|
2007-09-28 17:24:14 +02:00
|
|
|
@${RM} ${PREFIX}/bin/.dir \
|
2007-07-18 16:53:39 +02:00
|
|
|
${PREFIX}/etc/llvm/.dir \
|
|
|
|
${PREFIX}/lib/.dir
|
2006-05-23 12:50:37 +02:00
|
|
|
|
2006-08-08 15:21:16 +02:00
|
|
|
.include <bsd.port.post.mk>
|