head	1.70;
access;
symbols
	RELEASE_8_3_0:1.67
	RELEASE_9_0_0:1.67
	RELEASE_7_4_0:1.67
	RELEASE_8_2_0:1.67
	RELEASE_6_EOL:1.65
	RELEASE_8_1_0:1.63
	RELEASE_7_3_0:1.60
	RELEASE_8_0_0:1.60
	RELEASE_7_2_0:1.58
	RELEASE_7_1_0:1.58
	RELEASE_6_4_0:1.58
	RELEASE_5_EOL:1.58
	RELEASE_7_0_0:1.57
	RELEASE_6_3_0:1.57
	PRE_XORG_7:1.55
	RELEASE_4_EOL:1.55
	RELEASE_6_2_0:1.52
	RELEASE_6_1_0:1.52
	RELEASE_5_5_0:1.52
	RELEASE_6_0_0:1.45
	RELEASE_5_4_0:1.44
	RELEASE_4_11_0:1.42
	RELEASE_5_3_0:1.42
	RELEASE_4_10_0:1.42
	RELEASE_5_2_1:1.41
	RELEASE_5_2_0:1.41
	RELEASE_4_9_0:1.40
	RELEASE_5_1_0:1.40
	RELEASE_4_8_0:1.39
	RELEASE_5_0_0:1.37
	RELEASE_4_7_0:1.32
	RELEASE_4_6_2:1.30
	RELEASE_4_6_1:1.30
	RELEASE_4_6_0:1.30
	RELEASE_5_0_DP1:1.30
	RELEASE_4_5_0:1.26
	RELEASE_4_4_0:1.26
	RELEASE_4_3_0:1.26
	RELEASE_4_2_0:1.25
	RELEASE_4_1_1:1.23
	RELEASE_4_1_0:1.23
	RELEASE_3_5_0:1.23
	RELEASE_4_0_0:1.22
	RELEASE_3_4_0:1.22
	RELEASE_3_3_0:1.21
	RELEASE_3_2_0:1.17
	RELEASE_3_1_0:1.16
	RELEASE_2_2_8:1.16
	RELEASE_3_0_0:1.16
	RELEASE_2_2_7:1.16
	RELEASE_2_2_6:1.16
	RELEASE_2_2_5:1.13
	RELEASE_2_2_1:1.10
	RELEASE_2_2_2:1.10
	GNAT_2_03_revised:1.1.1.1
	GNAT_2_03:1.1.1.1
	GNAT:1.1.1;
locks; strict;
comment	@# @;


1.70
date	2013.03.10.16.47.08;	author svnexp;	state Exp;
branches;
next	1.69;

1.69
date	2013.03.08.21.56.27;	author svnexp;	state Exp;
branches;
next	1.68;

1.68
date	2012.11.17.05.58.50;	author svnexp;	state Exp;
branches;
next	1.67;

1.67
date	2011.01.29.02.36.31;	author linimon;	state Exp;
branches;
next	1.66;

1.66
date	2010.12.25.16.55.31;	author sunpoet;	state Exp;
branches;
next	1.65;

1.65
date	2010.10.25.13.13.27;	author deischen;	state Exp;
branches;
next	1.64;

1.64
date	2010.09.30.16.53.28;	author deischen;	state Exp;
branches;
next	1.63;

1.63
date	2010.06.11.15.09.43;	author ale;	state Exp;
branches;
next	1.62;

1.62
date	2010.06.08.19.52.56;	author makc;	state Exp;
branches;
next	1.61;

1.61
date	2010.04.19.10.43.26;	author ale;	state Exp;
branches;
next	1.60;

1.60
date	2009.07.19.09.43.00;	author deischen;	state Exp;
branches;
next	1.59;

1.59
date	2009.07.19.03.38.30;	author deischen;	state Exp;
branches;
next	1.58;

1.58
date	2008.04.19.17.51.28;	author miwi;	state Exp;
branches;
next	1.57;

1.57
date	2007.10.17.10.12.42;	author ade;	state Exp;
branches;
next	1.56;

1.56
date	2007.10.04.01.25.16;	author edwin;	state Exp;
branches;
next	1.55;

1.55
date	2007.01.21.04.59.56;	author rafan;	state Exp;
branches;
next	1.54;

1.54
date	2006.12.26.16.56.14;	author deischen;	state Exp;
branches;
next	1.53;

1.53
date	2006.12.26.16.53.47;	author deischen;	state Exp;
branches;
next	1.52;

1.52
date	2005.12.05.23.29.35;	author edwin;	state Exp;
branches;
next	1.51;

1.51
date	2005.12.05.12.54.20;	author edwin;	state Exp;
branches;
next	1.50;

1.50
date	2005.12.05.05.56.13;	author edwin;	state Exp;
branches;
next	1.49;

1.49
date	2005.12.02.02.12.32;	author deischen;	state Exp;
branches;
next	1.48;

1.48
date	2005.11.29.01.11.25;	author deischen;	state Exp;
branches;
next	1.47;

1.47
date	2005.11.29.00.01.24;	author deischen;	state Exp;
branches;
next	1.46;

1.46
date	2005.11.28.06.43.27;	author fenner;	state Exp;
branches;
next	1.45;

1.45
date	2005.07.14.15.19.47;	author pav;	state Exp;
branches;
next	1.44;

1.44
date	2005.02.19.01.11.43;	author deischen;	state Exp;
branches;
next	1.43;

1.43
date	2005.02.12.13.19.47;	author das;	state Exp;
branches;
next	1.42;

1.42
date	2004.02.04.05.21.37;	author marcus;	state Exp;
branches;
next	1.41;

1.41
date	2003.09.24.09.36.56;	author osa;	state Exp;
branches;
next	1.40;

1.40
date	2003.04.06.12.50.49;	author deischen;	state Exp;
branches;
next	1.39;

1.39
date	2003.02.21.12.35.03;	author knu;	state Exp;
branches;
next	1.38;

1.38
date	2003.01.30.08.23.53;	author kris;	state Exp;
branches;
next	1.37;

1.37
date	2002.12.28.05.15.58;	author deischen;	state Exp;
branches;
next	1.36;

1.36
date	2002.12.26.08.21.49;	author nork;	state Exp;
branches;
next	1.35;

1.35
date	2002.12.01.19.10.48;	author deischen;	state Exp;
branches;
next	1.34;

1.34
date	2002.12.01.10.03.51;	author knu;	state Exp;
branches;
next	1.33;

1.33
date	2002.12.01.10.00.01;	author knu;	state Exp;
branches;
next	1.32;

1.32
date	2002.09.25.20.59.08;	author naddy;	state Exp;
branches;
next	1.31;

1.31
date	2002.07.21.20.38.38;	author deischen;	state Exp;
branches;
next	1.30;

1.30
date	2002.02.12.00.24.23;	author deischen;	state Exp;
branches;
next	1.29;

1.29
date	2002.02.10.00.57.45;	author deischen;	state Exp;
branches;
next	1.28;

1.28
date	2002.02.09.08.40.26;	author kevlo;	state Exp;
branches;
next	1.27;

1.27
date	2002.01.29.11.24.08;	author knu;	state Exp;
branches;
next	1.26;

1.26
date	2000.12.19.16.45.51;	author deischen;	state Exp;
branches;
next	1.25;

1.25
date	2000.11.03.10.03.09;	author asami;	state Exp;
branches;
next	1.24;

1.24
date	2000.11.01.18.56.57;	author deischen;	state Exp;
branches;
next	1.23;

1.23
date	2000.04.12.06.18.45;	author obrien;	state Exp;
branches;
next	1.22;

1.22
date	99.11.09.12.33.11;	author deischen;	state Exp;
branches;
next	1.21;

1.21
date	99.08.25.06.34.39;	author obrien;	state Exp;
branches;
next	1.20;

1.20
date	99.08.22.18.58.49;	author mharo;	state Exp;
branches;
next	1.19;

1.19
date	99.07.01.14.42.41;	author sheldonh;	state Exp;
branches;
next	1.18;

1.18
date	99.06.24.11.10.37;	author sheldonh;	state Exp;
branches;
next	1.17;

1.17
date	99.03.02.21.25.09;	author billf;	state Exp;
branches;
next	1.16;

1.16
date	98.01.18.15.12.38;	author steve;	state Exp;
branches;
next	1.15;

1.15
date	98.01.18.12.09.58;	author asami;	state Exp;
branches;
next	1.14;

1.14
date	98.01.18.09.08.33;	author steve;	state Exp;
branches;
next	1.13;

1.13
date	97.10.03.09.56.56;	author asami;	state Exp;
branches;
next	1.12;

1.12
date	97.09.25.08.47.35;	author asami;	state Exp;
branches;
next	1.11;

1.11
date	97.08.11.18.02.08;	author fenner;	state Exp;
branches;
next	1.10;

1.10
date	96.12.07.13.28.30;	author asami;	state Exp;
branches;
next	1.9;

1.9
date	96.12.07.13.03.20;	author asami;	state Exp;
branches;
next	1.8;

1.8
date	96.11.12.02.18.23;	author obrien;	state Exp;
branches;
next	1.7;

1.7
date	96.04.12.08.33.25;	author asami;	state Exp;
branches;
next	1.6;

1.6
date	95.11.22.13.12.46;	author asami;	state Exp;
branches;
next	1.5;

1.5
date	95.05.13.15.08.45;	author jmacd;	state Exp;
branches;
next	1.4;

1.4
date	95.04.24.11.29.14;	author asami;	state Exp;
branches;
next	1.3;

1.3
date	95.04.15.05.44.36;	author asami;	state Exp;
branches;
next	1.2;

