head	1.6;
access;
symbols;
locks; strict;
comment	@# @;


1.6
date	2013.03.11.22.48.40;	author svnexp;	state Exp;
branches;
next	1.5;

1.5
date	2013.01.10.20.01.20;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2013.01.10.18.52.06;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2012.11.17.05.58.48;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2012.11.01.15.35.56;	author beat;	state Exp;
branches;
next	1.1;

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


desc
@@


1.6
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313927
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/lang/dragonegg-devel46/Makefile 313927 2013-03-11 18:32:06Z brooks $
#

PORTNAME=	dragonegg46
PORTVERSION=	3.3.r${SVN_REV}
CATEGORIES=	lang devel
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	brooks
PKGNAMESUFFIX=	-devel
DISTNAME=	dragonegg-${PORTVERSION}

MAINTAINER=	brooks@@FreeBSD.org
COMMENT=	GCC plugin to use the LLVM backend

CONFLICTS+=	dragonegg46-3*

# XXX: not entierly sure if llvm-devel is a depend
BUILD_DEPENDS+=	llvm-devel>=${PORTVERSION}:${PORTSDIR}/devel/llvm-devel
RUN_DEPENDS+=	${CC}:${PORTSDIR}/lang/gcc \
		llvm-devel>=${PORTVERSION}:${PORTSDIR}/devel/llvm-devel

OPTIONS_DEFINE=	DOCS

USE_BZIP2=	yes
USE_GCC=	4.6
USE_GMAKE=	yes
USE_LDCONFIG=	yes
MAKE_JOBS_SAFE=	yes

DRAGONEGG_RELEASE=	${PORTVERSION:C/\.r[0-9]*//}
DRAGONEGG_SO=		dragonegg-${DRAGONEGG_RELEASE}.so
DRAGONEGG_PATH=		${GCC_LIBDIR}/${DRAGONEGG_SO}
GCC_LIBDIR=		lib/${CC}

ALL_TARGET=
MAKE_ARGS=	GCC=${LOCALBASE}/bin/${CC} VERBOSE=1

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

PLIST_FILES=		${GCC_LIBDIR}/${DRAGONEGG_SO}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
PORTDOCS=		README
.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/dragonegg/trunk \
	    ${WRKDIR}/${DISTNAME}
	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-patch:
	${REINPLACE_CMD} -e 's/%%CC%%/${CC}/' \
	    -e 's#%%PLUGINPATH%%#${LOCALBASE}/${DRAGONEGG_PATH}#' \
	    -e 's/arg-dragonegg/arg-dragonegg-${DRAGONEGG_RELEASE}/' \
	    ${WRKSRC}/README

do-install:
	${INSTALL_LIB} ${WRKSRC}/dragonegg.so \
	    ${LOCALBASE}/${GCC_LIBDIR}/${DRAGONEGG_SO}
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>
@


1.5
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310196
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310196 | brooks | 2013-01-10 18:25:17 +0000 (Thu, 10 Jan 2013) | 2 lines
## SVN ##
## SVN ## Add a port of the 3.2 release of the dragonegg GCC plugin.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/lang/dragonegg-devel46/Makefile 310196 2013-01-10 18:25:17Z brooks $
d36 1
a36 1
MAKE_ARGS=	GCC=${LOCALBASE}/bin/${CC}
@


1.4
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
@d1 1
a1 1
# $FreeBSD: head/lang/dragonegg-devel46/Makefile 310192 2013-01-10 18:01:28Z brooks $
d15 2
@


1.3
log
@Switch exporter over
@
text
@d1 1
a1 1
# $FreeBSD: head/lang/dragonegg-devel46/Makefile 306810 2012-11-01 15:35:56Z beat $
d5 1
a5 1
PORTVERSION=	3.2.r${SVN_REV}
d10 1
a19 2
BROKEN=		distinfo is out of date

d55 1
a55 1
.if ${USER} == brooks
d57 1
a57 1
	    freefall.freebsd.org:public_distfiles/
@


1.2
log
@SVN rev 306810 on 2012-11-01 15:35:56Z by beat

- Mark as BROKEN: distinfo is out of date

Reported by:	pointyhat
Feature safe:	yes
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.1
log
@SVN rev 305746 on 2012-10-12 00:53:48Z by brooks

Add a port of the development version of DragonEgg.

DragonEgg is a gcc plugin that replaces GCC's optimizers and code
generators with those from the LLVM project.  It works with gcc-4.5
or gcc-4.6, can target the x86-32/x86-64 and ARM processor families.
It fully supports Ada, C, C++ and Fortran.  It has partial support
for Go, Java, Obj-C and Obj-C++.

Feature safe:	yes
@
text
@d19 2
@

