blob: 28cd3c2cb754e28a3e201e61fa1bea1b4520d87e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# -*- 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.10 1996/12/07 13:28:30 asami Exp $
DISTNAME= gnat-2.03-src
PKGNAME= gnat-2.03
CATEGORIES= lang
MASTER_SITES= ftp://cs.nyu.edu/pub/gnat/
MAINTAINER= ports@FreeBSD.ORG
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}
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>
|