head	1.10;
access;
symbols
	RELEASE_8_3_0:1.7
	RELEASE_9_0_0:1.6;
locks; strict;
comment	@# @;


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

1.9
date	2012.08.08.06.54.57;	author culot;	state Exp;
branches;
next	1.8;

1.8
date	2012.04.09.11.28.22;	author culot;	state Exp;
branches;
next	1.7;

1.7
date	2012.01.12.14.24.37;	author culot;	state Exp;
branches;
next	1.6;

1.6
date	2011.09.12.17.16.58;	author culot;	state Exp;
branches;
next	1.5;

1.5
date	2011.07.24.10.52.53;	author culot;	state Exp;
branches;
next	1.4;

1.4
date	2011.07.16.05.29.51;	author linimon;	state Exp;
branches;
next	1.3;

1.3
date	2011.07.15.13.58.30;	author culot;	state Exp;
branches;
next	1.2;

1.2
date	2011.04.27.11.15.39;	author culot;	state Exp;
branches;
next	1.1;

1.1
date	2011.02.15.07.32.50;	author wen;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Switch exporter over
@
text
@# New ports collection makefile for:  gnat-aux
# Date created:                       2010-12-16
# Whom:                               John Marino <draco@@marino.st>
#
# $FreeBSD: head/lang/gnat-aux/Makefile 302273 2012-08-08 06:54:57Z culot $
#

PORTNAME=	gnat-aux
PORTVERSION=	${SNAPSHOT}
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	http://downloads.dragonlace.net/src/:boot \
		http://dragonlace.mirrors.ada.cx/src/:boot \
		${MASTER_SITE_GCC}
MASTER_SITE_SUBDIR=	releases/gcc-${GCC_VERSION}
DISTFILES=	gcc-core-${GCC_VERSION}.tar.bz2

MAINTAINER=	draco@@marino.st
COMMENT=	GNAT Ada compiler based on GCC ${GCC_BRANCH}

.include "${.CURDIR}/Makefile.common"

LANGS=			c
APPLY_DIFFS=		core
INTENDED_COMPILER=	NATIVE
BOOTSTRAP_COMPILER=	NOT_REQUIRED
BOOTSTRAP_TRIPLET=	NOT_SET
FULL_GNATGCC=		NOT_SET

OPTIONS=	ADA    "Build Ada language" on
OPTIONS+=	CXX    "Build C++ language" on
OPTIONS+=	FORT   "Build Fortran language" on
OPTIONS+=	OBJC   "Build Objective-C language" on
OPTIONS+=	TS_ADA "Enable Ada testsuite" off
OPTIONS+=	TS_CXX "Enable C++ testsuite" off
OPTIONS+=	TS_FOR "Enable Fortran testsuite" off
OPTIONS+=	TS_OBC "Enable Objective-C testsuite" off
OPTIONS+=	TS_GCC "Enable GCC testsuite" off

.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>

.if ${ARCH} == "amd64"
BLD_TARGET=		x86_64-aux-freebsd${OSREL}
OS_LABEL4VERS=		[FreeBSD64]
BOOTSTRAP_TRIPLET=	x86_64-bootstrap-freebsd8.1/4.6.0
BOOTSTRAP_COMPILER=	gnat-bootstrap.x86_64.freebsd.tar.bz2
.else
BLD_TARGET=		i386-aux-freebsd${OSREL}
OS_LABEL4VERS=		[FreeBSD]
BOOTSTRAP_TRIPLET=	i386-bootstrap-freebsd8.0/4.6.0
BOOTSTRAP_COMPILER=	gnat-bootstrap.i386.freebsd.tar.bz2
.endif
PLIST_SUB=		GNU_HOST=${BLD_TARGET}
PLIST_SUB+=		GCC_VER=${GCC_VERSION}

WRKSRC=			${WRKDIR}/gcc-${GCC_VERSION}
BUILDDIR=		${WRKDIR}/build
CFG_SCRIPT=		${WRKSRC}/configure
REVFILE=		${WRKSRC}/gcc/REVISION
BOOTSTRAP_PREFIX=	${WRKDIR}/bootstrap
PKG_PREFIX=		${PREFIX}
LPATH=			lib/gcc/${BLD_TARGET}/${GCC_VERSION}
LEPATH=			libexec/gcc/${BLD_TARGET}/${GCC_VERSION}
USE_LDCONFIG=		${PREFIX}/lib/gcc
MAN1=			gnatcpp.1 gnatgcc.1 gnatgcov.1
MAN1PREFIX=		${PREFIX}/share
MAN7PREFIX=		${PREFIX}/share
NO_MANCOMPRESS=		yes

