49caa3269b
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
56 lines
1.8 KiB
Makefile
56 lines
1.8 KiB
Makefile
# -*- Mode: Makefile -*-
|
|
# Port of: GNU Ada gnat
|
|
# Version required: 2.03
|
|
# Space required: >= 23MB
|
|
# Date created: Sat Mar 18 02:16:45 1995
|
|
# Porter: nils@guru.ims.uni-stuttgart.de
|
|
#
|
|
# $Id: Makefile,v 1.4 1995/04/24 11:29:14 asami Exp $
|
|
|
|
DISTNAME= gnat-2.03-src
|
|
PKGNAME= gnat-2.03
|
|
CATEGORIES+= languages
|
|
MASTER_SITES= ftp://cs.nyu.edu/pub/gnat/
|
|
EXTRACT_SUFX= .tar.gz
|
|
|
|
# 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}
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/ada; \
|
|
${GMAKE} CC="${CC}" PREFIX=${PREFIX} COMPILERSOURCE="${COMPILERSOURCE}"
|
|
|
|
do-configure:
|
|
@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;
|
|
|
|
do-install:
|
|
(cd ${WRKSRC}/ada; \
|
|
${MAKE} PREFIX=${PREFIX} ${MAKE_FLAGS} ${MAKEFILE} \
|
|
${INSTALL_TARGET})
|
|
|
|
.include <bsd.port.mk>
|