head	1.15;
access;
symbols
	RELEASE_8_0_0:1.12
	RELEASE_7_2_0:1.12
	RELEASE_7_1_0:1.12
	RELEASE_6_4_0:1.12
	RELEASE_5_EOL:1.10
	RELEASE_7_0_0:1.10
	RELEASE_6_3_0:1.10
	PRE_XORG_7:1.7
	RELEASE_4_EOL:1.7
	RELEASE_6_2_0:1.6;
locks; strict;
comment	@# @;


1.15
date	2010.01.24.13.22.24;	author gerald;	state dead;
branches;
next	1.14;

1.14
date	2010.01.24.11.42.47;	author gerald;	state Exp;
branches;
next	1.13;

1.13
date	2009.12.29.10.25.51;	author miwi;	state Exp;
branches;
next	1.12;

1.12
date	2008.08.23.17.04.26;	author erwin;	state Exp;
branches;
next	1.11;

1.11
date	2008.07.25.12.23.59;	author pav;	state Exp;
branches;
next	1.10;

1.10
date	2007.10.17.10.12.43;	author ade;	state Exp;
branches;
next	1.9;

1.9
date	2007.07.23.09.36.05;	author rafan;	state Exp;
branches;
next	1.8;

1.8
date	2007.07.04.10.46.22;	author miwi;	state Exp;
branches;
next	1.7;

1.7
date	2006.12.16.22.03.10;	author miwi;	state Exp;
branches;
next	1.6;

1.6
date	2006.09.12.10.11.39;	author bsam;	state Exp;
branches;
next	1.5;

1.5
date	2006.09.06.05.33.29;	author bsam;	state Exp;
branches;
next	1.4;

1.4
date	2006.09.04.16.28.30;	author bsam;	state Exp;
branches;
next	1.3;

1.3
date	2006.08.27.16.05.24;	author bsam;	state Exp;
branches;
next	1.2;

1.2
date	2006.08.06.20.23.58;	author bsam;	state Exp;
branches;
next	1.1;

1.1
date	2006.08.03.20.25.08;	author bsam;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Remove lang/gnat-gcc41 which is a couple of versions behind upstream and
based on GCC 4.1 which is not maintained any more, either.

Approved by:	maintainer
@
text
@# ex:ts=8
#
# Ports collection makefile for: gnat-gcc
# Date created:		22 Jun 2006
# Whom:			Karel Miklav <karel@@lovetemple.net>
#
# $FreeBSD: ports/lang/gnat-gcc41/Makefile,v 1.14 2010/01/24 11:42:47 gerald Exp $
#

PORTNAME=		gnat-gcc
PORTVERSION=		4.1.2
PORTREVISION=		4
CATEGORIES=		lang
MASTER_SITES=		GCC/releases/gcc-${PORTVERSION} \
			CENKES:boot \
			http://lovetemple.net/data/:boot
DISTFILES=		gcc-core-${PORTVERSION}${EXTRACT_SUFX} \
			gcc-ada-${PORTVERSION}${EXTRACT_SUFX} \
			gcc-testsuite-${PORTVERSION}${EXTRACT_SUFX} \
			gnat-gcc41-boot-${boot_stamp}.tbz:boot

MAINTAINER=		karel@@lovetemple.net
COMMENT=		The GNU Ada Compiler system

ONLY_FOR_ARCHS=		i386

USE_BZIP2=		yes
USE_GMAKE=		yes
USE_ICONV=		yes
USE_PERL5_BUILD=	yes # Needed for man pages.
USE_BISON=		build

WRKSRC=			${WRKDIR}/build

MAN1=			cpp${gcc_suffix}.1 \
			gcc${gcc_suffix}.1 \
			gcov${gcc_suffix}.1
MAN7=			${fsf_mans:S/$/${fsf_suffix}.7/}
NO_MANCOMPRESS=		yes # XXX 5-cur and releng4 problems?
INFO=			gcc${gcc_suffix}/cpp \
			gcc${gcc_suffix}/cppinternals \
			gcc${gcc_suffix}/gcc \
			gcc${gcc_suffix}/gccinstall \
			gcc${gcc_suffix}/gccint \
			gcc${gcc_suffix}/gnat-style \
			gcc${gcc_suffix}/gnat_rm \
			gcc${gcc_suffix}/gnat_ugn_unw