# If we find gnatgcc and friends in standard location, then we'll use this
# compiler instead of downloading the bootstrap.
.if exists (${PREFIX}/bin/gnatgcc)
.if exists (${PREFIX}/bin/gnatbind)
.if exists (${PREFIX}/bin/gnatlink)
.if exists (${PREFIX}/bin/gnatmake)
FULL_GNATGCC=${PREFIX}/bin/gnatgcc
FULL_PATH=/sbin:/bin:/usr/sbin:/usr/bin:${PREFIX}/bin
.endif
.endif
.endif
.endif

# If FULL_GNATGCC is not set, we'll request the bootstrap compiler
.if ${FULL_GNATGCC} == "NOT_SET"
INTENDED_COMPILER=BOOTSTRAP
FULL_GNATGCC=${BOOTSTRAP_PREFIX}/bin/gnatgcc
FULL_PATH=${BOOTSTRAP_PREFIX}/bin:/sbin:/bin:/usr/sbin:/usr/bin:${PREFIX}/bin
DISTFILES+=	${BOOTSTRAP_COMPILER}:boot
.endif

###########
##  Ada  ##
###########

.if defined(WITH_ADA)
LANGS+=		ada
APPLY_DIFFS+=	ada
DISTFILES+=	gcc-ada-${GCC_VERSION}.tar.bz2
PLIST_SUB+=	ADA=""
.else
PLIST_SUB+=	ADA="@@comment "
.endif

###########
##  C++  ##
###########

.if defined(WITH_CXX)
LANGS+=		c++
APPLY_DIFFS+=	cxx
DISTFILES+=	gcc-g++-${GCC_VERSION}.tar.bz2
MAN1+=		gnatg++.1
LCXXPATH=	include/c++/${GCC_VERSION}
LSHRPATH=	share/gcc-${GCC_VERSION}
PLIST_SUB+=	CXX=""
.else
PLIST_SUB+=	CXX="@@comment "
.endif

###############
##  Fortran  ##
###############

.if defined(WITH_FORT)
LANGS+=		fortran
APPLY_DIFFS+=	fortran
DISTFILES+=	gcc-fortran-${GCC_VERSION}.tar.bz2
MAN1+=		gnatgfortran.1
QUADOPT=	--enable-libquadmath
PLIST_SUB+=	FRT=""
.else
QUADOPT=	--disable-libquadmath
PLIST_SUB+=	FRT="@@comment "
.endif

###################
##  Objective-C  ##
###################

.if defined(WITH_OBJC)
LANGS+=		objc
DISTFILES+=	gcc-objc-${GCC_VERSION}.tar.bz2
.endif

##################
##  Testsuites  ##
##################

.if defined(WITH_TS_ADA) \
 || defined(WITH_TS_CXX) \
 || defined(WITH_TS_FOR) \
 || defined(WITH_TS_OBC) \
 || defined(WITH_TS_GCC)
BUILD_DEPENDS=	dejagnu>=1.4:${PORTSDIR}/misc/dejagnu
DISTFILES+=	gcc-testsuite-${GCC_VERSION}.tar.bz2
.if defined(WITH_TS_ADA)
APPLY_DIFFS+=	ada-testsuite
.endif
.if defined(WITH_TS_CXX)
APPLY_DIFFS+=	cxx-testsuite
.endif
.if defined(WITH_TS_GCC)
APPLY_DIFFS+=	gcc-testsuite
.endif
.endif

# for port maintenance, uncomment to invoke "make makesum"
# DISTFILES=${PORTNAME}-${SNAPSHOT}.tar.bz2 \
#   gnat-aux-460.i386.freebsd.tar.bz2 \
#   gnat-aux-460.x86_64.freebsd.tar.bz2

