aboutsummaryrefslogtreecommitdiffstats
path: root/devel/llvm/Makefile
blob: d647de008cb398cd17fcb2c8e59e208015aa2b51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# New ports collection makefile for:    llvm
# Date created:     20 Nov 2005
# Whom:         Hye-Shik Chang
#
# $FreeBSD$
#

PORTNAME=   llvm
PORTVERSION=    1.9
CATEGORIES= devel lang
MASTER_SITES=   http://llvm.org/releases/${PORTVERSION}/

MAINTAINER= perky@FreeBSD.org
COMMENT=    Low Level Virtual Machine

GNU_CONFIGURE=  yes
USE_BISON=  yes
USE_GMAKE=  yes
USE_PERL5_BUILD=yes
USE_GCC=    3.3+

CONFIGURE_FLAGS+=   --enable-optimized

MAN1=       bugpoint.1 gccas.1 gccld.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 llvm2cpp.1 llvmc.1 llvmgcc.1 \
        llvmgxx.1 opt.1 stkrc.1 tblgen.1

.include <bsd.port.pre.mk>

.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

post-install:
    ${RM} -f ${PREFIX}/bin/.dir ${PREFIX}/lib/.dir

.include <bsd.port.post.mk>