head	1.29;
access;
symbols
	RELEASE_8_3_0:1.19
	RELEASE_9_0_0:1.18
	RELEASE_7_4_0:1.15
	RELEASE_8_2_0:1.15
	RELEASE_6_EOL:1.14
	old_RELEASE_8_1_0:1.7
	old_RELEASE_7_3_0:1.4;
locks; strict;
comment	@# @;


1.29
date	2013.03.11.22.48.40;	author svnexp;	state Exp;
branches;
next	1.28;

1.28
date	2013.01.10.18.52.06;	author svnexp;	state Exp;
branches;
next	1.27;

1.27
date	2012.11.17.05.58.48;	author svnexp;	state Exp;
branches;
next	1.26;

1.26
date	2012.08.30.09.05.30;	author brooks;	state Exp;
branches;
next	1.25;

1.25
date	2012.08.27.16.18.52;	author brooks;	state Exp;
branches;
next	1.24;

1.24
date	2012.08.23.21.04.16;	author brooks;	state Exp;
branches;
next	1.23;

1.23
date	2012.07.31.18.49.18;	author brooks;	state Exp;
branches;
next	1.22;

1.22
date	2012.07.30.18.41.17;	author brooks;	state Exp;
branches;
next	1.21;

1.21
date	2012.07.25.21.19.50;	author brooks;	state Exp;
branches;
next	1.20;

1.20
date	2012.07.16.22.55.45;	author brooks;	state Exp;
branches;
next	1.19;

1.19
date	2012.02.22.23.19.26;	author brooks;	state Exp;
branches;
next	1.18;

1.18
date	2011.10.17.20.08.21;	author brooks;	state Exp;
branches;
next	1.17;

1.17
date	2011.06.16.15.07.40;	author brooks;	state Exp;
branches;
next	1.16;

1.16
date	2011.02.24.21.54.36;	author brooks;	state Exp;
branches;
next	1.15;

1.15
date	2010.12.10.15.09.00;	author brooks;	state Exp;
branches;
next	1.14;

1.14
date	2010.10.15.19.39.35;	author brooks;	state Exp;
branches;
next	1.13;

1.13
date	2010.10.14.19.15.37;	author brooks;	state Exp;
branches;
next	1.12;

1.12
date	2010.10.10.13.05.16;	author brooks;	state Exp;
branches;
next	1.11;

1.11
date	2010.10.10.12.54.12;	author brooks;	state Exp;
branches;
next	1.10;

1.10
date	2010.10.08.14.00.31;	author brooks;	state Exp;
branches;
next	1.9;

1.9
date	2010.08.18.18.59.56;	author mandree;	state Exp;
branches;
next	1.8;

1.8
date	2010.08.18.00.59.18;	author mandree;	state Exp;
branches;
next	1.7;

1.7
date	2010.05.04.20.45.59;	author brooks;	state Exp;
branches;
next	1.6;

1.6
date	2010.04.30.16.33.56;	author brooks;	state Exp;
branches;
next	1.5;

1.5
date	2010.04.28.21.05.03;	author brooks;	state Exp;
branches;
next	1.4;

1.4
date	2010.02.16.18.27.15;	author brooks;	state Exp;
branches;
next	1.3;

1.3
date	2009.11.04.22.11.58;	author brooks;	state Exp;
branches;
next	1.2;

1.2
date	2009.10.31.11.16.51;	author erwin;	state Exp;
branches;
next	1.1;

1.1
date	2009.10.24.23.30.19;	author brooks;	state Exp;
branches;
next	;


desc
@@


1.29
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313927
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# New ports collection makefile for:	clang
# Date created:		24 Oct 2009
# Whom:			Brooks Davis
#
# $FreeBSD: head/lang/clang-devel/Makefile 313927 2013-03-11 18:32:06Z brooks $
#

PORTNAME=	clang
PORTVERSION=	3.3.r${SVN_REV}
CATEGORIES=	lang devel
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	brooks
PKGNAMESUFFIX=	-devel
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		${LLVM_SOURCE}
EXTRACT_ONLY=	${LLVM_SOURCE}

MAINTAINER=	brooks@@FreeBSD.org
COMMENT=	C, Objective-C, and C++ compiler

CONFLICTS=	clang-[23]* clang31-*

