1998-01-16 10:15:14 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: gcc
|
|
|
|
# Version required: 2.8.0
|
|
|
|
# Date created: 17 Jan 1998
|
|
|
|
# Whom: David O'Brien <obrien@NUXI.com>
|
|
|
|
#
|
1998-03-11 11:49:14 +00:00
|
|
|
# $Id: Makefile,v 1.6 1998/03/10 06:23:31 obrien Exp $
|
1998-01-16 10:15:14 +00:00
|
|
|
#
|
|
|
|
|
1998-03-10 06:23:36 +00:00
|
|
|
DISTNAME= gcc-2.8.1
|
1998-01-16 10:15:14 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
|
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
|
|
|
|
1998-03-05 03:29:59 +00:00
|
|
|
GNUOSREL!= uname -r | sed -e 's/[-(].*//'
|
|
|
|
|
|
|
|
PLIST= ${WRKDIR}/PLIST.fixedup
|
|
|
|
GNUHOST= i386-unknown-freebsd${GNUOSREL}
|
1998-03-10 06:23:36 +00:00
|
|
|
CONFIGURE_ARGS= --with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/include/g++
|
1998-01-16 10:15:14 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
1998-03-04 09:19:23 +00:00
|
|
|
ALL_TARGET= bootstrap
|
|
|
|
MAN1= cccp28.1 g++28.1 gcc28.1
|
1998-01-16 10:15:14 +00:00
|
|
|
|
1998-03-05 03:29:59 +00:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} "GCC 2.8 for ${OSNAME} ${GNUOSREL}"
|
|
|
|
|
1998-03-11 11:49:14 +00:00
|
|
|
post-patch:
|
|
|
|
@(cd ${WRKSRC}/config/i386/ ; \
|
|
|
|
MAJ=`sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
|
|
|
|
${MV} freebsd.h freebsd.h.in ; \
|
|
|
|
${SED} -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in \
|
|
|
|
>freebsd.h ; \
|
|
|
|
${MV} freebsd-elf.h freebsd-elf.h.in ; \
|
|
|
|
${SED} -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in \
|
|
|
|
>freebsd-elf.h)
|
|
|
|
|
1998-03-05 03:29:59 +00:00
|
|
|
pre-install:
|
1998-03-06 05:54:22 +00:00
|
|
|
@${SED} -e 's:%GNUHOST%:${GNUHOST}:' ${PKGDIR}/PLIST \
|
1998-03-09 03:46:16 +00:00
|
|
|
> ${PLIST}
|
1998-03-05 03:29:59 +00:00
|
|
|
|
1998-01-16 10:15:14 +00:00
|
|
|
post-install:
|
|
|
|
@${RM} -f ${PREFIX}/bin/c++
|
|
|
|
(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/gcov \
|
|
|
|
${PREFIX}/bin/protoize ${PREFIX}/bin/unprotoize \
|
1998-03-05 03:29:59 +00:00
|
|
|
${PREFIX}/bin/${GNUHOST}-gcc \
|
1998-03-10 06:23:36 +00:00
|
|
|
${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/cc1 \
|
|
|
|
${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/cc1obj \
|
|
|
|
${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/cc1plus \
|
|
|
|
${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/cpp ; \
|
1998-01-16 10:15:14 +00:00
|
|
|
do strip $$prog ; \
|
|
|
|
done)
|
1998-03-04 09:19:23 +00:00
|
|
|
ln -f ${PREFIX}/bin/gcc ${PREFIX}/bin/gcc28
|
|
|
|
ln -f ${PREFIX}/bin/g++ ${PREFIX}/bin/g++28
|
1998-03-05 03:29:59 +00:00
|
|
|
@${MV} ${PREFIX}/man/man1/cccp.1 ${PREFIX}/man/man1/cccp28.1
|
|
|
|
@${MV} ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/g++28.1
|
|
|
|
@${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/gcc28.1
|
1998-01-16 10:15:14 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|