1.2
date	95.04.01.12.46.53;	author jkh;	state Exp;
branches;
next	1.1;

1.1
date	95.03.28.04.41.42;	author hsu;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	95.03.28.04.41.43;	author hsu;	state Exp;
branches;
next	;


desc
@@


1.70
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313824
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: hsu, nils@@guru.ims.uni-stuttgart.de, maurice@@serc.rmit.edu.au
# $FreeBSD: head/lang/gnat/Makefile 313824 2013-03-10 12:44:26Z crees $
#
# Note:
# - FreeBSD tasking libraries are included in the stock source.
# - The default names of a number of binaries have been altered to avoid
#   conflict with other gcc based products. Standard names can be provided
#   using symbolic links.

PORTNAME=		gnat
PORTVERSION=		2010
CATEGORIES=		lang
MASTER_SITES=		${MASTER_SITE_LOCAL:S/$/:boot/}
MASTER_SITE_SUBDIR=	deischen/gcc/:boot
DISTFILES=		${gcc_srcfile}:gcc ${gnat_srcfile}:gnat

MAINTAINER=		deischen@@FreeBSD.org
COMMENT=		The GNU Ada Compiler system

LIB_DEPENDS=		gmp.10:${PORTSDIR}/math/gmp \
			mpfr.4:${PORTSDIR}/math/mpfr

LICENSE_COMB=	multi
LICENSE=	GPLv3 LGPL3

ONLY_FOR_ARCHS=		i386

USE_GMAKE=		yes
USES=			bison
USE_ICONV=		yes
USE_PERL5_BUILD=	yes

WRKSRC=			${WRKDIR}/build

MAN1=			gnatgcc.1 gnatcpp.1 gnatgcov.1
MAN7=			fsf-funding.7 gfdl.7 gpl.7
MAN7=			${fsf_mans:S/$/${fsf_suffix}.7/}

.include <bsd.port.pre.mk>

gcc_version=		4.3.6
fsf_mans=		fsf-funding gfdl gpl
fsf_suffix=		-${PORTNAME}
gnuhost=		${CONFIGURE_TARGET}
targlib=		${PREFIX}/lib/gcc-gnat
targlibexec=		${PREFIX}/libexec/gcc-gnat
gcc_srcdir=		gcc-4_3-branch-src
gnat_srcdir=		gnat-gpl-2010-src
gcc_wrksrc=		${WRKDIR}/${gcc_srcdir}
gnat_wrksrc=		${WRKDIR}/${gnat_srcdir}
# http://libre.adacore.com/:gcc
# http://libre.adacore.com/:gnat
gcc_srcfile=		gcc-4_3-branch-rev160200-src.tgz
gnat_srcfile=		gnat-gpl-2010-src.tgz

PATCH_WRKSRC=		${gcc_wrksrc}

GNU_CONFIGURE=		yes
CONFIGURE_SCRIPT=	../${gcc_srcdir}/configure
CONFIGURE_ARGS=		--enable-languages="c,ada" \
			--program-prefix=gnat \
			--disable-nls \
			--with-system-zlib \
			--with-libiconv-prefix=${LOCALBASE} \
			--libdir=${targlib} \
			--libexecdir=${targlibexec} \
			--disable-libada
COMPILE_DATA=		MAKEINFO=${FALSE}
MAKE_ENV+=		PTHREAD_LIBS=${PTHREAD_LIBS}

PLIST_SUB=		GNUHOST=${gnuhost} GCC_VERSION=${gcc_version} \
			LIBRARY_VERSION=${LIBRARY_VERSION}

# You need a compiler who calls an existing GNAT compiler (3.15 or greater).
# If you have one, point GNATGCC at it.  By default, we'll look for one in
# the path.  If we can't find one, we'll fetch a distfile containing
# a minimum (still pretty large) compiler toolset and use that to build.

GNATGCC!=		if ${WHICH} gnatgcc > /dev/null 2>&1; then \
				${ECHO_CMD} "`${WHICH} gnatgcc`"; \
			else \
				${ECHO_CMD} ""; \
			fi
GNATBIND!=		if ${WHICH} gnatbind > /dev/null 2>&1; then \
				${ECHO_CMD} "`${WHICH} gnatbind`"; \
			else \
				${ECHO_CMD} ""; \
			fi

.if !empty(GNATGCC) && !empty(GNATBIND)
have_boot!=		if [ -x ${GNATGCC} -a -x ${GNATBIND} ]; then \
				${ECHO_CMD} "$$PATH"; \
			else \
				${ECHO_CMD} ""; \
			fi
.else
have_boot=
.endif

.if empty(have_boot)
DISTFILES+=		gnat-2005-boot.tgz:boot
BUILD_DEPENDS+=		${LOCALBASE}/lib/compat/libc.so.6:${PORTSDIR}/misc/compat6x
# Warning!  You need the trailing slash on GCC_EXEC_PREFIX.
COMPILE_DATA+=		GCC_EXEC_PREFIX=${WRKDIR}/adaboot/lib/gcc/ \
			ADA_INCLUDE_PATH=${WRKDIR}/adaboot/lib/gcc/adainclude \
			ADA_OBJECTS_PATH=${WRKDIR}/adaboot/lib/gcc/adalib
GNATGCC=		gnatgcc
have_boot=		${WRKDIR}/adaboot/bin:${WRKDIR}/adaboot/libexec/gcc:${PATH}
.endif

# Make sure we use the Ada-aware gcc compiler.
CC=			${GNATGCC}
CONFIGURE_ENV+=		${COMPILE_DATA} CC=${GNATGCC} PATH=${have_boot}
MAKE_ENV+=		${COMPILE_DATA} PATH=${have_boot}

# Shared library handling
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+=	--enable-shared
USE_LDCONFIG=	${PREFIX}/lib ${targlib}
LIBRARY_VERSION=	2010
PLIST_SUB+=		SHAREDLIB=""
.else
CONFIGURE_ARGS+=	--disable-shared
PLIST_SUB+=		SHAREDLIB="@@comment "
.endif

# Check for GNAT sources.
.if !exists(${DISTDIR}/${gnat_srcfile}) && !defined(PACKAGE_BUILDING)
IGNORE=	you must fetch the source distribution manually. Please access http://libre.adacore.com/ with a web browser and download the source files: ${gnat_srcfile} ${gcc_srcfile} placing them in ${DISTDIR}
.endif

pre-patch:
	@@${ECHO} "===>  Applying FreeBSD ports tree patches for gcc34."
	@@${ECHO} "===>  Applying GNAT supplied patches for gcc43."
	@@( cd ${gcc_wrksrc}/; \
	    ${CAT} ${gnat_wrksrc}/src/gcc-43.dif | ${PATCH} ${PATCH_ARGS} )
	@@${ECHO} "===>  Moving GNAT compiler sources into GCC tree."
	@@( ${MV} ${gnat_wrksrc}/src/ada ${gcc_wrksrc}/gcc )

