head	1.10;
access;
symbols
	RELEASE_8_3_0:1.8
	RELEASE_9_0_0:1.7
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.4;
locks; strict;
comment	@# @;


1.10
date	2013.03.22.23.30.08;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.11.17.05.58.52;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2011.12.15.08.14.50;	author sunpoet;	state Exp;
branches;
next	1.7;

1.7
date	2011.05.15.21.19.34;	author pav;	state Exp;
branches;
next	1.6;

1.6
date	2011.05.04.04.21.47;	author cy;	state Exp;
branches;
next	1.5;

1.5
date	2010.12.28.05.39.00;	author cy;	state Exp;
branches;
next	1.4;

1.4
date	2010.11.10.20.42.09;	author bapt;	state Exp;
branches;
next	1.3;

1.3
date	2010.10.12.23.44.04;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2010.08.19.17.45.41;	author osa;	state Exp;
branches;
next	1.1;

1.1
date	2010.08.19.15.39.16;	author bapt;	state Exp;
branches;
next	;


desc
@@


1.10
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314960
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# New ports collection makefile for:	ldc
# Date created:				August 18 2010
# Whom:					Ruben <chromium@@hybridsource.org>
#
# $FreeBSD: head/lang/ldc-devel/Makefile 314960 2013-03-22 20:06:14Z makc $
#

PORTNAME=	ldc
DISTVERSION=	0.9.2r1697
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	http://hybridsource.org/
PKGNAMESUFFIX=	-devel
DISTFILES=	ldc-0.9.2r1697.tar.bz2 tango-5599.tar.bz2

MAINTAINER=	cy@@FreeBSD.org
COMMENT=	D frontend for llvm, with the Tango standard library

BUILD_DEPENDS=	llvm>=2.8:${PORTSDIR}/devel/llvm
LIB_DEPENDS=	config.10:${PORTSDIR}/devel/libconfig

BROKEN=		does not compile

LICENSE_COMB=	multi
LICENSE=	BSD ART10
ONLY_FOR_ARCHS=	i386 amd64
USE_BZIP2=	yes
USE_PERL5_BUILD=yes
USES=		cmake
MAKE_JOBS_SAFE=	yes
PORTDOCS=	LICENSE readme.txt tango/

.include <bsd.port.pre.mk>

MODULEDIR=	${PREFIX}/include/d/tango

.if ${ARCH} == i386
BOB=	build/bin/freebsd32/bob
.elif ${ARCH} == amd64
BOB=	build/bin/freebsd64/bob
.else #This won't actually be invoked but I thought I'd show
      #the adventurous how to build Tango on other architectures.
BUILD_DEPENDS=	ruby:${PORTSDIR}/lang/ruby18
BOB=		build/script/bob.rb
.endif

post-build:
	cd ${WRKSRC}/../tango && \
		${SETENV} PATH=${PATH}:${WRKSRC}/bin ./${BOB} -vu -r ldc -c ldc .
	@@${REINPLACE_CMD} -e "s|${WRKSRC}/../tango|${MODULEDIR}|" \
	                  -e "s|-user-ldc||" ${WRKSRC}/bin/ldc.conf

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/ldc ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/bin/ldmd ${PREFIX}/bin
.if !exists(${PREFIX}/etc/ldc.conf)
	${INSTALL_DATA} ${WRKSRC}/bin/ldc.conf ${PREFIX}/etc
.endif
	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/bin/ldc.conf ${EXAMPLESDIR}
	cd ${WRKSRC} && ${COPYTREE_SHARE} demos ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/../tango/libtango.a ${PREFIX}/lib
	${MKDIR} ${MODULEDIR}
	${INSTALL_DATA} ${WRKSRC}/../tango/object.di ${MODULEDIR}
	cd ${WRKSRC}/../tango && ${COPYTREE_SHARE} tango ${MODULEDIR}
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
	${MKDIR} ${DOCSDIR}/tango
	${INSTALL_DATA} ${WRKSRC}/../tango/LICENSE.txt ${DOCSDIR}/tango
	${INSTALL_DATA} ${WRKSRC}/../tango/README.txt ${DOCSDIR}/tango
	cd ${WRKSRC}/../tango && ${COPYTREE_SHARE} doc ${DOCSDIR}/tango
.endif

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


1.9
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/ldc-devel/Makefile 300896 2012-07-14 13:54:48Z beat $
d29 1
a29 1
USE_CMAKE=	2.6+
@


1.8
log
@- Bump PORTREVISION for devel/libconfig shlib change
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.7
log
@- Mark BROKEN: does not compile

Reported by:	pointyhat
@
text
@d10 1
d20 1
a20 1
LIB_DEPENDS=	config.9:${PORTSDIR}/devel/libconfig
@


1.6
log
@Remove extraneous gmake prereq.

PR:		156529
Submitted by:	Baptiste Daroussin <baptiste.daroussin@@gmail.com>
@
text
@d21 2
@


1.5
log
@Take over maintainership.

Submitted by:	Maintainer: "Ruben" <chromium@@hybridsource.org>
@
text
@a26 1
USE_GMAKE=	yes
@


1.4
log
@- update ldc snapshot to 0.9.2 r1697
- update tango snapshot to r5599
- unbreak build with llvm 2.8

PR:		ports/152088
Submitted by:	Ruben <chromium _at_ hybridsource.org>
@
text
@d15 1
a15 1
MAINTAINER=	chromium@@hybridsource.org
@


1.3
log
@- Mark BROKEN: does not build with llvm-2.8

Reported by:	pointyhat
OK'ed by:	maintainer
@
text
@d9 1
a9 1
DISTVERSION=	0.9.2r1655
d13 1
a13 1
DISTFILES=	ldc-0.9.2r1655.tar.bz2 tango-5525.tar.bz2
d18 1
a18 1
BUILD_DEPENDS=	llvm>=2.7:${PORTSDIR}/devel/llvm
a20 2
BROKEN=		does not build with llvm-2.8

a26 1
CXXFLAGS+=	-DLLVM_REV=102413
@


1.2
log
@Fix build.

Notice from:	QAT
Pointy hat to:	bapt
@
text
@d21 2
@


1.1
log
@LDC is a compiler for the D programming Language.  It is based on the DMD
frontend and uses LLVM as the backend.  LLVM provides a fast and modern backend
for high quality code generation.  LDC is released under a BSD license with
exceptions for the DMD frontend and code from GDC.

The development takes place mostly on x86-32 and x86-64 Linux and that is where
LDC works best.  Support for other platforms and architectures is under
development, but we are still looking for people to help test and adjust LDC
for those platforms!

LDC already compiles a lot of D code, but should still be considered beta
quality.  Take a look at the tickets to get a better impression of what still
needs to be implemented.

WWW: http://www.dsource.org/projects/ldc

PR:		ports/149798
Submitted by:	Ruben <chromium at hybridsource.org>
Approved by:	tabthorpe (co-mentor)
@
text
@d25 1
@

