blob: 0f93507ba36553fe74832eae0b8cc35a47c6aa9a (
plain)
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
62
|
# ex:ts=8
# Ports collection makefile for: gcc-2.7.2 - Bounds checking gcc
# Version required: gcc-2.7.2 + Bounds checking patches
# Date created: Sun June 08, 1997
# Whom: David O'Brien (obrien@FreeBSD.org)
#
# $Id: Makefile,v 1.1.1.1 1998/08/26 09:41:56 obrien Exp $
#
DISTNAME= gcc-2.7.2
PKGNAME= bc-gcc-2.7.2p1.0.2
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU} \
ftp://dse.doc.ic.ac.uk/pub/misc/bcc/ \
ftp://ftp.cs.yale.edu/WWW/pub/bradley/bcc/ \
ftp://ftp.cs.columbia.edu/archives/gnu/bcc/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} documentation-as-8x11-ps.tgz
PATCH_SITES= ftp://dse.doc.ic.ac.uk/pub/misc/bcc/ \
ftp://ftp.cs.yale.edu/WWW/pub/bradley/bcc/ \
ftp://ftp.cs.columbia.edu/archives/gnu/bcc/
PATCHFILES= bounds-checking-2.7.2-1.02.tgz
PATCH_DIST_STRIP= -p1 -N -E
MAINTAINER= obrien@FreeBSD.org
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 300000
BROKEN= "can't find /usr/lib/aout/crt0.o"
.endif
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} ${PATCHFILES}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld
ALL_TARGET= bootstrap LANGUAGES=c
INSTALL_TARGET= install LANGUAGES=c
GNUHOST= i386-unknown-freebsd${OSREL}
PLIST_SUB= GNUHOST=${GNUHOST}
MAN1= bc-gcc.1 bc-cccp.1
pre-patch:
cd ${WRKSRC} ; ${PATCH} -p1 < bounds-checking.diff
pre-configure:
@( cd ${WRKSRC}/config/i386/ ; \
MAJ=`sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
${MV} freebsd.h freebsd.h.in ; \
${SED} -e "s:__FreeBSD__=[0-9]*:__FreeBSD__=$${MAJ}:" freebsd.h.in \
>freebsd.h )
cd ${WRKSRC} ; ./configure ; make distclean
post-install:
@mv ${PREFIX}/bin/gcc ${PREFIX}/bin/bc-gcc
@mv ${PREFIX}/bin/${GNUHOST}-gcc ${PREFIX}/bin/${GNUHOST}-bc-gcc
@mv ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/bc-gcc.1
@mv ${PREFIX}/man/man1/cccp.1 ${PREFIX}/man/man1/bc-cccp.1
@( for prog in ${PREFIX}/bin/bc-gcc ${PREFIX}/bin/${GNUHOST}-bc-gcc ; \
do strip $$prog ; \
done )
.include <bsd.port.post.mk>
|