# New ports collection makefile for: GNU Ada gnat # Version required: 3.09 # 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 # # $Id: Makefile,v 1.15 1998/01/18 12:09:58 asami Exp $ # # Note: # - 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. DISTNAME= gnat-3.10p-src PKGNAME= gnat-3.10p CATEGORIES= lang MASTER_SITES= ftp://cs.nyu.edu/pub/gnat/ \ ${MASTER_SITE_GNU} DISTFILES= gnat-3.10p-src.tar.gz gcc-2.7.2.1.tar.gz MAINTAINER= maurice@serc.rmit.edu.au .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): # if you have one, if you have one put it here, otherwise, # you will need to install from a package first MAN1= adagcc.1 cccp.1 # Make sure we use the patched gcc compiler CC = /usr/local/bin/adagcc # Which version of gcc do we have? Must be 2.7.2.1 CCVERSION= 2.7.2.1 # which language set LANG = c ada pre-patch: @${ECHO} "===> Applying FreeBSD patches to gcc for ${DISTNAME}" -( cd ${WRKDIR}/gcc-2.7.2.1; \ ${PATCH} < ${PATCHDIR}/patch-freebsdgcc; ) @${ECHO} "===> Patching gcc for ${DISTNAME}" -( 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; ) pre-configure: (cd ${WRKDIR}/gcc-2.7.2.1/ada; \ ${TOUCH} treeprs.ads a-[es]info.h nmake.ad[bs] ) do-build: (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 ) do-install: (cd ${WRKDIR}/gcc-2.7.2.1; \ ${GMAKE} CC="${CC}" LANGUAGES="${LANG}" install ) post-install: @(${ECHO} "-----------------------------------------------------------" ) @(${ECHO} "" ) @(${ECHO} "For information about using the tasking library please read" ) @(${ECHO} "the README.Tasking file" ) @(${ECHO} "" ) @(${ECHO} "-----------------------------------------------------------" ) @(${ECHO} "" ) .include