CLANG_NAME=	clang-${PORTVERSION}
CLANG_RELEASE=	${PORTVERSION:C/\.r[0-9]*//}
CLANG_SOURCE=	${CLANG_NAME}${EXTRACT_SUFX}
LLVM_NAME=	llvm-${PORTVERSION}
LLVM_SOURCE=	${LLVM_NAME}${EXTRACT_SUFX}

WRKSRC=		${WRKDIR}/${LLVM_NAME}
BUILD_WRKSRC=	${WRKSRC}/tools/clang
INSTALL_WRKSRC=	${WRKSRC}/tools/clang

BUILD_DEPENDS+=	llvm-devel>=${PORTVERSION}:${PORTSDIR}/devel/llvm-devel
RUN_DEPENDS+=	llvm-devel>=${PORTVERSION}:${PORTSDIR}/devel/llvm-devel
.if defined(PACKAGE_BUILDING) || defined(MAINTAINER_MODE)
BUILD_DEPENDS+=	runtest:${PORTSDIR}/misc/dejagnu
.endif
.if defined(MAINTAINER_MODE)
BUILD_DEPENDS+=	f2c:${PORTSDIR}/lang/f2c
.endif

GNU_CONFIGURE=	yes
USE_BZIP2=	yes
USE_GCC=	4.2+
USE_GMAKE=	yes
USE_LDCONFIG=	yes
USE_PERL5=	yes
USE_PYTHON=	yes
MAKE_JOBS_SAFE=	yes

MAKE_ARGS=	CLANG_TBLGEN=${WRKSRC}/${RELTYPE}/bin/clang-tblgen \
		LLVMIncDir=${LOCALBASE}/include \
		LLVMToolDir=${LOCALBASE}/bin \
		LLVMLibDir=${LOCALBASE}/lib

OPTIONS_DEFINE=	ASSERTS DOCS MIPS_FPHACK

ASSERTS_DESC=	Enable assertions (thread unsafe)
MIPS_FPHACK_DESC=	MIPS long double hack (breaks ABI)

MAN1=		clang.1

PLIST_SUB+=	CLANG_RELEASE=${CLANG_RELEASE}

.include <bsd.port.options.mk>

.if defined(MAINTAINER_MODE)
CONFIGURE_ARGS+=	--with-f2c=${LOCALBASE}
.else
CONFIGURE_ARGS+=	--enable-optimized
.endif

.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+=	--enable-docs
.else
CONFIGURE_ARGS+=	--disable-docs
.endif

.if ${PORT_OPTIONS:MASSERTS}
CONFIGURE_ARGS+=	--enable-assertions
RELTYPE=		Release+Asserts
.else
CONFIGURE_ARGS+=	--disable-assertions
RELTYPE=		Release
.endif

.if ${PORT_OPTIONS:MMIPS_FPHACK}
EXTRA_PATCHES=	${FILESDIR}/mips-long-double-hack.diff
.endif

.include <bsd.port.pre.mk>

.include "${.CURDIR}/../../devel/llvm-devel/Makefile.svn_rev"

.if ${ARCH} == "sparc64"
BROKEN=		Does not compile on sparc64
.endif

.if ${OSVERSION} < 900033
RUN_DEPENDS+=	${LOCALBASE}/bin/ld:${PORTSDIR}/devel/binutils
.endif

.if defined(BOOTSTRAP) || defined(SVN_FETCH)
FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion

do-fetch:
	${MKDIR} ${WRKDIR}
	svn export -r ${SVN_REV} \
	    http://llvm.org/svn/llvm-project/cfe/trunk ${WRKDIR}/${CLANG_NAME}
	cd ${WRKDIR}; tar cvfy ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME}
.if ${USER} == brooks || ${USER} == bed22
	scp ${DISTDIR}/${DISTNAME}.tar.bz2 \
	    brooks@@freefall.freebsd.org:public_distfiles/
.endif
.endif

post-extract:
	cd ${WRKSRC}/tools && \
	    tar xf ${DISTDIR}/${CLANG_SOURCE} && \
	    ${MV} ${CLANG_NAME} clang

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|/usr/bin/env perl|${PERL}|' \
	    -e 's|%%DATADIR%%|${DATADIR}|' \
	    ${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \
	    ${WRKSRC}/tools/clang/tools/scan-build/c++-analyzer \
	    ${WRKSRC}/tools/clang/tools/scan-build/scan-build
	${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \
	    ${WRKSRC}/tools/clang/tools/scan-view/scan-view

pre-build:
	${LN} -sf ${LOCALBASE}/include/llvm/IR/Intrinsics.gen \
	    ${WRKSRC}/include/llvm/IR/
	${MKDIR} ${WRKSRC}/${RELTYPE}/lib
	${LN} -sf ${LOCALBASE}/lib/libLLVMTableGen.a ${WRKSRC}/${RELTYPE}/lib/
	${LN} -sf ${LOCALBASE}/lib/libLLVMSupport.a ${WRKSRC}/${RELTYPE}/lib/
	cd ${WRKSRC}/utils/unittest && ${GMAKE}

post-build:
	@@cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} clang.1