pre-configure:
	@@${MKDIR} ${WRKSRC}
	cd ${gcc_wrksrc} ; contrib/gcc_update --touch
	${RM} -f ${gcc_wrksrc}/gcc/*/*.info*
	@@${TOUCH} ${TOUCH_FLAGS} ${gcc_wrksrc}/gcc/cstamp-h.in

do-build:
	(cd ${WRKSRC}; \
	    PATH=${have_boot} \
	    ${SETENV} ${COMPILE_DATA} ${GMAKE} CC=${CC} )
	(cd ${WRKSRC}; \
	    ${SETENV} ${MAKE_ENV} \
	    ${GMAKE} PTHREAD_LIBS=${PTHREAD_LIBS} bootstrap-lean )
	(cd ${WRKSRC}; \
	    ${SETENV} ${MAKE_ENV} \
	    ${GMAKE} -C gcc PTHREAD_LIBS=${PTHREAD_LIBS} gnatlib )
.if defined(WANT_SHAREDLIBS)
	(cd ${WRKSRC}; \
	    ${SETENV} ${MAKE_ENV} \
	    ${GMAKE} -C gcc PTHREAD_LIBS=${PTHREAD_LIBS} gnatlib-shared )
.endif
	(cd ${WRKSRC}; \
	    ${SETENV} ${MAKE_ENV} \
	    ${GMAKE} -C gcc PTHREAD_LIBS=${PTHREAD_LIBS} gnattools )

post-install:
	${INSTALL_SCRIPT} ${gcc_wrksrc}/gcc/ada/gnathtml.pl ${PREFIX}/bin
	@@(for prog in \
	    ${PREFIX}/bin/gnat \
	    ${PREFIX}/bin/gnatbind \
	    ${PREFIX}/bin/gnatchop \
	    ${PREFIX}/bin/gnatclean \
	    ${PREFIX}/bin/gnatcpp \
	    ${PREFIX}/bin/gnatfind \
	    ${PREFIX}/bin/gnatgcc \
	    ${PREFIX}/bin/gnatgcov \
	    ${PREFIX}/bin/gnatkr \
	    ${PREFIX}/bin/gnatlink \
	    ${PREFIX}/bin/gnatls \
	    ${PREFIX}/bin/gnatmake \
	    ${PREFIX}/bin/gnatname \
	    ${PREFIX}/bin/gnatprep \
	    ${PREFIX}/bin/gnatxref \
	    ${PREFIX}/bin/${gnuhost}-gcc-${gcc_version} \
	    ${PREFIX}/bin/${gnuhost}-gnatgcc \
	    ${targlibexec}/${gnuhost}/${gcc_version}/cc1 \
	    ${targlibexec}/${gnuhost}/${gcc_version}/gnat1 \
	    ${targlibexec}/${gnuhost}/${gcc_version}/collect2 ; \
	 do \
	    if [ -x $$prog ]; then \
		${STRIP_CMD} $$prog ; \
	    fi \
	done)
	@@(${CHOWN} -R root:wheel ${targlib})
	@@(${CHOWN} -R root:wheel ${targlibexec})
	# This empty fortran directory is making trouble.
	${RM} -rf ${PREFIX}/lib/gcc-gnat/gcc/${CONFIGURE_TARGET}/${gcc_version}/finclude
	# Version FSF funding and licensing manuals. XXX Fix before it happens!
	for mp in ${fsf_mans}; do \
	    ${MV} -f ${PREFIX}/man/man7/$${mp}.7 \
	        ${PREFIX}/man/man7/$${mp}${fsf_suffix}.7; \
	done
	# Prepare a temporary list of installed libraries and include files.
	${RM} -f ${WRKDIR}/PLIST.lib
	for d in lib/gcc-gnat libexec/gcc-gnat/gcc/${CONFIGURE_TARGET}/; do \
	    cd ${PREFIX}; \
	    if [ -d $${d} ]; then \
	        ${FIND} $${d} -type f -o -type l >>${WRKDIR}/PLIST.lib; \
	        ${FIND} $${d} -type d | ${SORT} -r | ${SED} -e 's/^/@@dirrm /g' >>${WRKDIR}/PLIST.lib; \
	    fi; \
	done
	# Following directories should be removed on deinstall if empty. Add them to the temporary list.
	${ECHO_CMD} "@@unexec ${RMDIR} %D/libexec/gcc-gnat/gcc/${CONFIGURE_TARGET} 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib
	${ECHO_CMD} "@@unexec ${RMDIR} %D/libexec/gcc-gnat/gcc 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib
	${ECHO_CMD} "@@unexec ${RMDIR} %D/libexec/gcc-gnat 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib
	# Insert the temporary list in the packing list.
	cd ${WRKDIR}; ${SED} -i -e "/PLIST.lib/ r PLIST.lib" ${TMPPLIST}

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


1.69
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313635
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/gnat/Makefile 313635 2013-03-08 11:32:11Z bapt $
d10 1
@


1.68
log
@Switch exporter over
@
text
@d1 2
a2 7
# New ports collection makefile for:	GNU Ada gnat
# Date created:		Sat Mar 18 02:16:45 1995
# Whom:			hsu
# Porter (original):	nils@@guru.ims.uni-stuttgart.de
# Porter (version 3):	maurice@@serc.rmit.edu.au
#
# $FreeBSD: head/lang/gnat/Makefile 300896 2012-07-14 13:54:48Z beat $
a9 1
PORTNAME=		gnat
d28 1
a28 1
USE_BISON=		build
@


1.67
log
@Fix a typo and pet portlint.

Hat:		portmgr
Feature safe:	yes
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.66
log
@- Use canonical format for FreeBSD.org MAINTAINER addresses
- Remove obsolete MD5 checksum while I'm here

PR:		ports/152844
Submitted by:	sunpoet (myself)
Approved by:	miwi (with portmgr hat)
@
text
@d134 1
a134 1
IGNORE=	You must fetch the source distribution manually. Please access http://libre.adacore.com/ with a web browsern and download the source files: ${gnat_srcfile} ${gcc_srcfile} placing them in ${DISTDIR}.
@


1.65
log
@Patch from sahil:

We don't need to set PORTREVISION to 0 since that is the
default, and ...

Fix MASTER_SITES:n usage so that the ":n" postfix is added
to *all* elements of MASTER_SITE_LOCAL, not just the final
one.
@
text
@d22 1
a22 1
MAINTAINER=		deischen@@freebsd.org
@


1.64
log
@Update to the 2010 version of GNAT-GPL.
@
text
@a16 1
PORTREVISION=	        0
d18 1
a18 1
MASTER_SITES=		${MASTER_SITE_LOCAL}:boot
@


1.63
log
@Chase mpfr library and bump PORTREVISION.
@
text
@d16 2
a17 2
PORTVERSION=		2009
PORTREVISION=	4
d23 1
a23 1
MAINTAINER=		eischen@@vigrid.com
d29 3
d47 1
a47 1
gcc_version=		4.3.4
d53 2
a54 2
gcc_srcdir=		gcc-43-src
gnat_srcdir=		gnat-gpl-2009-src
d59 2
a60 2
gcc_srcfile=		gcc-43-branch-20090519-src.tgz
gnat_srcfile=		gnat-gpl-2009-src.tgz
a122 1
WANT_SHAREDLIBS=yes
d126 1
a126 1
LIBRARY_VERSION=	2009
d135 1
a135 1
IGNORE=	Because of licensing and registration restrictions, you must fetch the source distribution manually. Please access http://libre.adacore.com/ with a web browser, register (it's free), and log in.  Download the source files: ${gnat_srcfile} ${gcc_srcfile} and place them in ${DISTDIR}.
d142 1
a142 2
	    ${CAT} ${gnat_wrksrc}/src/gcc-43.dif \
		| ${AWK} ' { sub("\r", ""); print $0 }' | ${PATCH} ${PATCH_ARGS} )
@


1.62
log
@Convert LDCONFIG_DIRS to USE_LDCONFIG.

PR:		based on ports/146365
Submitted by:	Alex Kozlov <spam at rm-rf.kiev.ua>
Approved by:	maintainers timeout (two weeks)
@
text
@d17 1
a17 1
PORTREVISION=	3
d27 1
a27 1
			mpfr.3:${PORTSDIR}/math/mpfr
@


1.61
log
@Switch to use newer GMP version.

PR:		ports/144487
Submitted by:	ale
Approved by:	portmgr (-exp run by erwin)
@
text
@d17 1
a17 1
PORTREVISION=	2
d123 1
a123 2
USE_LDCONFIG=		yes
LDCONFIG_DIRS=		%%PREFIX%%/lib ${targlib}
@


1.60
log
@Mark this as only for i386.

Noticed by:	mark at coreland dot ath dot cx
@
text
@d17 1
a17 1
PORTREVISION=		1
d26 1
a26 1
LIB_DEPENDS=		gmp.8:${PORTSDIR}/math/libgmp4 \
@


1.59
log
@Update to the 2009 gpl edition.

Borrow some makefile foo from lang/gnat-gcc43.
@
text
@d29 2
@


1.58
log
@- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
@
text
@d10 1
a10 2
# - FreeBSD tasking libraries created by Dan Eischen have been incorporated
#   into this edition
d15 5
a19 5
PORTNAME=	gnat
PORTVERSION=	2006
PORTREVISION=	2
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_LOCAL}:boot
d21 1
a21 1
DISTFILES=	${GCC_SRCFILE}:gcc ${GNAT_SRCFILE}:gnat
d23 2
a24 2
MAINTAINER=	eischen@@vigrid.com
COMMENT=	The GNU Ada Compiler system
d26 13
a38 5
CONFLICTS=	gcc-3.4.*
USE_GMAKE=	yes
USE_BISON=	build
USE_ICONV=	yes
USE_PERL5_RUN=	yes
d42 10
a51 5
WRKSRC=		${WRKDIR}/gcc-34
GNATNAME=	gnat-gpl-2006-src
GNUHOST=	${ARCH}-portbld-freebsd${OSREL}
GCC_VERSION=	3.4.6

d54 2
a55 2
GCC_SRCFILE=	gcc-3.4.6-src.tgz
GNAT_SRCFILE=	gnat-gpl-2006-src.tgz
d57 1
a57 2
PLIST_SUB=	GNUHOST=${GNUHOST} GCC_VERSION=${GCC_VERSION} \
		LIBRARY_VERSION=${LIBRARY_VERSION}
d59 2
a60 4
# Make no mistake about what host/target we are building on/for.
# This package does not support cross-compiling, and this fixes
# problems with bsd.port.mk files from earlier FreeBSD 3.x releases.
CONFIGURE_TARGET=	${GNUHOST}
d65 6
a70 1
			--with-libiconv-prefix=${LOCALBASE}
d72 2
a73 5
TARGLIB=	${PREFIX}/lib/gcc/${GNUHOST}/${GCC_VERSION}
GNU_CONFIGURE=	yes
MAN1=		gnatgcc.1 gnatcpp.1 gnatgcov.1
MAN7=		fsf-funding.7 gfdl.7 gpl.7
NO_PACKAGE=	This version of GNAT produces GPL-tainted executables
d80 10
a89 17
GNATGCC!=	if ${WHICH} adagcc > /dev/null 2>&1; then \
			${ECHO_CMD} "`${WHICH} adagcc`"; \
		else \
			${ECHO_CMD} ""; \
		fi
GNATBIND!=	if ${WHICH} gnatbind > /dev/null 2>&1; then \
			${ECHO_CMD} "`${WHICH} gnatbind`"; \
		else \
			${ECHO_CMD} ""; \
		fi
.if empty(GNATGCC)
GNATGCC!=	if ${WHICH} gnatgcc > /dev/null 2>&1; then \
			${ECHO_CMD} "`${WHICH} gnatgcc`"; \
		else \
			${ECHO_CMD} ""; \
		fi
.endif
d92 5
a96 5
have_boot!=	if [ -x ${GNATGCC} -a -x ${GNATBIND} ]; then \
			${ECHO_CMD} "$$PATH"; \
		else \
			${ECHO_CMD} ""; \
		fi
d102 2
a103 3
ONLY_FOR_ARCHS=	i386
DISTFILES+=	gnat-3.15p-boot.tar.gz:boot
BUILD_DEPENDS+=	${LOCALBASE}/lib/compat/libc.so.4:${PORTSDIR}/misc/compat4x
d105 5
a109 5
COMPILEDATA=	GCC_EXEC_PREFIX=${WRKDIR}/adaboot/lib/gcc-lib/ \
		ADA_INCLUDE_PATH=${WRKDIR}/adaboot/lib/gcc-lib/adainclude \
		ADA_OBJECTS_PATH=${WRKDIR}/adaboot/lib/gcc-lib/adalib
have_boot=	${WRKDIR}/adaboot/bin:${PATH}
GNATGCC=	adagcc
d113 3
a115 2
CC=		${GNATGCC}
CONFIGURE_ENV=	${COMPILE_DATA} PATH=${have_boot}
d118 1
d122 2
a123 2
LDCONFIG_DIRS=		%%PREFIX%%/lib ${TARGLIB}
LIBRARY_VERSION=	2006
d131 2
a132 10
.if !exists(${DISTDIR}/${GNAT_SRCFILE}) && !defined(PACKAGE_BUILDING)
ECHO_MSG=/usr/bin/printf
IGNORE=	:\n\
Because of licensing and registration restrictions, you must fetch the\n\
source distribution manually.  Please access http://libre.adacore.com/\n\
with a web browser, register (it's free), and log in.  Download the source\n\
files:\n\
\t${GNAT_SRCFILE}\n\
\t${GCC_SRCFILE}\n\
and place them in ${DISTDIR}.\n
d137 4
a140 7
	@@( cd ${WRKSRC}; \
	    for i in ${PORTSDIR}/lang/gcc34/files/patch-*; do \
		${PATCH} ${PATCH_ARGS} < $$i; \
	    done )
	@@${ECHO} "===>  Applying GNAT supplied patches for gcc34."
	@@( cd ${WRKSRC}; \
	    ${PATCH} ${PATCH_ARGS} < ${WRKDIR}/${GNATNAME}/src/gcc-34.dif )
d142 1
a142 9
	@@( ${MV} ${WRKDIR}/${GNATNAME}/src/ada ${WRKDIR}/gcc-34/gcc )

# Copy any additional files required into the correct locations, and also
# remove .orig files leftover from patching so they won't get installed.
post-patch:
	@@(cd ${FILESDIR}; \
	    for i in *.adb *.ads ; do \
		${CP} $$i ${WRKSRC}/gcc/ada; \
	    done )
d145 4
a148 1
	@@${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/gcc/cstamp-h.in
a149 12
#
# Can't get this to work with default bsd.port.mk do-configure target.
#
do-configure:
	@@(cd ${WRKSRC} && \
	    ${SETENV} ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})

#
# We intentionally override CFLAGS because the build procedure is explicitly
# spelled out in gnat-3.13p-src/src/README.BUILD.  Remove CFLAGS from the
# do-build target at your own risk.
#
d153 1
a153 1
	    ${SETENV} ${COMPILEDATA} ${GMAKE} CC=${CC} )
d156 1
a156 1
	    ${GMAKE} PTHREAD_LIBS=${PTHREAD_LIBS} bootstrap )
a168 5
do-install:
	(cd ${WRKSRC}; \
	    ${SETENV} ${MAKE_ENV} ${GMAKE} ${INSTALL_TARGET} )
	${INSTALL_SCRIPT} ${WRKSRC}/gcc/ada/gnathtml.pl ${PREFIX}/bin

d170 1
a173 1
	    ${PREFIX}/bin/gnatbl \
d187 5
a191 5
	    ${PREFIX}/bin/${GNUHOST}-gcc-${GCC_VERSION} \
	    ${PREFIX}/bin/${GNUHOST}-gnatgcc \
	    ${PREFIX}/libexec/gcc/${GNUHOST}/${GCC_VERSION}/cc1 \
	    ${PREFIX}/libexec/gcc/${GNUHOST}/${GCC_VERSION}/gnat1 \
	    ${PREFIX}/libexec/gcc/${GNUHOST}/${GCC_VERSION}/collect2 ; \
d197 24
a220 5
	@@(chown -R root:wheel ${TARGLIB})
.if defined(WANT_SHAREDLIBS)
	${MV} -f ${PREFIX}/lib/libgcc_s.* ${TARGLIB}
.endif
	${RM} -f ${PREFIX}/lib/libiberty.a
@


1.57
log
@Migration from bison 1.x to 2.x

PR:		117086
Tested by:	-exp runs
@
text
@d116 1
a116 1
INSTALLS_SHLIB=		yes
@


1.56
log
@Remove always-false/true conditions based on OSVERSION 500000
@
text
@d18 1
a18 1
PORTREVISION=	1
d29 1
a29 1
USE_BISON=	yes
@


1.55
log
@- Define USE_ICONV properly. This fixes textproc/words build, which failed
  with
  /libexec/ld-elf.so.1: Shared object "libiconv.so.3" not found, required by "gnatgcc"

PR:		ports/108138
Submitted by:	rafan
Approved by:	Daniel Eischen <eischen at vigrid.com> (maintainer)
@
text
@a99 1
.if ${OSVERSION} >= 500000
a100 1
.endif
@


1.54
log
@Don't quote NO_PACKAGE message.
@
text
@d18 1
d30 1
@


1.53
log
@Update to gnat GPL 2006.
@
text
@d60 1
a60 1
NO_PACKAGE=	"This version of GNAT produces GPL-tainted executables"
@


1.52
log
@The libc.so.4 is only needed when building it, so add a build-dependency
on {LOCALBASE}/compat/lib/libc.so.4 instaed of a lib-dependency on c.4
@
text
@d17 1
a17 1
PORTVERSION=	2005
d34 1
a34 1
GNATNAME=	gnat-gpl-2005-src
d36 1
a36 1
GCC_VERSION=	3.4.5
d40 2
a41 2
GCC_SRCFILE=	gcc-3.4.5-20050524-src.tgz
GNAT_SRCFILE=	gnat-gpl-2005-src.tgz
d118 1
a118 1
LIBRARY_VERSION=	GPL2005
d165 2
a166 1
	@@(cd ${WRKSRC} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
d176 1
a176 1
	    ${COMPILEDATA} ${GMAKE} CC=${CC} )
d178 1
d181 1
d185 1
d189 1
d194 1
a194 1
	    ${GMAKE} ${INSTALL_TARGET} )
@


1.51
log
@After unbreaking, also fixing pkg-plist and PERL5 dependency for running.
@
text
@d99 1
a99 1
LIB_DEPENDS+=	c.4:${PORTSDIR}/misc/compat4x
@


1.50
log
@Add dependency on bison
Make dependency on c.4 a lib_depends instead of a build_depends.
@
text
@d29 1
a61 4
.if ${PORTOBJFORMAT} == "aout"
BROKEN=	"Cannot build for aout."
.endif

@


1.49
log
@When using the bootstrap ada distfile, correctly set the path so it
picks it up.
@
text
@d28 1
d102 1
a102 1
BUILD_DEPENDS+=	c.4:${PORTSDIR}/misc/compat4x
@


1.48
log
@Fix a typo (missing space) when building without shared libraries.
@
text
@d107 1
a107 1
have_boot=	${WRKDIR}/adaboot:${PATH}
@


1.47
log
@Update the antiquated version of the GNAT compiler to the GPL-2005
version.

Note that this version now produces executables that are
covered by the GPL as opposed to the previous version which was
covered by the modified GPL.

Also note that the GNAT sources in the stock GCC-4 tree are
not under this restriction.  A new port based on the sources
in GCC-4 will come when I get the time.
@
text
@d124 1
a124 1
PLIST_SUB+=		SHAREDLIB="@@comment"
@


1.46
log
@Use the right syntax for a ${MASTER_SITE_foo} with a distfile group.
@
text
@a0 1

d2 1
a2 1
# Date created:         Sat Mar 18 02:16:45 1995
d17 1
a17 2
PORTVERSION=	3.15p
PORTREVISION=	1
d19 3
a21 7
MASTER_SITES=	ftp://cs.nyu.edu/pub/gnat/${PORTVERSION}/:gnat \
		http://libre.act-europe.fr/GNAT/${PORTVERSION}/:gnat \
		${MASTER_SITE_LOCAL:S/$/:boot/} \
		ftp://ftp.gnu.org/pub/gnu/gcc/:gcc
MASTER_SITE_SUBDIR=	gcc/:gcc deischen/gcc/:boot
DISTFILES=	${GNATNAME}.tgz:gnat \
		gcc-2.8.1.tar.gz:gcc
d26 3
d31 9
a39 4
WRKSRC=		${WRKDIR}/gcc-2.8.1
GNATNAME=	gnat-${PORTVERSION}-src
GNUHOST=	${ARCH}-unknown-freebsd${OSREL}
GCC_VERSION=	2.8.1
d42 1
a42 5
		LIBRARY_VERSION=${LIBRARY_VERSION} \
		SHARED_MAJOR=${SHARED_MAJOR}
.if ${OSVERSION} < 600011
PLIST_FILES+=	lib/gcc-lib/${GNUHOST}/${GCC_VERSION}/include/math.h
.endif
d47 8
a54 2
CONFIGURE_TARGET=	--host=${GNUHOST} --target=${GNUHOST}
CONFIGURE_ARGS=		--program-prefix=ada
d56 7
a62 2
USE_GMAKE=	yes
MAN1=		adagcc.1 cccp.1
d64 3
a66 3
# You need a compiler who calls an existing GNAT compiler (3.12 or greater).
# If you have one, point CC at it.  By default, we'll look for one in the
# obvious places.  If we can't find one, we'll fetch a distfile containing
d69 2
a70 4
# For the GNAT compiler, we look in ${PREFIX} and in ${LOCALBASE}.
.ifdef PREFIX
have_boot!=	if [ -x ${PREFIX}/bin/adagcc -a -x ${PREFIX}/bin/gnatbind ]; then \
			${ECHO_CMD} "${PREFIX}/bin"; \
d74 8
a81 6
.else
have_boot=
.endif
.if empty(have_boot)
have_boot!=	if [ -x ${LOCALBASE}/bin/adagcc -a -x ${LOCALBASE}/bin/gnatbind ]; then \
			${ECHO_CMD} "${LOCALBASE}/bin"; \
d87 3
a89 5
#
# Check for attempts to cross-compile or build an aout GNAT compiler.
.if empty(have_boot)
have_boot!=	if [ ${PORTOBJFORMAT} = "aout" ]; then \
			${ECHO_CMD} "borken for aout"; \
d94 1
a94 13
have_boot!=	if [ `file ${have_boot}/adagcc | awk ' { print $$2 }'` = "ELF" ]; then \
			if [ ${PORTOBJFORMAT} = "elf" ]; then \
				${ECHO_CMD} ${have_boot}; \
			else \
				${ECHO_CMD} "borken for aout"; \
			fi \
		else \
			${ECHO_CMD} "borken for aout"; \
		fi
.endif

.if ${have_boot} == "borken for aout"
BROKEN=	"Cannot build with or for an aout compiler."
d101 1
a101 1
LIB_DEPENDS+=	c.4:${PORTSDIR}/misc/compat4x
d107 2
a108 1
have_boot=	${WRKDIR}/adaboot
d112 2
a113 2
CC =	adagcc
CONFIGURE_ENV=	${COMPILE_DATA} PATH=${have_boot}/bin:$$PATH
d115 7
a121 3
.if OVERRIDE_CFLAGS
GNATCFLAGS=	${CFLAGS}
GNATLIBCFLAGS=	${CFLAGS}
d123 2
a124 2
GNATCFLAGS=	-O2
GNATLIBCFLAGS=	-O2
d127 11
a137 11
# Shared library handling
LIBRARY_VERSION=	3.15
SHARED_MAJOR=	1

# Account for signal set changes
.if ${OSVERSION} > 400010
SIGSET_WORDS=	4
SIGACTION=	new_struct_sigaction
.else
SIGSET_WORDS=	1
SIGACTION=	old_struct_sigaction
d141 3
a143 6
	@@if [ ! -f ${WRKSRC}/config/i386/freebsd-aout.h ]; then \
	 	${MV} ${WRKSRC}/config/i386/freebsd.h ${WRKSRC}/config/i386/freebsd-aout.h; \
		${MV} ${WRKSRC}/config/i386/freebsd-elf.h ${WRKSRC}/config/i386/freebsd.h; \
	fi
	@@${ECHO} "===>  Applying FreeBSD patches to gcc for ${DISTNAME}"
	-( for i in ${PORTSDIR}/lang/gcc28/files/patch-*; do \
d146 3
a148 2
	@@${ECHO} "===>  Patching gcc for ${GNATNAME}"
	-( ${PATCH} ${PATCH_ARGS} < ${WRKDIR}/${GNATNAME}/src/gcc-281.dif )
d150 1
a150 3
	-( ${MV} ${WRKDIR}/${GNATNAME}/src/ada ${WRKDIR}/gcc-2.8.1 )
	@@${ECHO} "===>  Making way for FreeBSD GNAT support files"
	-( ${RM} -f ${WRKSRC}/ada/[45]f* )
d155 1
a155 1
	(cd ${FILESDIR}; \
d157 1
a157 1
		${CP} $$i ${WRKSRC}/ada; \
a158 4
.if ${OSVERSION} >= 500016
	( ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/freebsd5x-patch-01 )
.endif
	${RM} ${WRKDIR}/gnat-3.15p-src/examples/*.orig
d161 1
a161 13
	@@(cd ${WRKSRC}/config/${ARCH}/ ; \
	MAJ=`/sbin/sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
	${MV} freebsd.h freebsd.h.in ; \
	${SED} -e "s:__FreeBSD__=[0-9]*:__FreeBSD__=$${MAJ}:" freebsd.h.in \
		>freebsd.h)
	@@(cd ${WRKSRC}/ada/ ; \
	${MV} 5fosinte.ads 5fosinte.ads.in ; \
	${SED} -e "s:__FreeBSD__sigset_words:${SIGSET_WORDS}:" \
		-e "s:__FreeBSD__sigaction:${SIGACTION}:" 5fosinte.ads.in \
		> 5fosinte.ads)
	@@${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/cstamp-h.in
	@@(cd ${WRKSRC}/ada; \
	   ${TOUCH} treeprs.ads a-[es]info.h nmake.ad[bs])
d176 2
a177 2
	    PATH=${have_boot}/bin:$$PATH \
	    ${COMPILEDATA} ${GMAKE} CC="${CC}" OLDCC="adagcc" CFLAGS="${GNATCFLAGS}" LANGUAGES="c ada gcov" )
d179 1
a179 1
	    ${GMAKE} CFLAGS="${GNATCFLAGS}" LANGUAGES="c ada gcov" bootstrap )
d181 2
a182 6
	    ${GMAKE} CFLAGS="${GNATCFLAGS}" GNATLIBCFLAGS="-fPIC ${GNATLIBCFLAGS}" \
	    soext=.so.${SHARED_MAJOR} LIBRARY_VERSION=${LIBRARY_VERSION} \
	    gnatlib-shared )
	${MV} ${WRKSRC}/ada/rts/lib*-${LIBRARY_VERSION}.so.${SHARED_MAJOR} \
		${WRKSRC}/ada
	${RM} ${WRKSRC}/stamp-gnatlib2
d184 2
a185 1
	    ${GMAKE} CFLAGS="${GNATCFLAGS}" GNATLIBCFLAGS="${GNATLIBCFLAGS}" gnatlib )
d187 1
a187 1
	    ${GMAKE} CFLAGS="${GNATCFLAGS}" gnattools )
d191 2
a192 17
	    ${GMAKE} CC="${CC}" LANGUAGES="c ada gcov" ${INSTALL_TARGET} )
	${INSTALL_DATA} \
	    ${WRKSRC}/ada/libgnat-${LIBRARY_VERSION}.so.${SHARED_MAJOR} \
	    ${PREFIX}/lib
	${INSTALL_DATA} \
	    ${WRKSRC}/ada/libgnarl-${LIBRARY_VERSION}.so.${SHARED_MAJOR} \
	    ${PREFIX}/lib
	${LN} -s ${PREFIX}/lib/libgnat-${LIBRARY_VERSION}.so.${SHARED_MAJOR} \
	    ${PREFIX}/lib/gcc-lib/${GNUHOST}/${GCC_VERSION}/adalib/libgnat.so
	${LN} -s ${PREFIX}/lib/libgnarl-${LIBRARY_VERSION}.so.${SHARED_MAJOR} \
	    ${PREFIX}/lib/gcc-lib/${GNUHOST}/${GCC_VERSION}/adalib/libgnarl.so
	${INSTALL_SCRIPT} ${WRKSRC}/ada/gnathtml.pl ${PREFIX}/bin
.ifndef(NOPORTDOCS)
	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} \
	    ${WRKDIR}/gnat-3.15p-src/examples/* ${EXAMPLESDIR}
.endif
d195 1
a195 2
	@@(for prog in ${PREFIX}/bin/adagcc \
	    ${PREFIX}/bin/adagcov \
d200 2
d203 2
d209 1
a209 1
	    ${PREFIX}/bin/gnatmem \
a210 2
	    ${PREFIX}/bin/gnatpsta \
	    ${PREFIX}/bin/gnatpsys \
d212 6
a217 4
	    ${PREFIX}/bin/${GNUHOST}-gcc \
	    ${PREFIX}/lib/gcc-lib/${GNUHOST}/${GCC_VERSION}/cc1 \
	    ${PREFIX}/lib/gcc-lib/${GNUHOST}/${GCC_VERSION}/gnat1 \
	    ${PREFIX}/lib/gcc-lib/${GNUHOST}/${GCC_VERSION}/cpp ; do \
d222 5
a226 3
	@@(${TOUCH} ${TOUCH_FLAGS} ${PREFIX}/lib/gcc-lib/${GNUHOST}/${GCC_VERSION}/include/float.h)
	@@(chown -R bin:bin ${PREFIX}/lib/gcc-lib/${GNUHOST}/${GCC_VERSION})
	${LDCONFIG} -m ${PREFIX}/lib
@


1.45
log
@- Fix fetch: workaround problems with site groups and :foo
@
text
@d23 1
a23 1
		${MASTER_SITE_LOCAL}:boot \
@


1.44
log
@Add another site to MASTER_SITES.
@
text
@d24 1
a24 1
		${MASTER_SITE_GNU}:gcc
@


1.43
log
@Fix build.  Ports that formerly attempted to work around problems
created by matherr() no longer need to do so.
@
text
@d22 1
@


1.42
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d1 1
d41 3
@


1.41
log
@Make portlint(1) happy by changing strip to ${STRIP_CMD}

Submitted by:	Oleg Karachevtsev <ok@@etrust.ru>
PR:		56998
@
text
@d18 1
@


1.40
log
@Remove the BUILD_DEPENDS for gcc28; we don't need gcc28 to be built or
installed, we just want the port's patch files.
@
text
@d248 1
a248 1
		strip $$prog ; \
@


1.39
log
@De-pkg-comment.
@
text
@a28 2
BUILD_DEPENDS=  gcc28:${PORTSDIR}/lang/gcc28

@


1.38
log
@Use the full path to /sbin/sysctl

Noticed by:	'make index' in crontab
@
text
@d27 1
@


1.37
log
@Make the fetch work with MASTER_SITE_SUBDIRs.

Approved by:	portmgr
@
text
@d165 1
a165 1
	MAJ=`sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
@


1.36
log
@Fix BUILD_DEPENDS.
@
text
@d22 1
a22 1
MASTER_SITE_SUBDIR=	gcc deischen/gcc .
@


1.35
log
@Update to the latest released version of GNAT (3.15p).  Also use a
new bootstrap compiler and fix so that it builds under -current.

Approved by:	portmgr
@
text
@d28 1
a28 1
BUILD_DEPENDS=  ${PORTSDIR}/lang/gcc28
@


1.34
log
@Add the misc/compat4x dependency only if ${OSVERSION} >= 500000.
@
text
@d17 1
a17 1
PORTVERSION=	3.14p
d28 2
d99 1
a99 1
DISTFILES+=	gnat-3.13p-boot.tar.gz:boot
d123 1
a123 1
LIBRARY_VERSION=	3.14
d141 3
a143 1
	-( ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/freebsdgcc28-patches )
d146 1
a146 1
	@@${ECHO} "===>  Copying GNAT compiler sources into GCC tree."
d158 4
a161 1
	${RM} ${WRKDIR}/gnat-3.14p-src/examples/*.orig
a195 2
	    ${GMAKE} CFLAGS="${GNATCFLAGS}" gnattools )
	(cd ${WRKSRC}; \
d204 2
d224 1
a224 1
	    ${WRKDIR}/gnat-3.14p-src/examples/* ${EXAMPLESDIR}
@


1.33
log
@The distributed bootstrapping compiler requires libc.so.4,
so add misc/compat4x as dependency.

Submitted by:	bento
@
text
@d98 1
d100 1
@


1.32
log
@* Match up distfiles and their respective master sites.
* Mark the bootstrap as i386-only.

Approved by:	maintainer
@
text
@d98 1
@


1.31
log
@Add a MASTER_SITE_SUBDIR for gcc.
@
text
@d19 3
a21 2
MASTER_SITES=	ftp://cs.nyu.edu/pub/gnat/${PORTVERSION}/ \
		${MASTER_SITE_LOCAL} ${MASTER_SITE_GNU}
d23 2
a24 1
DISTFILES=	${GNATNAME}.tgz gcc-2.8.1.tar.gz
d96 2
a97 1
DISTFILES+=	gnat-3.13p-boot.tar.gz
@


1.30
log
@Add gnathtml.pl, and Ada source code HTML'izer, to the installed files.

PR:		ports/34844
Submitted by:	John Merryweather Cooper <john_m_cooper@@yahoo.com>
@
text
@d21 1
a21 1
MASTER_SITE_SUBDIR=	deischen/gcc .
@


1.29
log
@Always remove the .orig files from the examples directory; there's
no sense in muddying up the Makefile with checks for NOPORTDOCS
just to remove the copy of one patched file.

Make the package list be in alphabetical order for directories with
lots of files in them; this allows one to do `/bin/ls -1` to generate
the package list and produce (hopefully) smaller diffs for subsequent
versions.
@
text
@d207 1
@


1.28
log
@Update to version 3.14p

PR: 34670
Submitted by: Joe Marcus Clarke <marcus@@marcuscom.com>
@
text
@d141 2
a142 1
# Copy any additional files required into the correct locations.
d148 1
a192 3
.ifndef(NOPORTDOCS)
	${RM} ${WRKDIR}/gnat-3.14p-src/examples/*.orig
.endif
@


1.27
log
@Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.

Use command macros where appropriate.
@
text
@d17 1
a17 1
PORTVERSION=	3.13p
d115 1
a115 1
LIBRARY_VERSION=	3.13
d191 3
d208 5
@


1.26
log
@Fix checking of LOCALBASE; the '$' was missing from '${LOCALBASE}'.

Submitted by:	Thomas Quinot <quinot@@inf.enst.fr>
@
text
@d7 1
a7 1
# $FreeBSD: ports/lang/gnat/Makefile,v 1.25 2000/11/03 10:03:09 asami Exp $
d54 1
a54 1
			${ECHO} "${PREFIX}/bin"; \
d56 1
a56 1
			${ECHO} ""; \
d63 1
a63 1
			${ECHO} "${LOCALBASE}/bin"; \
d65 1
a65 1
			${ECHO} ""; \
d73 1
a73 1
			${ECHO} "borken for aout"; \
d75 1
a75 1
			${ECHO} ""; \
d80 1
a80 1
				${ECHO} ${have_boot}; \
d82 1
a82 1
				${ECHO} "borken for aout"; \
d85 1
a85 1
			${ECHO} "borken for aout"; \
@


1.25
log
@Add "deischen" in front of MASTER_SITE_SUBDIR so the distfile can be found.
Also add "." as a separate element, otherwise the stuff on the GNU sites
won't be fetched.

Submitted by:	bento
@
text
@d7 1
a7 1
# $FreeBSD: ports/lang/gnat/Makefile,v 1.24 2000/11/01 18:56:57 deischen Exp $
d62 2
a63 2
have_boot!=	if [ -x {LOCALBASE}/bin/adagcc -a -x {LOCALBASE}/bin/gnatbind ]; then \
			${ECHO} "{LOCALBASE}/bin"; \
@


1.24
log
@Update to the latest public release 3.13p.

Thanks to Samuel Tardieu <sam@@inf.enst.fr> for instigating this
update and providing some of the changes.
@
text
@d7 1
a7 1
# $FreeBSD: ports/lang/gnat/Makefile,v 1.23 2000/04/12 06:18:45 obrien Exp $
d21 1
a21 1
MASTER_SITE_SUBDIR=	gcc
@


1.23
log
@Convert to the PORTNAME - PORTVERSION syntax.
@
text
@d7 1
a7 1
# $FreeBSD: ports/lang/gnat/Makefile,v 1.22 1999/11/09 12:33:11 deischen Exp $
d17 1
a17 1
PORTVERSION=	3.12p
d19 4
a22 4
MASTER_SITES=	ftp://cs.nyu.edu/pub/gnat/ \
		${MASTER_SITE_GNU}
DISTNAME=	gcc-2.8.1
DISTFILES=	gnat-3.12p-src.tar.gz gcc-2.8.1.tar.gz
d28 2
d33 4
a36 1
PLIST_SUB=	GNUHOST=${GNUHOST} GCC_VERSION=${GCC_VERSION}
d46 1
a46 1
# You need a compiler who calls an existing GNAT compiler (3.11 or greater).
d51 1
a51 1
# For the GNAT compiler, we look in ${PREFIX} and in /usr/local.
d62 2
a63 2
have_boot!=	if [ -x /usr/local/bin/adagcc -a -x /usr/local/bin/gnatbind ]; then \
			${ECHO} "/usr/local/bin"; \
d94 1
a94 1
DISTFILES+=	gnat-3.11p-boot.tar.gz
d103 1
a103 1
CC = adagcc
d106 12
d128 4
a131 2
	@@${MV} ${WRKSRC}/config/i386/freebsd.h ${WRKSRC}/config/i386/freebsd-aout.h
	@@${MV} ${WRKSRC}/config/i386/freebsd-elf.h ${WRKSRC}/config/i386/freebsd.h
d134 2
a135 2
	@@${ECHO} "===>  Patching gcc for ${DISTNAME}"
	-( ${PATCH} ${PATCH_ARGS} < ${WRKDIR}/gnat-3.12p-src/src/gcc-281.dif )
d137 1
a137 1
	-( ${MV} ${WRKDIR}/gnat-3.12p-src/src/ada ${WRKDIR}/gcc-2.8.1 )
d171 1
a171 1
# spelled out in gnat-3.12p-src/src/README.BUILD.  Remove CFLAGS from the
d177 3
a179 1
	    ${COMPILEDATA} ${GMAKE} CC="${CC}" OLDCC="adagcc" CFLAGS="-O2" LANGUAGES="c ada gcov" )
d181 1
a181 1
	    ${GMAKE} CFLAGS="-O2" LANGUAGES="c ada gcov" bootstrap )
d183 6
a188 1
	    ${GMAKE} CFLAGS="-O2" gnattools )
d190 1
a190 1
	    ${GMAKE} CFLAGS="-O2" GNATLIBCFLAGS="-O2" gnatlib )
d195 10
d232 2
a233 8
	@@(${CHOWN} -R bin:bin ${PREFIX}/lib/gcc-lib/${GNUHOST}/${GCC_VERSION})
	@@(${ECHO} "-----------------------------------------------------------" )
	@@(${ECHO} "" )
	@@(${ECHO} "For information about using the tasking library please read" )
	@@(${ECHO} "the README.Tasking file" )
	@@(${ECHO} "" )
	@@(${ECHO} "-----------------------------------------------------------" )
	@@(${ECHO} "" )
@


1.22
log
@Upgrade GNAT to GNAT-3.12p, the latest public release from Ada Core
Technologies.
@
text
@a1 1
# Version required:     3.09
d7 1
a7 1
# $FreeBSD: ports/lang/gnat/Makefile,v 1.21 1999/08/25 06:34:39 obrien Exp $
d16 2
a17 2
DISTNAME=       gcc-2.8.1
PKGNAME=        gnat-3.12p
d19 1
a19 1
MASTER_SITES=   ftp://cs.nyu.edu/pub/gnat/ \
d21 2
a22 1
DISTFILES=      gnat-3.12p-src.tar.gz gcc-2.8.1.tar.gz
@


1.21
log
@Change Id->FreeBSD.
@
text
@d8 1
a8 1
# $FreeBSD$
d18 1
a18 1
PKGNAME=        gnat-3.11p
d22 1
a22 1
DISTFILES=      gnat-3.11p-src.tar.gz gcc-2.8.1.tar.gz
a27 3
.if ${PORTOBJFORMAT} == "elf"
GNUHOST=	${ARCH}-unknown-freebsdelf${OSREL}
.else
a28 1
.endif
d41 1
a41 1
# You need a compiler who calls an existing GNAT compiler (3.10 or greater).
d65 1
a65 4
# Check for attempts to cross-compile the GNAT compiler.  We only supply
# an ELF bootstrap compiler.  If the gnat-3.10 package is still around,
# you could possible install that and build gnat-3.11p as aout.  This
# is not supported, though.
d68 1
a68 1
			${ECHO} "borken for cross"; \
d77 1
a77 1
				${ECHO} "borken for cross"; \
d80 1
a80 5
			if [ ${PORTOBJFORMAT} = "elf" ]; then \
				${ECHO} ""; \
			else \
				${ECHO} ${have_boot}; \
			fi \
d84 2
a85 2
.if ${have_boot} == "borken for cross"
BROKEN=	"Cannot build an aout compiler with an ELF compiler."
d101 9
d111 2
d116 1
a116 1
	-( ${PATCH} ${PATCH_ARGS} < ${WRKDIR}/gnat-3.11p-src/src/gcc-281.dif )
d118 3
a120 1
	-( ${MV} ${WRKDIR}/gnat-3.11p-src/src/ada ${WRKDIR}/gcc-2.8.1 )
d130 1
a130 1
	@@(cd ${WRKDIR}/gcc-2.8.1/config/${ARCH}/ ; \
d134 7
a140 4
		>freebsd.h ; \
	${MV} freebsd-elf.h freebsd-elf.h.in ; \
	${SED} -e "s:__FreeBSD__=[0-9]*:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in \
		>freebsd-elf.h)
d152 1
a152 1
# spelled out in gnat-3.11p-src/src/README.BUILD.  Remove CFLAGS from the
d158 1
a158 1
	    ${COMPILEDATA} ${GMAKE} CC="${CC}" OLDCC="adagcc" CFLAGS="-O2" LANGUAGES="c ada" )
d160 1
a160 1
	    ${GMAKE} CFLAGS="-O2" LANGUAGES="c ada" bootstrap )
d168 1
a168 1
	    ${GMAKE} CC="${CC}" LANGUAGES="c ada" ${INSTALL_TARGET} )
d172 1
d195 1
@


1.20
log
@chmod -> ${CHMOD}
chown -> ${CHOWN}
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.19 1999/07/01 14:42:41 sheldonh Exp $
@


1.19
log
@Remove the two "priming" MASTER_SITEs now that ftp.freebsd.org has
Daniel Eischen's boot-strapping package.
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.18 1999/06/24 11:10:37 sheldonh Exp $
d189 1
a189 1
	@@(chown -R bin:bin ${PREFIX}/lib/gcc-lib/${GNUHOST}/${GCC_VERSION})
@


1.18
log
@Update 3.10p -> 3.11p:

      * Build requires a GNAT compiler, for which the maintainer has
	created a package. For now, provide two MASTER_SITEs from which
	it is available so that it'll find its way into the FreeBSD
	distfiles.

      * Uses variables in the PLIST to reduce diff sizes in future.

      * Doesn't install info files, which are virtually duplicates of
	the ones we already have.

      * AOUT support is on its wAy OUT. Do what we can, but don't blow
	any fuses.

      * Hand maintainership over to Daniel Eischen, at the request of
	the previous maintainer.

PR:	10093
Submitted by:	Daniel Eischen <eischen@@vigrid.com>
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.16 1998/01/18 15:12:38 steve Exp $
d21 1
a21 3
		${MASTER_SITE_GNU} \
		ftp://ftp.pcnet.com/users/eischen/GNAT/ \
		http://axl.noc.iafrica.com/~sheldonh/
@


1.17
log
@Set 'USE_GMAKE', because it does.

Yet another bug found by:	Satoshi's errorlogs
@
text
@d11 1
a11 1
# - FreeBSD tasking libraries created by Dan Eischen have been incorportated
d14 2
a15 2
#   conflict with other gcc based products. Standard names can be provided using
#   symbolic links.
d17 2
a18 2
DISTNAME=       gnat-3.10p-src
PKGNAME=        gnat-3.10p
d21 15
a35 2
		${MASTER_SITE_GNU}
DISTFILES=      gnat-3.10p-src.tar.gz gcc-2.7.2.1.tar.gz
d37 9
a45 1
MAINTAINER=	maurice@@serc.rmit.edu.au
d47 14
a60 2
.if !exists(/usr/local/bin/gnatf)
BROKEN=		"requires existing gnat compiler"
d62 6
a67 2
.if !exists(/usr/local/bin/adagcc)
BROKEN=		"requires patched gcc compiler"
a68 3
# You need a compiler who calls an existing gnat compiler (3.08 or greater):
# if you have one, if you have one put it here, otherwise,
# you will need to install from a package first
d70 26
a95 2
USE_GMAKE=	yes
MAN1=		adagcc.1 cccp.1
d97 3
a99 2
# Make sure we use the patched gcc compiler
CC = /usr/local/bin/adagcc
d101 8
a108 2
# Which version of gcc do we have? Must be 2.7.2.1
CCVERSION= 2.7.2.1
d110 3
a112 2
# which language set
LANG = c ada
d116 1
a116 2
	-(  cd ${WRKDIR}/gcc-2.7.2.1; \
	   ${PATCH} < ${PATCHDIR}/patch-freebsdgcc; )
d118 10
a127 4
	-(  cd ${WRKDIR}/gcc-2.7.2.1; \
	   ${PATCH} < ${WRKSRC}/src/gcc-2721.dif; )
	(cd ${WRKDIR}/gcc-2.7.2.1; \
	   ${CP} -R ${WRKSRC}/src/ada ada; )
d130 16
a145 2
	(cd ${WRKDIR}/gcc-2.7.2.1/ada; \
	   ${TOUCH} treeprs.ads a-[es]info.h nmake.ad[bs] )
d147 5
d153 9
a161 23
	(cd ${WRKDIR}/gcc-2.7.2.1; ${GMAKE} CC="${CC}" CFLAGS="-O2" LANGUAGES="${LANG}" )
	(cd ${WRKDIR}/gcc-2.7.2.1; ${GMAKE} CC="${CC}" CFLAGS="-O2" LANGUAGES="${LANG}" bootstrap )
	(cd ${WRKDIR}/gcc-2.7.2.1; ${GMAKE} CC="${CC}" CFLAGS="-O2" gnatlib_and_tools )

# patch the src that we are going to use and copy any additional files
# required into the correct locations
# use version specific patches where necessary
do-patch:
	(cd ${WRKDIR}; \
	   FILES="${PATCHDIR}/patch-[a-z][a-z]" ; \
	   SORTEDFILES=`${ECHO} $$FILES | ${TR} " " "\n" | sort` ; \
	   for i in $$SORTEDFILES ; do \
	      ${ECHO} Applying ---- $$i ;\
	      ${PATCH} < $$i ;\
	   done )
	(cd ${FILESDIR}; \
	   for i in *.adb *.ads ; do \
	     ${CP} $$i ${WRKDIR}/gcc-2.7.2.1/ada; \
	   done )

do-configure:
	(cd ${WRKDIR}/gcc-2.7.2.1; \
	   ./configure --prefix=${PREFIX} --program-prefix=ada )
d164 2
a165 2
	(cd ${WRKDIR}/gcc-2.7.2.1; \
	   ${GMAKE} CC="${CC}" LANGUAGES="${LANG}" install )
d168 24
d200 1
a200 1
.include <bsd.port.mk>
@


1.16
log
@Remove bogus duplicate patch that I missed last time. :(

Noticed by:	Satoshi Asami
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.15 1998/01/18 12:09:58 asami Exp $
d36 1
@


1.15
log
@Mark this port broken for now, it doesn't patch on -stable.
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.14 1998/01/18 09:08:33 steve Exp $
a24 2

BROKEN=		patch
@


1.14
log
@Upgrade to version 3.10p and do a little portlint cleaning.

PR:		5138
Submitted by:	Daniel M. Eischen <deischen@@iworks.InterWorks.org>
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.13 1997/10/03 09:56:56 asami Exp $
d25 2
@


1.13
log
@Correctly specify manpage names.  Compress manpages.
@
text
@d4 1
d8 3
a10 3
# $Id: Makefile,v 1.12 1997/09/25 08:47:35 asami Exp $

# Note: 
d17 2
a18 2
DISTNAME=       gnat-3.09-src
PKGNAME=        gnat-3.09
d22 1
a22 1
DISTFILES=      gnat-3.09-src.tar.gz gcc-2.7.2.1.tar.gz
d44 1
a44 1
# which language set 
d48 1
a48 1
	@@echo "===>  Applying FreeBSD patches to gcc for ${DISTNAME}"
d50 2
a51 5
	   patch -s -f < ${PATCHDIR}/patch-freebsdgcc; )
	@@echo "===>  Fixing ${DISTNAME} patches to gcc"
	-(  cd ${WRKSRC}/src; \
	   patch -s -f < ${PATCHDIR}/patch-gnat; )
	@@echo "===>  Patching gcc for ${DISTNAME}"
d53 1
a53 1
	   patch -s -f < ${WRKSRC}/src/gcc-272.dif; )
d55 1
a55 1
	   cp -R ${WRKSRC}/src/ada ada; )
d59 1
a59 1
	   touch treeprs.ads a-[es]info.h nmake.ad[bs] )
d72 1
a72 1
	   SORTEDFILES=`echo $$FILES | tr " " "\n" | sort` ; \
d74 2
a75 2
	      echo Applying ---- $$i ;\
	      patch -s < $$i ;\
d79 1
a79 1
	     cp $$i ${WRKDIR}/gcc-2.7.2.1/ada; \
d91 7
a97 7
	@@(echo "-----------------------------------------------------------" )
	@@(echo "" )
	@@(echo "For information about using the tasking library please read" )
	@@(echo "the README.Tasking file" )
	@@(echo "" )
	@@(echo "-----------------------------------------------------------" )
	@@(echo "" )
@


1.12
log
@Upgrade to 3.09.  This port is no longer broken.

Note you need an existing gnat compiler to build this.  (A package will do.)

PR:		3687
Submitted by:	Maurice Castro <maurice@@planet.serc.rmit.edu.au> and
		Daniel M. Eischen <deischen@@iworks.InterWorks.org>
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.11 1997/08/11 18:02:08 fenner Exp $
d34 2
@


1.11
log
@Remove nils@@guru.ims.uni-stuttgart.de as MAINTAINER, no longer
runs FreeBSD.

Submitted by:	Cornelis van der Laan <nils@@trados.com>
@
text
@d1 2
a2 4
# -*- Mode: Makefile -*-
# Port of:              GNU Ada gnat
# Version required:     2.03
# Space required:       >= 23MB
d4 2
a5 1
# Porter:               nils@@guru.ims.uni-stuttgart.de
d7 1
a7 1
# $Id: Makefile,v 1.10 1996/12/07 13:28:30 asami Exp $
d9 9
a17 2
DISTNAME=       gnat-2.03-src
PKGNAME=        gnat-2.03
d19 18
a36 1
MASTER_SITES=   ftp://cs.nyu.edu/pub/gnat/
d38 2
a39 1
MAINTAINER=	ports@@FreeBSD.ORG
d41 19
a59 26
BROKEN=		"Not updated for gcc-2.7.x"
# following three lines commented out because BROKEN is already defined
#.if !exists(/usr/local/bin/gnatf)
#BROKEN=		"requires existing gnat compiler"
#.endif
# You need a compiler who calls an existing gnat compiler:
# if you have one, if you have one put it here, otherwise,
# you will need to install from a package first, the Makefile
# in ${SRCDIR}/ada is configured to call gcc with -B/usr/local/libexec/
# so that the normal gcc will find gnat1 there.  Alternatively
# you can install it in /usr and avoid the hassles.
CC = gcc

# You have to tell me where your gcc 2.6.3 source is located
COMPILERSOURCE = /usr/src/gnu/usr.bin/cc

# Which version of gcc do we have? Must be either 2.6.2 or 2.6.3.
CCVERSION= 2.6.3

USE_GMAKE= true

pre-build:
	@@echo "===>  Building patched gcc library for ${DISTNAME}"
	cd ${WRKSRC}/gcc && \
	   ${MAKE} CC="${CC} -I. -I${COMPILERSOURCE}/include" \
		   COMPILERSOURCE="${COMPILERSOURCE}" PREFIX=${PREFIX}
d62 19
a80 2
	cd ${WRKSRC}/ada; \
	   ${GMAKE} CC="${CC}" PREFIX=${PREFIX} COMPILERSOURCE="${COMPILERSOURCE}"
d83 2
a84 6
	@@env CURDIR=${.CURDIR} DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} \
	     WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} SCRIPTDIR=${SCRIPTDIR} \
	     FILESDIR=${FILESDIR} PORTSDIR=${PORTSDIR} PREFIX=${PREFIX} \
	     DEPENDS="${DEPENDS}" \
	     COMPILERSOURCE="${COMPILERSOURCE}" CCVERSION="${CCVERSION}" \
	       ${SHELL} ${SCRIPTDIR}/configure; 
d87 11
a97 3
	(cd ${WRKSRC}/ada; \
	${MAKE} PREFIX=${PREFIX} ${MAKE_FLAGS} ${MAKEFILE} \
		${INSTALL_TARGET})
@


1.10
log
@Oops, real reason of BROKEN was gcc incompatibility.
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.9 1996/12/07 13:03:20 asami Exp $
d15 1
a15 1
MAINTAINER=	nils@@guru.ims.uni-stuttgart.de
@


1.9
log
@Add reasons to BROKEN.
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.8 1996/11/12 02:18:23 obrien Exp $
d17 5
a21 3
.if !exists(/usr/local/bin/gnatf)
BROKEN=		"requires existing gnat compiler"
.endif
@


1.8
log
@CATAGORIES+= -> CATAGORIES=
Reordered vars where needed.  Added MAINTAINERS where needed, many
mkdir --> ${MKDIR}, install -> ${INSTALL_*}, etc.
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.7 1996/04/12 08:33:25 asami Exp $
d18 1
a18 1
BROKEN=		yes	# requires existing gnat compiler
@


1.7
log
@Check if /usr/local/bin/gnatf exists or not and if not, pronounce it
BROKEN.  This port requires an existing compiler to bootstrap.
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.6 1995/11/22 13:12:46 asami Exp $
d12 1
a12 1
CATEGORIES+=	lang
d14 2
a15 1
EXTRACT_SUFX=	.tar.gz
@


1.6
log
@Change category nome from "languages" to "lang".  Also remove "programming"
which appeared in some of them, everything here is a programming language! :)
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.5 1995/05/13 15:08:45 jmacd Exp $
d16 3
@


1.5
log
@I fixed it so that it works right.  Basically the same changes were
needed as for the g77 port, except this time since a new compiler
exectuable isn't getting produced (and I wonder why its that way)
one will need to use -B${PREFIX}/libexec/ every time they wish to
compile ada sources, since gcc doesn't look in /usr/local/libexec/.

It seems to work... I ran it on the examples directory.  Someone
who knows ada well should test it I suppose.

-josh
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.4 1995/04/24 11:29:14 asami Exp $
d12 1
a12 1
CATEGORIES+=	languages
@


1.4
log
@Update lang Makefiles, compressing some man pages and stripping some
executables along the way.
@
text
@d8 1
a8 1
# $Id: Makefile,v 1.3 1995/04/15 05:44:36 asami Exp $
d17 6
a22 1
CC = gcc-2.6.3
a25 1
#COMPILERSOURCE = /cdrom/filesys/usr/src/gnu/usr.bin/cc
a31 4
# This is for the package: target. I decided to install the Ada compiler
# as /usr/libexec/gnat1, the rest in /usr/local/{bin,adainclude,adalib}.
PREFIX		= /usr

d36 1
a36 1
		   COMPILERSOURCE="${COMPILERSOURCE}" 
d40 1
a40 1
	   ${GMAKE} CC="${CC}" COMPILERSOURCE="${COMPILERSOURCE}"
d51 2
a52 3
	@@${MAKE} ${.MAKEFLAGS} pre-install
	@@(cd ${WRKSRC}/ada; \
	${MAKE} PREFIX_DIR=${PREFIX} ${MAKE_FLAGS} ${MAKEFILE} \
@


1.3
log
@Update of lang Makefiles....
@
text
@d8 1
a8 1
# $Id$
d32 1
a32 8
WRKDIR          = ${.CURDIR}/work
CONFIGURE_COOKIE= ${WRKDIR}/.configure_done
PREBUILD_COOKIE = ${WRKDIR}/.prebuild_done
BUILD_COOKIE    = ${WRKDIR}/.build_done
INSTALL_COOKIE  = ${WRKDIR}/.install_done

pre-build: ${PREBUILD_COOKIE}
${PREBUILD_COOKIE}:
a36 1
	@@${TOUCH} ${TOUCHFLAGS} ${PREBUILD_COOKIE}
d38 1
a38 3
build: configure pre-build ${BUILD_COOKIE}
${BUILD_COOKIE}:
	@@echo "===>  Building for ${DISTNAME}"
a40 1
	@@${TOUCH} ${TOUCH_FLAGS} ${BUILD_COOKIE}
d42 1
a42 3
configure: extract patch ${CONFIGURE_COOKIE}
${CONFIGURE_COOKIE}:
	@@echo "===>  Configuring for ${DISTNAME}"
a48 1
	@@${TOUCH} ${TOUCH_FLAGS} ${CONFIGURE_COOKIE}
d50 1
a50 3
install: build ${INSTALL_COOKIE}
${INSTALL_COOKIE}:
	@@echo "===>  Installing for ${DISTNAME}"
a54 1
	@@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
@


1.2
log
@Add CATEGORIES lines to a whole bunch of port Makefiles.  Some ports are in
multiple catagories - I'll expect the various MAINTAINERS to make further
adjustments (and add any KEYWORDS lines) themselves.
@
text
@d8 1
d11 2
a13 1
CATEGORIES+=	languages
@


1.1
log
@Initial revision
@
text
@d11 1
@


1.1.1.1
log
@gnat-2.03 - The GNU Ada Translator. Version 2.03.
Submitted by:	nils@@guru.ims.uni-stuttgart.de (Cornelis van der Laan)
@
text
@@