LATEST_LINK=		${PORTNAME}${gcc_suffix}

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 800000
BROKEN=			does not fetch
.endif

srcdir=			${WRKDIR}/gcc-${PORTVERSION}
gcc_suffix=		41
fsf_mans=		fsf-funding gfdl gpl
fsf_suffix=		-${PORTNAME}${gcc_suffix}
targlib=		${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/${PORTVERSION}
gcc_link=		${PREFIX}/bin/gcc${gcc_suffix}/gcc
boot_stamp=		${ARCH}-freebsd-${OSREL:C/\.[0-9.]*//}
check_target=		check # XXX

PATCH_WRKSRC=		${srcdir}

GNU_CONFIGURE=		yes
CONFIGURE_SCRIPT=	../${srcdir:C/${WRKDIR}//}/configure
CONFIGURE_ARGS=		--enable-languages="c,ada" \
			--disable-nls \
			--with-system-zlib \
			--with-libiconv-prefix=${LOCALBASE} \
			--program-suffix=${gcc_suffix} \
			--bindir=${PREFIX}/bin/gcc${gcc_suffix} \
			--libdir=${targlib}

ALL_TARGET=		bootstrap-lean
MAKE_ENV+=		MAKEINFOFLAGS="--no-split" PTHREAD_LIBS=${PTHREAD_LIBS}

PLIST_SUB=		GCC_VER=${PORTVERSION} \
			GNU_HOST=${CONFIGURE_TARGET} \
			SUFFIX=${gcc_suffix}

USE_LDCONFIG=		${targlib}

# Prepare environment for the bootstrap compiler.
CC=			${WRKDIR}/boot/bin/gcc
build_env=		PTHREAD_LIBS=${PTHREAD_LIBS} \
			PATH=${WRKDIR}/boot/bin:${WRKDIR}/boot/libexec:${PATH}

CONFIGURE_ENV+=		${build_env} CC="${CC}"
MAKE_ENV+=		${build_env}

pre-everything::
	@@${ECHO_MSG} -n "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} "
	@@${ECHO_MSG}     "${OSREL} target=${CONFIGURE_TARGET}"

# Append ' [FreeBSD]' to the gcc version string.
post-patch:
	@@${REINPLACE_CMD} \
	    -e 's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \
	    ${srcdir}/gcc/version.c

pre-configure:
	cd ${srcdir} ; contrib/gcc_update --touch
	@@${RM} -f ${srcdir}/gcc/*/*.info*
	@@${MKDIR} ${CONFIGURE_WRKSRC}

post-build:
	@@${ECHO_MSG} -n "Consider running 'make check' before 'make install', "
	@@${ECHO_MSG} -n "especially if you have not performed this build on "
	@@${ECHO_MSG} -n "-STABLE or -CURRENT. This assumes that you have "
	@@${ECHO_MSG}    "dejagnu and autogen ports installed."

check: build
	cd ${WRKSRC} && \
	export RUNTESTFLAGS='--target_board ''unix{-pthread}''' && \
	${GMAKE} -sk ${check_target}

post-install:
	# Create a gcc link.
	${RM} -f ${gcc_link}
	${LN} -s ${PREFIX}/bin/gcc${gcc_suffix}/gcc${gcc_suffix} ${gcc_link}
	# Man pages can only be generated if Perl >= 5.6 is installed; fake them otherwise.
	for mp in ${_MANPAGES}; do \
	    ${TEST} -e $${mp} || ${TOUCH} ${TOUCH_FLAGS} $${mp}; \
	done
	# 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
	# Save the runaway header.
	${MV} -f ${PREFIX}/include/mf-runtime.h \
	         ${targlib}/gcc/${CONFIGURE_TARGET}/${PORTVERSION}/include
	# Remove libtool library files.
	${RM} -f ${targlib}/*.la
	# Prepare a temporary list of installed libraries and include files.
	${RM} -f ${WRKDIR}/PLIST.lib
	for d in ${targlib:S/^${PREFIX}\///} ${targlib:S/^${PREFIX}\///:S/lib/libexec/}; 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 deinstal if empty. Add them to the temporary list.
	${ECHO_CMD} "@@unexec ${RMDIR} %D/lib/gcc/${CONFIGURE_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/${CONFIGURE_TARGET} 2>/dev/null || true" >> ${WRKDIR}/PLIST.lib
	${ECHO_CMD} "@@unexec ${RMDIR} %D/libexec/gcc 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.14
log
@GCC 4.1 (lang/gcc41) has been removed from the tree 2009-01-17, so we
do not need to CONFLICTS with it any more.

Approved by:	maintainer
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.13
log
@- Convert NOMANCOMPRESS to NO_MANCOMPRESS to sync with src

PR:	ports/136065 ports/127469
Submitted by:	N.J. Mann <njm@@njm.me.uk> and Aldis Berjoza <killasmurf86@@gmail.com>

- Early identify port CONFLICTS

PR:	137855
Submitted by:		Piotr Smyrak <smyru@@heron.pl>

- Add --no-same-permissions to the EXTRACT_AFTER_ARGS command.

Tijl Coosemans has been reported an issue that when root is extracting from the
tarball, and the tarball contains world writable files
(sysutils/policykit as an example), there is a chance that the files
gets changed by malicious third parties right after the extraction,
which makes it possible to inject code into the package thus compromise
the system.

Submitted by:	Tijl Coosemans <tijl@@coosemans.org> Xin LI (delphij@@)

- Fix some whitespaces

Tested with:	exp-run
@
text
@a32 1
CONFLICTS=		gcc-4.1.*
@


1.12
log
@Mark BROKEN on 8.x: does not fetch.
@
text
@d40 1
a40 1
NOMANCOMPRESS=		yes # XXX 5-cur and releng4 problems?
@


1.11
log
@- Remove duplicates from MAKE_ENV after inclusion of CC and CXX in default MAKE_ENV
@
text
@d54 4
@


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

PR:		117086
Tested by:	-exp runs
@
text
@d85 2
a86 2
build_env=		CC=${WRKDIR}/boot/bin/gcc \
			PTHREAD_LIBS=${PTHREAD_LIBS} \
d89 1
a89 1
CONFIGURE_ENV+=		${build_env}
@


1.9
log
@- Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
  supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
@
text
@d12 1
a12 1
PORTREVISION=		3
d31 1
a31 1
USE_BISON=		yes
@


1.8
log
@- New bootstrap compiler
- GCC 4.1.2 release version sources used
- PORTREVISION bump

PR:		113875
Submitted by:	Karel Miklav <karel@@lovetemple.net> (maintainer)
@
text
@d73 1
a73 2
			--libdir=${targlib} \
			--infodir=${PREFIX}/${INFO_PATH}/gcc${gcc_suffix}
@


1.7
log
@- Require specified binary compiler for bootstrapping
- Use recent GCC snapshot
- Some aesthetic changes in the Makefile
- Bump PORTVERSION

PR:		ports/106656
Submitted by:	Karel Miklav <karel@@lovetemple.net> (maintainer)
@
text
@d1 5
a5 4
# ex:ts=4
# Ports collection makefile for:	gnat-gcc
# Date created:						22 Jun 2006
# Whom:								Karel Miklav <karel@@lovetemple.net>
d11 2
a12 2
PORTVERSION=	4.1.2
PORTREVISION=	2
d14 7
a20 5
MASTER_SITES=	${MASTER_SITE_GCC}
MASTER_SITE_SUBDIR=	snapshots/${versionstring}
DISTFILES=		gcc-core-${versionstring}${EXTRACT_SUFX} \
				gcc-ada-${versionstring}${EXTRACT_SUFX} \
				gcc-testsuite-${versionstring}${EXTRACT_SUFX}
d25 1
a25 1
ONLY_FOR_ARCHS=	i386
d30 1
a30 1
USE_PERL5_BUILD=	yes
d37 2
a38 2
				gcc${gcc_suffix}.1 \
				gcov${gcc_suffix}.1
d40 1
a40 1
NOMANCOMPRESS=	yes	# 5-cur and releng4 problems?
d42 7
a48 7
				gcc${gcc_suffix}/cppinternals \
				gcc${gcc_suffix}/gcc \
				gcc${gcc_suffix}/gccinstall \
				gcc${gcc_suffix}/gccint \
				gcc${gcc_suffix}/gnat-style \
				gcc${gcc_suffix}/gnat_rm \
				gcc${gcc_suffix}/gnat_ugn_unw
d50 1
a50 1
LATEST_LINK=	${PORTNAME}${gcc_suffix}
d54 1
a54 3
gcc_snapshot=	20061201
versionstring=	${PORTVERSION:C/\.[0-9]*$//}-${gcc_snapshot}
srcdir=			${WRKDIR}/gcc-${versionstring}
d59 3
d63 1
a63 1
PATCH_WRKSRC=	${srcdir}
d65 1
a65 1
GNU_CONFIGURE=	yes
d67 8
a74 8
CONFIGURE_ARGS=	--enable-languages="c,ada" \
				--disable-nls \
				--with-system-zlib \
				--with-libiconv-prefix=${LOCALBASE} \
				--program-suffix=${gcc_suffix} \
				--bindir=${PREFIX}/bin/gcc${gcc_suffix} \
				--libdir=${targlib} \
				--infodir=${PREFIX}/${INFO_PATH}/gcc${gcc_suffix}
d80 4
a83 2
				GNU_HOST=${CONFIGURE_TARGET} \
				SUFFIX=${gcc_suffix}
d85 4
a88 1
USE_LDCONFIG=	${targlib}
d90 2
a91 4
# We need an existing GNAT compiler to bootstrap this one.
BUILD_DEPENDS+=	${LOCALBASE}/bin/gcc34/gcc34:${PORTSDIR}/lang/gnat-gcc34
CONFIGURE_ENV+=	PATH=${LOCALBASE}/bin/gcc34:${PATH} CC=${LOCALBASE}/bin/gcc34/gcc34
MAKE_ENV+=		PATH=${LOCALBASE}/bin/gcc34:${PATH} CC=${LOCALBASE}/bin/gcc34/gcc34
d94 2
a95 1
	@@${ECHO_MSG} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} target=${CONFIGURE_TARGET}"
d97 1
a97 1
# Append ' [FreeBSD]' to gcc version string.
d99 2
a100 1
	${REINPLACE_CMD} -e 's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \
d105 2
a106 2
	${RM} -f ${srcdir}/gcc/*/*.info*
	${MKDIR} ${CONFIGURE_WRKSRC}
d109 4
a112 3
	@@${ECHO_MSG} "Consider running 'make check' before 'make install', especially"
	@@${ECHO_MSG} "if you have not performed this build on -STABLE or -CURRENT."
	@@${ECHO_MSG} "This assumes that you have the dejagnu port installed."
d115 3
a117 1
	cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
d120 4
a123 3
	${LN} -s ${PREFIX}/bin/gcc${gcc_suffix}/gcc${gcc_suffix} \
		${PREFIX}/bin/gcc${gcc_suffix}/gcc
	@@# Man pages can only be generated if Perl >= 5.6 is installed; fake them otherwise.
d125 1
a125 1
		${TEST} -e $${mp} || ${TOUCH} ${TOUCH_FLAGS} $${mp}; \
d127 1
a127 1
	@@# Version FSF funding and licensing manuals.
d129 2
a130 2
		${MV} -f ${PREFIX}/man/man7/$${mp}.7 \
			${PREFIX}/man/man7/$${mp}${fsf_suffix}.7; \
d132 1
a132 1
	@@# Save the runaway header.
d135 1
a135 1
	@@# Remove libtool library files.
d137 1
a137 1
	@@# Prepare a temporary list of installed libraries and include files.
d140 5
a144 5
		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; \
d146 1
a146 1
	@@# Following directories should be removed on deinstal if empty. Add them to the temporary list.
d151 1
a151 1
	@@# Insert the temporary list in the packing list.
@


1.6
log
@- unbreak building at 7.x;
- update to gcc snapshot 20060901.
- bump PORTREVISION.

Submitted by:	Karel Miklav <karel at lovetemple.net> (maintainer by email)
@
text
@d11 1
a11 1
PORTREVISION=	1
d51 1
a51 1
gcc_snapshot=	20060901
a81 6
have_gnat!=	if ${WHICH} gnatmake > /dev/null 2>&1; then \
				${ECHO_CMD} "t"; \
			else \
				${ECHO_CMD} ""; \
			fi
.if empty(have_gnat)
a84 1
.endif
d91 1
a91 1
	@@${REINPLACE_CMD} -e 's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \
d96 2
a97 2
	@@${RM} -f ${srcdir}/gcc/*/*.info*
	@@${MKDIR} ${CONFIGURE_WRKSRC}
d110 1
a110 1
	# Man pages can only be generated if Perl >= 5.6 is installed; fake them otherwise.
d114 1
a114 1
	# Version FSF funding and licensing manuals.
d119 1
a119 1
	# Save the runaway header.
d122 1
a122 1
	# Remove libtool library files.
d124 1
a124 1
	# Add target libraries and include files to packaging list.
d127 1
a127 1
		cd ${PREFIX} ; \
d129 3
a131 3
			${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 ; \
d133 1
d138 2
a139 1
	cd ${WRKDIR} ; ${SED} -i -e "/PLIST.lib/ r PLIST.lib" ${TMPPLIST}
@


1.5
log
@Mark BROKEN at 7.x (does not compile) while investigating the case.

Reported by:	krismail
@
text
@d11 1
d51 1
a51 5
.if ${OSVERSION} > 700000
BROKEN=		does not compile at 7.x
.endif

gcc_snapshot=	20060818
d73 1
a73 1
MAKE_ARGS+=		MAKEINFOFLAGS="--no-split"
@


1.4
log
@o  finish transition a repocopy from gnat-gcc34 to gnat-gcc41:
   -  gcc-4.1.2 version, snapshot 20060818 is used;  [1]
   -  fsf_suffix (-gnat-gcc41) is used for FSF MAN7 files to avoid
      conflicts with other gcc ports;  [1]
   -  some Makefile restructure;  [1]
o  remove BROKEN for 4.x as it builds without errors.

PR:		100038  [1]
Submitted by:	Karel Miklav <karel@@lovetemple.net> (maintainer)  [1]
@
text
@d50 4
@


1.3
log
@- fix DISTFILES;  [1]
- remove gcc-testsuite from distinfo;  [1]
- introduce MASTER_SITE_SUBDIR;  [1]
- change a BROKEN message (doesn't deinstall cleanly at 4.x, PR/101809 pending).

PR:		102451  [1]
Submitted by:	Karel Miklav <karel@@lovetemple.net> (maintainer)
Approved by:	netchild (mentor, implicit)
@
text
@d10 1
a10 1
PORTVERSION=	3.4.6
d13 4
a16 3
MASTER_SITE_SUBDIR=	releases/gcc-${PORTVERSION}
DISTFILES=		gcc-core-${PORTVERSION}.tar.gz \
				gcc-ada-${PORTVERSION}.tar.gz
d21 26
a46 20
USE_GMAKE=	yes
USE_PERL5=	yes
USE_BISON=	yes

CONFLICTS=	gcc-3.4.*
WRKSRC=		${WRKDIR}/gcc-${PORTVERSION}

MAN1=		cpp${gcc_suffix}.1 \
			gcc${gcc_suffix}.1 \
 			gcov${gcc_suffix}.1
MAN7=		fsf-funding.7 gfdl.7 gpl.7
NOMANCOMPRESS=	yes	# too hard to deal with differences on 5-cur and releng4
INFO=		gcc${gcc_suffix}/cpp \
			gcc${gcc_suffix}/cppinternals \
			gcc${gcc_suffix}/gcc \
			gcc${gcc_suffix}/gccinstall \
			gcc${gcc_suffix}/gccint \
			gcc${gcc_suffix}/gnat-style \
			gcc${gcc_suffix}/gnat_rm \
			gcc${gcc_suffix}/gnat_ugn_unw
d50 6
a55 5
.if ${OSVERSION} < 500000
BROKEN=		does not deinstall cleanly at 4.x (PR/101809 pending)
.endif

gcc_suffix=		34
d58 1
a58 1
PATCH_WRKSRC=	${WRKSRC}
d61 1
a61 2
CONFIGURE_WRKSRC=	${WRKDIR}/build
CONFIGURE_SCRIPT=	../${WRKSRC:C/${WRKDIR}\///}/configure
a65 1
				--enable-threads=posix \
d71 2
a72 6
BUILD_WRKSRC=	${WRKDIR}/build

INSTALL_WRKSRC=	${WRKDIR}/build
INSTALLS_SHLIB=	yes

USE_LDCONFIG=	${targlib}
d78 1
a78 23
ONLY_FOR_ARCHS=	i386

# You need a compiler who calls an existing GNAT compiler (3.15 or greater).
# 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.
gnat_gcc!=	if ${WHICH} adagcc > /dev/null 2>&1; then \
				${ECHO_CMD} "`${WHICH} adagcc`"; \
			else \
				${ECHO_CMD} ""; \
			fi
gnat_bind!=	if ${WHICH} gnatbind > /dev/null 2>&1; then \
				${ECHO_CMD} "`${WHICH} gnatbind`"; \
			else \
				${ECHO_CMD} ""; \
			fi
.if empty(gnat_gcc)
gnat_gcc!=	if ${WHICH} gnatgcc > /dev/null 2>&1; then \
				${ECHO_CMD} "`${WHICH} gnatgcc`"; \
			else \
				${ECHO_CMD} ""; \
			fi
.endif
d80 3
a82 3
.if !empty(gnat_gcc) && !empty(gnat_bind)
bootstrap_path!=	if [ -x ${gnat_gcc} -a -x ${gnat_bind} ]; then \
				${ECHO_CMD} "$$PATH"; \
d86 4
a89 2
.else
bootstrap_path=
a91 23
.if empty(bootstrap_path)
ONLY_FOR_ARCHS=	i386
DISTFILES+=		gnat-3.15p-boot.tar.gz:boot
MASTER_SITES+=	${MASTER_SITE_LOCAL}:boot
MASTER_SITE_SUBDIR+=	deischen/gcc/:boot
.if ${OSVERSION} >= 500000
BUILD_DEPENDS+=	${LOCALBASE}/lib/compat/libc.so.4:${PORTSDIR}/misc/compat4x
.endif
# Warning! You need the trailing slash on GCC_EXEC_PREFIX.
compiler_data=	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
bootstrap_path=	${WRKDIR}/adaboot/bin:${PATH}
gnat_gcc=		adagcc
.endif

# Make sure we use the Ada-aware gcc compiler.
CC=				${gnat_gcc}
# C compiler from GNAT 3.15 doesn't understand modern flags.
CFLAGS=
CONFIGURE_ENV+=	${compiler_data} PATH=${bootstrap_path}
MAKE_ENV+=		${compiler_data} PATH=${bootstrap_path} PTHREAD_LIBS=${PTHREAD_LIBS} CC=${CC}

d98 1
a98 1
	    ${WRKSRC}/gcc/version.c
d101 2
a102 2
	cd ${WRKSRC} ; contrib/gcc_update --touch
	@@${RM} -f ${WRKSRC}/gcc/*/*.info*
d105 7
a111 7
do-build:
	(cd ${BUILD_WRKSRC}; \
	    ${MAKE_ENV} ${GMAKE} bootstrap)
	(cd ${BUILD_WRKSRC}; \
	    ${MAKE_ENV} ${GMAKE} -C gcc gnatlib)
	(cd ${BUILD_WRKSRC}; \
	    ${MAKE_ENV} ${GMAKE} -C gcc gnattools)
d116 1
a116 2
	# Man pages can only be generated if Perl >= 5.6 is installed;
	# fake them otherwise.
d120 10
@


1.2
log
@Broken on 4.x: does not extract (both bzip2 and tar.gz sources are used)

Reported by:	krismail
Approved by:	netchild (mentor, implicit)
@
text
@d14 2
a15 2
DISTFILES=		gcc-core-${PORTVERSION}.tar.bz2 \
				gcc-ada-${PORTVERSION}.tar.bz2
d44 1
a44 1
BROKEN=         does not extract on 4.x (both bzip2 and tar.gz sources are used)
d114 1
@


1.1
log
@The GNU Ada compiler system built from GCC 3.4.6.

PR:		99993
Submitted by:	Karel Miklav <karel@@lovetemple.net>
Approved by:	netchild (mentor, implicit)
@
text
@d43 4
@