post-install:
	@@${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \
		${WRKSRC}/tools/clang/tools/scan-build/c++-analyzer \
		${WRKSRC}/tools/clang/tools/scan-build/scan-build \
		${WRKSRC}/tools/clang/tools/scan-view/scan-view \
	    ${PREFIX}/bin
	@@${MKDIR} ${PYTHONPREFIX_SITELIBDIR}
	@@${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/Resources
	@@${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-view/*.py \
	    ${PYTHONPREFIX_SITELIBDIR}
	@@${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-view/Resources/* \
	    ${PYTHONPREFIX_SITELIBDIR}/Resources
	@@${MKDIR} ${DATADIR}
	@@${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/scanview.css ${DATADIR}
	@@${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/sorttable.js ${DATADIR}
	@@${INSTALL_MAN} ${WRKSRC}/tools/clang/docs/tools/clang.1 \
	    ${MANPREFIX}/man/man1/

TEST_CMD=	'(cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check)'
regression-test: ${BUILD_COOKIE}
	if [ `${ID} -u` = 0 ]; then \
		${CHOWN} -R nobody ${WRKSRC}/test; \
		su -m nobody -c ${TEST_CMD}; \
	else \
		${SH} -c ${TEST_CMD}; \
	fi

PLIST_FILE_LIST=	bin/ccc-analyzer \
			bin/c++-analyzer \
			bin/c-index-test \
			bin/clang \
			bin/clang++ \
			bin/clang-check \
			bin/clang-tblgen \
			bin/scan-build \
			bin/scan-view \
			lib/libclang*
PLIST_DIR_LIST=		include/clang \
			include/clang-c \
			lib/clang
PLIST_PYFILE_LIST=	ScanView.py \
			Reporter.py \
			Resources/* \
			startfile.py
PLIST_PYDIR_LIST=	Resources

build-plist:
	${RM} -f ${PLIST}
	cd ${PREFIX} && \
	    (ls ${PLIST_FILE_LIST}; ${FIND} ${PLIST_DIR_LIST} -type f) | \
	    ${SED} -e 's|${CLANG_RELEASE}|%%CLANG_RELEASE%%|' | \
	    ${SORT} >> ${PLIST}
	${FIND} ${DATADIR} ${DOCSDIR} -type f | \
	    ${SED} -e 's|${DATADIR}|%%DATADIR%%|' \
	     -e 's|${DOCSDIR}|%%PORTDOCS%%%%DOCSDIR%%|' | ${SORT} >> ${PLIST}
	cd ${PYTHONPREFIX_SITELIBDIR} && \
	    ls ${PLIST_PYFILE_LIST} | ${SORT} | \
	    ${SED} -e 's|^|%%PYTHON_SITELIBDIR%%/|' >> ${PLIST}
	cd ${PREFIX} && \
	    ${FIND} ${PLIST_DIR_LIST} -type d | \
	    ${SED} -e 's|${CLANG_RELEASE}|%%CLANG_RELEASE%%|' | \
	    ${SORT} -r | ${SED} -e 's|^|@@dirrm |' >> ${PLIST}
	cd ${PYTHONPREFIX_SITELIBDIR} && \
	    ${FIND} ${PLIST_PYDIR_LIST} -type d | ${SORT} -r | \
	    ${SED} -e 's|^|@@dirrm %%PYTHON_SITELIBDIR%%/|' >> ${PLIST}
	${FIND} ${DATADIR} ${DOCSDIR} -type d | ${SORT} -r | \
	    ${SED} -e 's|${DATADIR}|@@dirrm %%DATADIR%%|' \
	     -e 's|${DOCSDIR}|%%PORTDOCS%%@@dirrm %%DOCSDIR%%|' >> ${PLIST}

.include <bsd.port.post.mk>
@


1.28
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310192
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310192 | brooks | 2013-01-10 18:01:28 +0000 (Thu, 10 Jan 2013) | 3 lines
## SVN ##
## SVN ## Update the develoment version of the llvm, clang and dragonegg ports to
## SVN ## 3.3.r172076.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/clang-devel/Makefile 310192 2013-01-10 18:01:28Z brooks $
d19 1
a19 1
COMMENT=	C, Objective-C, and (alpha-quality) C++ compiler
@


1.27
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/clang-devel/Makefile 303365 2012-08-30 09:05:30Z brooks $
d9 1
a9 2
PORTVERSION=	3.2.r${SVN_REV}
PORTREVISION=	2
d21 1
a21 1
CONFLICTS=	clang-[23]*
d111 1
a111 1
.if ${USER} == brooks
d113 1
a113 1
	    freefall.freebsd.org:public_distfiles/
d136 2
a137 1
	${LN} -sf ${LOCALBASE}/include/llvm/Intrinsics.gen ${WRKSRC}/include/llvm/
d175 1
@


1.26
log
@SVN rev 303365 on 2012-08-30 09:05:30Z by brooks

Fix a missing plist entry.

Submitted by:	QAT (beat)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.25
log
@SVN rev 303233 on 2012-08-27 16:18:52Z by brooks

Fix creation of position independent executables (-fPIE -pie).

There were two bugs here.  First, -pie was not passed to ld.  Second,
non-relocatable versions of three *crt*.o archives were used in the pie
case.

Additionally, link with crtbeginT.o in the -static case.

Shift style towards that of the Linux code since much of the new login was
cribbed from it.

Reported by:	jonathan
@
text
@d10 1
a10 1
PORTREVISION=	1
d177 1
@


1.24
log
@SVN rev 303040 on 2012-08-23 21:04:16Z by brooks

Update LLVM and Clang to r162438 plus a couple patchs to make it possible
to target MIPS with FreeBSD's base binutils.
@
text
@d10 1
@


1.23
log
@SVN rev 301807 on 2012-07-31 18:49:18Z by brooks

Fix build in the !DOCS case.

Reported by:	avg
@
text
@a9 1
PORTREVISION=	2
d56 1
a56 1
OPTIONS_DEFINE=	ASSERTS DOCS
d59 1
d87 4
a176 1
			bin/c-index-test \
@


1.22
log
@SVN rev 301736 on 2012-07-30 18:41:17Z by brooks

Install manpages even when docs are off.

Depend on devel/binutils on older OS versions which are missing a
require option

PR:		ports/170049, ports/170036
@
text
@a157 3
.if !${PORT_OPTIONS:MDOCS}
	@@${RMDIR} ${DOCSDIR}/html/img
.endif
@


1.21
log
@SVN rev 301533 on 2012-07-25 21:19:50Z by brooks

Correct a plist error reported by QAT.
@
text
@d10 1
a10 1
PORTREVISION=	1
d95 4
a137 1
.if ${PORT_OPTIONS:MDOCS}
a139 1
.endif
a155 1
.if ${PORT_OPTIONS:MDOCS}
d158 1
a158 1
.else
@


1.20
log
@SVN rev 300985 on 2012-07-16 22:55:45Z by brooks

Update to a 3.2 snapshot.  OPTIONSng-ify.  Reduce diffs with non-devel
ports.
@
text
@d10 1
@


1.19
log
@Upgrade to llvm/clang r150242.

Enable installation of the shared libaray in LLVM.

Add preliminary support for building and installing the gold linker
plugin.  No option is avaiable to turn it on (use -DWITH_LTOPLUGIN)
because devel/binutils does not yet build the gold linker.
@
text
@d9 1
a9 1
PORTVERSION=	3.1.r${SVN_REV}
d24 1
d51 1
a51 1
MAKE_ARGS=	CLANG_TBLGEN=${WRKSRC}/Release+Asserts/bin/clang-tblgen \
d56 10
d72 3
a74 1
.if defined(NOPORTDOCS)
d78 7
a84 1
MAN1=		clang.1
d128 3
a130 3
	${MKDIR} ${WRKSRC}/Release+Asserts/lib
	${LN} -sf ${LOCALBASE}/lib/libLLVMTableGen.a ${WRKSRC}/Release+Asserts/lib/
	${LN} -sf ${LOCALBASE}/lib/libLLVMSupport.a ${WRKSRC}/Release+Asserts/lib/
d133 1
a133 1
.if defined(NOPORTDOCS)
d153 1
a153 1
.if defined(NOPORTDOCS)
d191 1
d201 1
@


1.18
log
@Upgrade to r141985.  The is contemporary with the creation of the 3.0
branch.  Please test and report bugs to the llvm developers to make 3.0
a good release.
@
text
@d9 1
a9 1
PORTVERSION=	3.0.r${SVN_REV}
@


1.17
log
@Upgrade the LLVM and Clang -devel ports to r133062.

Update the conflicts lines in all the llvm and clang ports to conflict
with 3.x as well as 2.x and generally simplify the conflict definitions
following the example of llvm-etoile.
@
text
@d50 2
a51 1
MAKE_ARGS=	LLVMIncDir=${LOCALBASE}/include \
d109 3
d154 2
@


1.16
log
@Upgrade to LLVM and Clang r126079 to match the version in HEAD.

Add support to the LLVM makefile to set SVN_REV externally to make
upgrading to a specific version easier.
@
text
@d9 1
a9 1
PORTVERSION=	2.9.r${SVN_REV}
d21 1
a21 1
CONFLICTS=	clang-2.[0-9]* llvm-2.[0-9]*
d108 1
a108 1
	cd ${WRKSRC}/utils/unittest/googletest && ${GMAKE}
a147 1
			bin/c-index-test \
@


1.15
log
@Rather than relying on some hackish patches use thre --disable-docs
configure option in the NOPORTDOCS case.

This should result in no changes to packages.
@
text
@d107 2
a108 1
	${LN} -s ${LOCALBASE}/include/llvm/Intrinsics.gen ${WRKSRC}/include/llvm/
@


1.14
log
@Upgrade LLVM and Clang to r116582 and bump the overall version to 2.9
since 2.8 has shipped.

Split out the clang portion of devel/llvm-devel into lang/clang-devel.
@
text
@d61 1
a61 3
DOCSRCDIR=
.else
DOCSRCDIR=	docs
a97 2
	${REINPLACE_CMD} -e 's|%%DOCSRCDIR%%|${DOCSRCDIR}|' \
	    ${WRKSRC}/Makefile ${WRKSRC}/tools/clang/Makefile
@


1.13
log
@Forced commit to record repocopy from devel/clang to lang/clang and
lang/clang-devel by marcus on 2010-10-11.

PR:		ports/151340
@
text
@d9 5
a13 5
PORTVERSION=	2.8
PORTREVISION=	2
CATEGORIES=	devel lang
MASTER_SITES=	http://llvm.org/releases/${PORTVERSION}/
EXTRACT_SUFX=	.tgz
d21 1
a21 1
CONFLICTS=	clang-devel-2.[0-9]* llvm-devel-2.[0-9]*
d32 2
a33 2
BUILD_DEPENDS+=	llvm>=${PORTVERSION}:${PORTSDIR}/devel/llvm
RUN_DEPENDS+=	llvm>=${PORTVERSION}:${PORTSDIR}/devel/llvm
d42 1
d70 2
d76 14
@


1.12
log
@Fix scan-build by actually replacing %%DATADIR%%.

PR:		ports/151344
Submitted by:	Matthias Andree <matthias.andree at gmx.de>
@
text
@@


1.11
log
@Fix build when older versions are installed.

Submitted by:	ports/151337
@
text
@d10 1
a10 1
PORTREVISION=	1
d86 1
@


1.10
log
@Upgrade LLVM, Clang, and llvm-gcc to 2.8 release.

The Clang port has now been updated to avoid building LLVM twice.
@
text
@d10 1
d32 2
a33 2
BUILD_DEPENDS+=	llvm-as:${PORTSDIR}/devel/llvm
RUN_DEPENDS+=	llvm-as:${PORTSDIR}/devel/llvm
d92 2
a93 3
#@@cd ${WRKSRC}/tools/clang && ${GMAKE} TBLGEN=/usr/local/bin/tblgen LLVM_OBJ_ROOT=/usr/local
#do-build:
#	@@cd ${WRKSRC}/tools/clang && ${GMAKE} LLVMIncDir=/usr/local/include LLVMToolDir=/usr/local/bin LLVMLibDir=/usr/local/lib
@


1.9
log
@Fix regression in previous commit that broke NOPORTDOCS=yes installs.

Only remove /html/img if NOPORTDOCS is undefined.
@
text
@d9 1
a9 2
PORTVERSION=	2.7
PORTREVISION=	2
d28 1
d48 4
d91 4
d133 1
a137 1
			lib/libCIndex.* \
@


1.8
log
@Fix clang analyzer, and clean up port a bit. Adds dependencies.

- patch scan-view to use PYTHON_CMD
- also install c++-analyzer and scan-view
- also install ScanView.py and its dependencies into PYTHON_SITELIBDIR
- change USE_PERL5_BUILD to USE_PERL5, as scan-build needs it
  at run time
- add USE_PYTHON, as scan-view needs it
  (let's see to making these dependencies optional later)

- move EXTRACT_SUFX up to quiet portlint
- indent CONFLICTS value with TAB to quiet portlint
- add USE_LDCONFIG, found missing by portlint
- nuke empty $DOCSDIR/html/img that made deinstall complain

- amend to build-plist target
- rebuild pkg-plist
- bump PORTREVISION (changed pkg-plist)

The approval was a blanket approval under the condition that build-plist
was also updated, and was mailed to portmgr@@ and yours truly
on 2010-08-10 by brooks@@ in reference to the PR mentioned below.

Approved by:	brooks (maintainer)
PR:		ports/147434
@
text
@d110 2
a112 1
	@@${RMDIR} ${DOCSDIR}/html/img
@


1.7
log
@By popular depend, fix the installation of the clang.1 manpage when
NOPORTDOCS is set.
@
text
@d10 1
a10 1
PORTREVISION=	1
d13 1
a16 1
EXTRACT_SUFX=	.tgz
d21 1
a21 1
CONFLICTS=      clang-devel-2.[0-9]* llvm-devel-2.[0-9]*
d43 3
a45 1
USE_PERL5_BUILD=yes
d82 1
d84 2
d94 3
d98 6
a103 2
	@@${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-build/scan-build \
	    ${PREFIX}/bin
d111 1
d123 1
d127 1
d133 6
a138 1
			
d147 3
d153 3
@


1.6
log
@Actually don't install the documentation in the NOPORTDOCS case.  The
manpage is also not installed in that case.

Reported by:	QAT
@
text
@d10 1
d56 2
a58 1
.endif
d82 5
d95 4
@


1.5
log
@Upgrade llvm, clang, and llvm-gcc to the 2.7 release.

Submitted by:	mm (llvm and clang)
@
text
@d55 1
a57 2
MAN1=		clang.1

d75 1
a75 1
	    ${WRKSRC}/Makefile
@


1.4
log
@Only install compiler headers we don't provide as part of the BSD base.
This should fix some compilation problems and we've been doing it in
devel/llvm-devel for ages.

Feature safe:	yes
Reported by:	rdivacky
@
text
@d9 1
a9 2
PORTVERSION=	2.6
PORTREVISION=	3
d15 1
d18 1
a18 1
COMMENT=	C, Objective-C, and (soon) C++ compiler
d78 2
a79 2
	    ${WRKSRC}/tools/clang/utils/ccc-analyzer \
	    ${WRKSRC}/tools/clang/utils/scan-build
d82 1
a82 1
	@@${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/utils/ccc-analyzer \
d84 1
a84 1
	@@${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/utils/scan-build \
d87 2
a88 2
	@@${INSTALL_DATA} ${WRKSRC}/tools/clang/utils/scanview.css ${DATADIR}
	@@${INSTALL_DATA} ${WRKSRC}/tools/clang/utils/sorttable.js ${DATADIR}
d101 1
d103 6
a108 2
			libexec/clang-cc
PLIST_DIR_LIST=		lib/clang
@


1.3
log
@Fix plist (missing DATADIR).

Add conflicts for llvm-devel and the forthcoming clang-devel.

Add USE_GCC=4.2+ in hopes of fixing 6.x builds.

Reported by:	pointhat
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.2
log
@Fix pkg-plist

Submitted by:	pointyhat
Approved by:	maintainer timeout
Pointyhat:	brooks
@
text
@d10 1
a10 1
PORTREVISION=	1
d20 2
d30 2
a31 2
BUILD_DEPENDS+=	llvm=2.6:${PORTSDIR}/devel/llvm
RUN_DEPENDS+=	llvm=2.6:${PORTSDIR}/devel/llvm
d40 1
d115 3
a117 4
	${FIND} ${DOCSDIR} -type d | ${SORT} -r | \
	    ${SED} -e 's|${DATADIR}|%%DATADIR%%|' \
	     -e 's|${DOCSDIR}|%%DOCSDIR%%|' \
	     -e 's|^|%%PORTDOCS%%@@dirrm |' >> ${PLIST}
@


1.1
log
@Add a port of the clang C, Objective-C, and (soon) C++ compiler version
2.6.

NOTE: this port is slightly evil and both depends on llvm and builds all
of it.  We hope to find the correct make string to fix this, but wanted
make clang available now.
@
text
@d10 1
@