# Establish Ada-aware compiler for use
ADA_CONFIGURE_ENV=	CC=${FULL_GNATGCC}
ADA_CONFIGURE_ENV+=	PATH=${FULL_PATH}
ADA_CONFIGURE_ENV+=	CONFIG_SHELL=${SH}
ADA_MAKE_ENV=		PATH=${FULL_PATH}
ADA_MAKE_ENV+=		LD_LIBRARY_PATH=${BUILDDIR}/gcc

# The standard configuration options
CONFIGURE_ARGS=		--enable-languages=${LANGS:Q}
CONFIGURE_ARGS+=	--build=${BLD_TARGET}
CONFIGURE_ARGS+=	--program-prefix=gnat
CONFIGURE_ARGS+=	--prefix=${PREFIX}
CONFIGURE_ARGS+=	--with-system-zlib
CONFIGURE_ARGS+=	--with-gmp=${PKG_PREFIX}
CONFIGURE_ARGS+=	--with-mpfr=${PKG_PREFIX}
CONFIGURE_ARGS+=	--with-mpc=${PKG_PREFIX}
CONFIGURE_ARGS+=	--with-libiconv-prefix=${PKG_PREFIX}
CONFIGURE_ARGS+=	--enable-shared
CONFIGURE_ARGS+=	--enable-threads=posix
CONFIGURE_ARGS+=	--disable-bootstrap
CONFIGURE_ARGS+=	${QUADOPT}
CONFIGURE_ARGS+=	--disable-libmudflap
CONFIGURE_ARGS+=	--disable-libgomp
CONFIGURE_ARGS+=	--disable-libssp
CONFIGURE_ARGS+=	--disable-nls

post-extract:
	# Personalize GNAT for each different machine
	@@${ECHO} "-=> GNAT AUX ${OS_LABEL4VERS}" > ${REVFILE}

	# Create new directories in preparation of applying diff files
.if defined(WITH_CXX)
	${MKDIR} ${WRKSRC}/libstdc++-v3/config/locale/dragonfly
	${MKDIR} ${WRKSRC}/libstdc++-v3/config/os/bsd/dragonfly
.endif

	# Apply required composite diff files
.for suffix in ${APPLY_DIFFS}
	@@${ECHO} "Applying composite patch diff-${suffix}"
	@@${PATCH} -d ${WRKSRC} -s -E < ${FILESDIR}/diff-${suffix}
.endfor

.if ${INTENDED_COMPILER} == "BOOTSTRAP"
	${MKDIR} ${BOOTSTRAP_PREFIX}
	${MV} ${BOOTSTRAP_PREFIX}/../bin ${BOOTSTRAP_PREFIX}
	${MV} ${BOOTSTRAP_PREFIX}/../lib ${BOOTSTRAP_PREFIX}
	${MV} ${BOOTSTRAP_PREFIX}/../libexec ${BOOTSTRAP_PREFIX}

	# Bootstrap compiler has statically linked z, gmp, mpc, mpfr and iconv
	# The only shared lib is libc.so.7, so it should work for a long time.

.if ${OSVERSION} > 900000
	# Since June 7, bootstrap compiler's include-fixed headers have been
	# incompatible with FreeBSD 9.0-CURRENT
	${RM} -rf ${BOOTSTRAP_PREFIX}/lib/gcc/${BOOTSTRAP_TRIPLET}/include-fixed
.endif
.endif

do-configure:
	${MKDIR} ${BUILDDIR}
	cd ${BUILDDIR} && ${SETENV} ${ADA_CONFIGURE_ENV} \
	${CFG_SCRIPT} ${CONFIGURE_ARGS}

do-build:
	cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} all

test: build
.if defined(WITH_ADA) && defined(WITH_TS_ADA)
	cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-ada
.endif
.if defined(WITH_FORT) && defined(WITH_TS_FOR)
	cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-fortran
.endif
.if defined(WITH_OBJC) && defined(WITH_TS_OBC)
	cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-objc
.endif
.if defined(WITH_CXX) && defined(WITH_TS_CXX)
	# libstdc++ testsuite will break every time, TRUE used to force continuation
	cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-c++ || true
.endif
.if defined(WITH_TS_GCC)
	cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-c
.endif

do-install:
	cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} install-strip DESTDIR=${DESTDIR}

