1997-09-25 08:48:00 +00:00
|
|
|
# New ports collection makefile for: GNU Ada gnat
|
|
|
|
# Version required: 3.09
|
1995-03-28 04:41:43 +00:00
|
|
|
# Date created: Sat Mar 18 02:16:45 1995
|
1998-01-18 09:08:45 +00:00
|
|
|
# Whom: hsu
|
1997-09-25 08:48:00 +00:00
|
|
|
# Porter (original): nils@guru.ims.uni-stuttgart.de
|
|
|
|
# Porter (version 3): maurice@serc.rmit.edu.au
|
1995-03-28 04:41:43 +00:00
|
|
|
#
|
1998-01-18 15:12:38 +00:00
|
|
|
# $Id: Makefile,v 1.15 1998/01/18 12:09:58 asami Exp $
|
1998-01-18 09:08:45 +00:00
|
|
|
#
|
|
|
|
# Note:
|
1997-09-25 08:48:00 +00:00
|
|
|
# - FreeBSD tasking libraries created by Dan Eischen have been incorportated
|
|
|
|
# into this edition
|
|
|
|
# - 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.
|
|
|
|
|
1998-01-18 09:08:45 +00:00
|
|
|
DISTNAME= gnat-3.10p-src
|
|
|
|
PKGNAME= gnat-3.10p
|
1996-11-12 02:19:40 +00:00
|
|
|
CATEGORIES= lang
|
1997-09-25 08:48:00 +00:00
|
|
|
MASTER_SITES= ftp://cs.nyu.edu/pub/gnat/ \
|
|
|
|
${MASTER_SITE_GNU}
|
1998-01-18 09:08:45 +00:00
|
|
|
DISTFILES= gnat-3.10p-src.tar.gz gcc-2.7.2.1.tar.gz
|
1996-11-12 02:19:40 +00:00
|
|
|
|
1997-09-25 08:48:00 +00:00
|
|
|
MAINTAINER= maurice@serc.rmit.edu.au
|
1995-03-28 04:41:43 +00:00
|
|
|
|
1997-09-25 08:48:00 +00:00
|
|
|
.if !exists(/usr/local/bin/gnatf)
|
|
|
|
BROKEN= "requires existing gnat compiler"
|
|
|
|
.endif
|
|
|
|
.if !exists(/usr/local/bin/adagcc)
|
|
|
|
BROKEN= "requires patched gcc compiler"
|
|
|
|
.endif
|
|
|
|
# You need a compiler who calls an existing gnat compiler (3.08 or greater):
|
1995-05-13 15:09:16 +00:00
|
|
|
# if you have one, if you have one put it here, otherwise,
|
1997-09-25 08:48:00 +00:00
|
|
|
# you will need to install from a package first
|
|
|
|
|
1997-10-03 09:57:05 +00:00
|
|
|
MAN1= adagcc.1 cccp.1
|
|
|
|
|
1997-09-25 08:48:00 +00:00
|
|
|
# Make sure we use the patched gcc compiler
|
|
|
|
CC = /usr/local/bin/adagcc
|
1995-03-28 04:41:43 +00:00
|
|
|
|
1997-09-25 08:48:00 +00:00
|
|
|
# Which version of gcc do we have? Must be 2.7.2.1
|
|
|
|
CCVERSION= 2.7.2.1
|
1995-03-28 04:41:43 +00:00
|
|
|
|
1998-01-18 09:08:45 +00:00
|
|
|
# which language set
|
1997-09-25 08:48:00 +00:00
|
|
|
LANG = c ada
|
1995-03-28 04:41:43 +00:00
|
|
|
|
1997-09-25 08:48:00 +00:00
|
|
|
pre-patch:
|
1998-01-18 09:08:45 +00:00
|
|
|
@${ECHO} "===> Applying FreeBSD patches to gcc for ${DISTNAME}"
|
1997-09-25 08:48:00 +00:00
|
|
|
-( cd ${WRKDIR}/gcc-2.7.2.1; \
|
1998-01-18 09:08:45 +00:00
|
|
|
${PATCH} < ${PATCHDIR}/patch-freebsdgcc; )
|
|
|
|
@${ECHO} "===> Patching gcc for ${DISTNAME}"
|
1997-09-25 08:48:00 +00:00
|
|
|
-( cd ${WRKDIR}/gcc-2.7.2.1; \
|
1998-01-18 09:08:45 +00:00
|
|
|
${PATCH} < ${WRKSRC}/src/gcc-2721.dif; )
|
1997-09-25 08:48:00 +00:00
|
|
|
(cd ${WRKDIR}/gcc-2.7.2.1; \
|
1998-01-18 09:08:45 +00:00
|
|
|
${CP} -R ${WRKSRC}/src/ada ada; )
|
1995-03-28 04:41:43 +00:00
|
|
|
|
1997-09-25 08:48:00 +00:00
|
|
|
pre-configure:
|
|
|
|
(cd ${WRKDIR}/gcc-2.7.2.1/ada; \
|
1998-01-18 09:08:45 +00:00
|
|
|
${TOUCH} treeprs.ads a-[es]info.h nmake.ad[bs] )
|
1995-03-28 04:41:43 +00:00
|
|
|
|
1995-04-24 11:29:30 +00:00
|
|
|
do-build:
|
1997-09-25 08:48:00 +00:00
|
|
|
(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]" ; \
|
1998-01-18 09:08:45 +00:00
|
|
|
SORTEDFILES=`${ECHO} $$FILES | ${TR} " " "\n" | sort` ; \
|
1997-09-25 08:48:00 +00:00
|
|
|
for i in $$SORTEDFILES ; do \
|
1998-01-18 09:08:45 +00:00
|
|
|
${ECHO} Applying ---- $$i ;\
|
|
|
|
${PATCH} < $$i ;\
|
1997-09-25 08:48:00 +00:00
|
|
|
done )
|
|
|
|
(cd ${FILESDIR}; \
|
|
|
|
for i in *.adb *.ads ; do \
|
1998-01-18 09:08:45 +00:00
|
|
|
${CP} $$i ${WRKDIR}/gcc-2.7.2.1/ada; \
|
1997-09-25 08:48:00 +00:00
|
|
|
done )
|
1995-03-28 04:41:43 +00:00
|
|
|
|
1995-04-24 11:29:30 +00:00
|
|
|
do-configure:
|
1997-09-25 08:48:00 +00:00
|
|
|
(cd ${WRKDIR}/gcc-2.7.2.1; \
|
|
|
|
./configure --prefix=${PREFIX} --program-prefix=ada )
|
1995-03-28 04:41:43 +00:00
|
|
|
|
1995-04-24 11:29:30 +00:00
|
|
|
do-install:
|
1997-09-25 08:48:00 +00:00
|
|
|
(cd ${WRKDIR}/gcc-2.7.2.1; \
|
|
|
|
${GMAKE} CC="${CC}" LANGUAGES="${LANG}" install )
|
|
|
|
|
|
|
|
post-install:
|
1998-01-18 09:08:45 +00:00
|
|
|
@(${ECHO} "-----------------------------------------------------------" )
|
|
|
|
@(${ECHO} "" )
|
|
|
|
@(${ECHO} "For information about using the tasking library please read" )
|
|
|
|
@(${ECHO} "the README.Tasking file" )
|
|
|
|
@(${ECHO} "" )
|
|
|
|
@(${ECHO} "-----------------------------------------------------------" )
|
|
|
|
@(${ECHO} "" )
|
1995-03-28 04:41:43 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|