1998-01-16 10:15:14 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: gcc
|
1998-11-10 07:33:33 +00:00
|
|
|
# Version required: 2.8.1
|
1998-01-16 10:15:14 +00:00
|
|
|
# Date created: 17 Jan 1998
|
|
|
|
# Whom: David O'Brien <obrien@NUXI.com>
|
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
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}
|
1999-01-27 07:41:29 +00:00
|
|
|
MASTER_SITE_SUBDIR= gcc
|
1998-01-16 10:15:14 +00:00
|
|
|
|
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
|
|
|
|
1999-07-15 11:14:11 +00:00
|
|
|
NO_CDROM= 'old version, not worth the cost in real estate'
|
|
|
|
|
1998-11-11 05:37:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
1999-03-31 10:42:21 +00:00
|
|
|
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
|
1999-02-09 18:25:43 +00:00
|
|
|
.else
|
1999-03-31 10:42:21 +00:00
|
|
|
CONFIGURE_TARGET= ${ARCH}-portbld-freebsdaout${OSREL}
|
1998-11-10 07:33:33 +00:00
|
|
|
.endif
|
|
|
|
|
1999-03-31 10:42:21 +00:00
|
|
|
PLIST_SUB= GNUHOST=${CONFIGURE_TARGET}
|
1999-09-04 20:34:13 +00:00
|
|
|
CONFIGURE_ARGS= --with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/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:
|
1998-11-11 05:37:39 +00:00
|
|
|
@${ECHO} "GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT}"
|
1998-03-05 03:29:59 +00:00
|
|
|
|
1999-02-09 18:25:43 +00:00
|
|
|
pre-patch:
|
|
|
|
@${MV} ${WRKSRC}/config/i386/freebsd.h ${WRKSRC}/config/i386/freebsd-aout.h
|
|
|
|
@${MV} ${WRKSRC}/config/i386/freebsd-elf.h ${WRKSRC}/config/i386/freebsd.h
|
|
|
|
|
1998-08-13 17:55:40 +00:00
|
|
|
pre-configure:
|
1999-02-09 18:25:43 +00:00
|
|
|
@# Keep from running `autoconf' and `autoheader' since we modified
|
|
|
|
@# configure.in by patching it.
|
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/configure
|
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/cstamp-h.in
|
1998-11-13 07:32:21 +00:00
|
|
|
@(cd ${WRKSRC}/config/${ARCH}/ ; \
|
1998-03-11 11:49:14 +00:00
|
|
|
MAJ=`sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
|
1999-02-09 18:25:43 +00:00
|
|
|
${MV} freebsd-aout.h freebsd-aout.h.in ; \
|
|
|
|
${SED} -e "s:__FreeBSD__=[0-9]*:__FreeBSD__=$${MAJ}:" \
|
|
|
|
freebsd-aout.h.in >freebsd-aout.h ; \
|
1998-03-11 11:49:14 +00:00
|
|
|
${MV} freebsd.h freebsd.h.in ; \
|
1998-06-30 21:10:27 +00:00
|
|
|
${SED} -e "s:__FreeBSD__=[0-9]*:__FreeBSD__=$${MAJ}:" freebsd.h.in \
|
1999-02-09 18:25:43 +00:00
|
|
|
>freebsd.h)
|
1998-03-11 11:49:14 +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 \
|
1999-03-31 10:42:21 +00:00
|
|
|
${PREFIX}/bin/${CONFIGURE_TARGET}-gcc \
|
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/cc1 \
|
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/cc1obj \
|
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/cc1plus \
|
|
|
|
${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/cpp ; \
|
1998-01-16 10:15:14 +00:00
|
|
|
do strip $$prog ; \
|
|
|
|
done)
|
1999-08-28 01:58:05 +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
|
|
|
|
1998-11-11 05:37:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|