post-install:
	${RM} -f ${WRKDIR}/PLIST.lib
.for d in ${LPATH} ${LEPATH} ${LCXXPATH} ${LSHRPATH}
	cd ${PREFIX} ; ${FIND} $d \( -type f -or -type l \) | ${SORT} >> ${WRKDIR}/PLIST.lib
	cd ${PREFIX} ; ${FIND} $d  -type d | ${SORT} -r | \
	   ${SED} -e 's/^/@@dirrm /g' >> ${WRKDIR}/PLIST.lib
.endfor
	${ECHO_CMD} "@@unexec ${RMDIR} %D/lib/gcc/${BLD_TARGET}     2>/dev/null || true" >> ${WRKDIR}/PLIST.lib
	${ECHO_CMD} "@@unexec ${RMDIR} %D/lib/gcc                   2>/dev/null || true" >> ${WRKDIR}/PLIST.lib
	${ECHO_CMD} "@@unexec ${RMDIR} %D/libexec/gcc/${BLD_TARGET} 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib
	${ECHO_CMD} "@@unexec ${RMDIR} %D/libexec/gcc               2>/dev/null || true" >> ${WRKDIR}/PLIST.lib
	${ECHO_CMD} "@@unexec ${RMDIR} %D/include/c++               2>/dev/null || true" >> ${WRKDIR}/PLIST.lib

	cd ${WRKDIR}; ${SED} -i -e "/PLIST.lib/ r PLIST.lib" ${TMPPLIST}
.if ${OSVERSION} > 900000
	@@${ECHO_MSG} "===================================================================="
	@@${ECHO_MSG} " NOTICE REGARDING ADA TASKING ON FREEBSD 9.0:"
	@@${ECHO_MSG} " Due to a bug in the FreeBSD 9.0 threading library, an exiting task"
	@@${ECHO_MSG} " panics with the message: 'thread exits with resources held!'."
	@@${ECHO_MSG} " This behavior breaks Ada tasking.  These are two solutions:"
	@@${ECHO_MSG} " 1) Upgrade to FreeBSD 9.1 or higher"
	@@${ECHO_MSG} " 2) Patch and rebuild thread library as described in"
	@@${ECHO_MSG} "    http://www.dragonlace.net/posts/F9_Fix/"
	@@${ECHO_MSG} "===================================================================="
.endif

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


1.9
log
@SVN rev 302273 on 2012-08-08 06:54:57Z by culot

- Update patches to fix exception handling on amd64/FreeBSD 9+
- Bump portrevision

PR:		ports/170440
Submitted by:	John Marino <draco@@marino.st> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.8
log
@- Update to 20120301 (corresponding to gcc 4.6.3)
- Split off Makefile.common fragment for use in lang/gnatdroid-arm* ports

Maintainer note:
- Ada tasking is broken on FreeBSD-9+ and has always been but a testsuite
run didn't reveal this until recently. Due to a new panic assertion added
to the thread library, exiting tasks now abort with the message "thread
exits with resources held!". A significant attempt was made to patch GNAT
to release thread resources on exiting tasks, but the code is highly
complex and the attemps are not yes successful.

PR:		ports/166718
Submitted by:	John Marino <draco@@marino.st> (maintainer)
Feature safe:	yes
@
text
@d2 1
a2 1
# Date created:                       16 December 2010
d10 1
d275 9
a283 9
	@@${ECHO_MSG} "========================================================"
	@@${ECHO_MSG} " NOTICE REGARDING ADA TASKING ON FREEBSD 9.x:"
	@@${ECHO_MSG} " Due to a new resource check in the threading library"
	@@${ECHO_MSG} " starting with FreeBSD 9.0, an exiting task panics with"
	@@${ECHO_MSG} " the message 'thread exits with resources held!'."
	@@${ECHO_MSG} " Essentially this behavior breaks Ada tasking and 23"
	@@${ECHO_MSG} " ACATS tests fail on FreeBSD 9.x. A solution is being"
	@@${ECHO_MSG} " sought, but the necessary patches will not be trivial."
	@@${ECHO_MSG} "========================================================"
@


1.7
log
@- Update to 20111026 (corresponding to gcc 4.6.2)
- Set default options to build all five languages (Ada, C, C++, ObjC, Fortran)

