1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/lang/bc-gcc/Makefile
2001-12-15 21:39:46 +00:00

65 lines
1.9 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: gcc-2.7.2 - Bounds checking gcc
# Date created: Sun June 08, 1997
# Whom: David O'Brien (obrien@FreeBSD.org)
#
# $FreeBSD$
#
PORTNAME= bc-gcc
PORTVERSION= 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/
MASTER_SITE_SUBDIR= gcc
DISTNAME= gcc-2.7.2
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}
USE_BISON= yes
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>