Maintainer notes:
- Previously GNAT-Aux was built from a custom tarball provided by dragonlace.net.
Now real gcc source tarballs are used, and then patched.
- The standard patch mechanism is not used. Composite diff files generated and
provided by dragonlace.net are applied as needed.
- This sets the stage to sync GNAT-Aux with gcc 4.7.0 when its released.

PR:		ports/163914
Submitted by:	John Marino <draco@@marino.st> (maintainer)
@
text
@d20 2
a21 18
LIB_DEPENDS=	gmp.10:${PORTSDIR}/math/gmp
LIB_DEPENDS+=	mpfr.4:${PORTSDIR}/math/mpfr
LIB_DEPENDS+=	mpc.2:${PORTSDIR}/math/mpc

ONLY_FOR_ARCHS=	i386 amd64

GNU_CONFIGURE=		yes
USE_GMAKE=		yes
USE_BZIP2=		yes
USE_ICONV=		yes
USE_PERL5_BUILD=	yes
ALL_TARGET=		default
MAKE_JOBS_SAFE=		yes

SNAPSHOT=		20111026
GCC_BRANCH=		4.6
GCC_POINT=		2
GCC_VERSION=		${GCC_BRANCH}.${GCC_POINT}
a23 1

d273 11
@


1.6
log
@- Add patches to implement run-time symbolic traceback support
  (without it programs requiring this traceback fail to link)
- Bump PORTREVISION

PR:		ports/160616
Submitted by:	John Marino <draco@@marino.st> (maintainer)
@
text
@a9 1
PORTREVISION=	1
d11 5
a15 2
MASTER_SITES=	http://downloads.dragonlace.net/src/ \
		http://dragonlace.mirrors.ada.cx/src/
a29 1
USE_BISON=		build
a30 1
USE_LDCONFIG=		yes
d34 1
a34 1
SNAPSHOT=		20110627
d36 2
a37 1
GCC_POINT=		1
d39 1
a40 1
THREAD_MODEL=		posix
d48 2
d52 2
d71 1
a71 1
PLIST_SUB+=		GCC_VER=${GCC_BRANCH}.${GCC_POINT}
d73 1
a73 1
WRKSRC=			${WRKDIR}/gcc-${GCC_BRANCH}-${SNAPSHOT}
d79 3
a81 2
LPATH=			lib/gcc/${BLD_TARGET}/${GCC_BRANCH}.${GCC_POINT}
LEPATH=			libexec/gcc/${BLD_TARGET}/${GCC_BRANCH}.${GCC_POINT}
a82 1
MAN7=			fsf-funding.7 gfdl.7 gpl.7
d105 1
a105 1
DISTFILES=${PORTNAME}-${SNAPSHOT}.tar.bz2 ${BOOTSTRAP_COMPILER}
d114 5
d127 2
d130 2
a131 2
LCXXPATH=	include/c++/${GCC_BRANCH}.${GCC_POINT}
LSHRPATH=	share/gcc-${GCC_BRANCH}.${GCC_POINT}
d137 25
d168 2
d172 10
d207 1
a207 1
CONFIGURE_ARGS+=	--enable-threads=${THREAD_MODEL}
d209 1
a209 1
CONFIGURE_ARGS+=	--disable-libquadmath
d219 12
a238 2
	# if FBSD 9.0 upgrades libc, a compat8x requirement could be added
	# for FreeBSD 7.x and 8.x
a247 5
	#reset timestamps
	cd ${WRKSRC}; contrib/gcc_update --touch
	${RM} -f ${WRKSRC}/gcc/*/*.info*
	${TOUCH} ${WRKSRC}/gcc/cstamp-h.in

d256 1
a256 1
.if defined(WITH_TS_ADA)
d259 9
a267 4
.if defined(WITH_TS_CXX)
	cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-c++
	cd ${BUILDDIR} && ${SETENV} ${ADA_MAKE_ENV} \
	   ${GMAKE} -sk check-target-libstdc++-v3
@


1.5
log
@- Fix compilation on 9.0 [1]
- Mark MAKE_JOBS_SAFE

Reported by:	pav@@ [1]
Fixed by:	John Marino <draco@@marino.st> (maintainer, via email)
@
text
@d10 1
d68 4
a71 2
WRKSRC=			${WRKDIR}/build
GCC_WRKSRC=		${WRKDIR}/gcc-${GCC_BRANCH}-${SNAPSHOT}
a73 2
CONFIGURE_SCRIPT=	${GCC_WRKSRC}/configure
REVFILE=		${GCC_WRKSRC}/gcc/REVISION
d145 1
a145 1
ADA_MAKE_ENV+=		LD_LIBRARY_PATH=${WRKSRC}/gcc
d190 7
a196 7
	cd ${GCC_WRKSRC}; contrib/gcc_update --touch
	${RM} -f ${GCC_WRKSRC}/gcc/*/*.info*
	${TOUCH} ${GCC_WRKSRC}/gcc/cstamp-h.in

	${MKDIR} ${WRKSRC}
	cd ${WRKSRC} && ${SETENV} ${ADA_CONFIGURE_ENV} \
	${SH} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
d199 1
a199 1
	cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} all
d203 1
a203 1
	cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-ada
d206 2
a207 2
	cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-c++
	cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} \
d211 1
a211 1
	cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} -sk check-c
d215 1
a215 1
	cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} install-strip DESTDIR=${DESTDIR}
@


1.4
log
@Spell ONLY_FOR_ARCHS correctly.
@
text
@d31 1
d179 6
@


1.3
log
@- Update to 20110627 (corresponding to gcc4.6.1 release)

PR:		ports/158938
Submitted by:	John Marino <draco@@marino.st> (maintainer)
@
text
@d21 1
a21 1
ONLY_FOR_ARCHES=	i386 amd64
@


1.2
log
@- Update to 20110325 [1]
- Pet portlint(1) by removing trailing spaces

PR:		ports/156541 [1]
Submitted by:	John Marino <freebsdml@@marino.st> (maintainer)
@
text
@d32 1
a32 1
SNAPSHOT=		20110325
d34 1
a34 1
GCC_POINT=		0
a141 1
ADA_CONFIGURE_ENV+=	MAKEINFO=/usr/bin/false
d207 1
a207 1
	cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} install-strip
@


1.1
log
@GNAT AUX is based on the trunk version of Free Software Foundation's GNU
Compiler Collection.  It carries with it the GMGPL license, the modified
version of the GPL that exempts generic instantiation from resulting in
a GPL-licensed executable.  This version of GNAT also carries with it the
GCC Runtime Library Exception, so the resulting binaries have no licensing
requirements.  Binaries produced by GNAT AUX should be handled the same as
binaries produced by any FSF GNAT compiler.

GNAT AUX implements the full Ada-83, Ada-95, and Ada-2005 language standards.
It also implements some features of the draft Ada-2012 standard, which are
optionally accessible via the -gnat2012 switch or Ada_2012 pragma.

WWW: http://www.dragonlace.net/

PR:		ports/153828
Submitted by:	John Marino <freebsdml@@marino.st>
@
text
@a19 1
BUILD_DEPENDS=	dejagnu>=1.4:${PORTSDIR}/misc/dejagnu
d32 1
a32 1
SNAPSHOT=		20110107
d35 1
d43 6
d50 1
a73 1
LELIST=			cc1 collect2 gnat1 lto1
d101 32
d139 4
a142 1
ADA_CONFIGURE_ENV=	CC=${FULL_GNATGCC} PATH=${FULL_PATH} CONFIG_SHELL=${SH}
d144 1
d147 1
a147 1
CONFIGURE_ARGS=		--enable-languages=c,ada
d159 1
a164 2
MAKE_ARGS+=		MAKEINFOFLAGS="--no-split"

d195 1
d197 9
d208 1
a208 1
	cd ${WRKSRC} && ${SETENV} ${ADA_MAKE_ENV} ${GMAKE} install
d210 1
a210 1
post-install: strip-exec
d212 1
a212 1
.for d in ${LPATH} ${LEPATH}
d221 1
a224 6
strip-exec:
	${STRIP_CMD} ${PREFIX}/bin/gnat*
.for k in ${LELIST}
	${STRIP_CMD} ${PREFIX}/${LEPATH}/${k}
.endfor

@

