diff options
author | jmc <jmc@pkgsrc.org> | 2002-03-28 10:11:50 +0000 |
---|---|---|
committer | jmc <jmc@pkgsrc.org> | 2002-03-28 10:11:50 +0000 |
commit | 2ce70215a8fc4813f375a1f3d3e041aeab8fcd11 (patch) | |
tree | 5d91389ec4345308d97883c01c60c9f3c4f40ae6 /lang/gcc/Makefile | |
parent | ae7898d267ead61384e72c6d84b79fe767d7db7c (diff) | |
download | pkgsrc-2ce70215a8fc4813f375a1f3d3e041aeab8fcd11.tar.gz |
Update patch set against a sync of source from gnusrc/dist/toolchain.
Not very many overall changes. Main ones include
1. Support for powerpc, arm32 and vax
2. Makefile.gcc can now be included by anything which depends on gcc versions.
If the version installed isn't 2.95.3 it'll add itself as a BUILD_DEPENDS.
(XXX: any of the makefile's in pkgsrc should be checked and change to use
this)
3. Remove special PLIST.NetBSD-sparc as it's no longer needed
4. Change post-extract loop to pick up any arch files from FILESDIR without
having to hardcode all the archs
5. Remove arch restrictions as this should work on any arch supported by the
main source tree as of 03/28/02
6. Add PKGREVISION as this clearly isn't stock 2.95.3 (it doesn't change
gcc --version so version checks won't care).
Diffstat (limited to 'lang/gcc/Makefile')
-rw-r--r-- | lang/gcc/Makefile | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile index 6a21dcbf0af..75af9e8868f 100644 --- a/lang/gcc/Makefile +++ b/lang/gcc/Makefile @@ -1,20 +1,21 @@ -# $NetBSD: Makefile,v 1.38 2002/03/25 14:43:00 cjep Exp $ +# $NetBSD: Makefile,v 1.39 2002/03/28 10:11:50 jmc Exp $ # Make sure that the version number in "Makefile.gcc" matches this. DISTNAME= gcc-2.95.3 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_GNU:=gcc/} +PKGREVISION= 1 +# +# Synced from patches against main source tree as of: +# +# 03/28/02 MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.gnu.org/software/gcc/gcc.html COMMENT= GNU Compiler Collection BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison -# The platforms listed below are the only tested platforms so far. -# If you get gcc working on other platforms, then please add them. -ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-arm32 SunOS-*-* - USE_GMAKE= YES HAS_CONFIGURE= YES CONFIGURE_ARGS= --host=${MACHINE_GNU_PLATFORM} \ @@ -33,10 +34,6 @@ WRKSRC= ${WRKDIR}/objdir CONFIGURE_ARGS+= --with-gnu-as --with-gnu-ld --infodir=${PREFIX}/info GCC_PREFIX= ${LOCALBASE}/${PKGNAME} -.if ${MACHINE_PLATFORM:MNetBSD-*-sparc} -PLIST_SRC= ${PKGDIR}/PLIST.NetBSD-sparc -PLIST_SRC+= ${PKGDIR}/PLIST -.endif .else .if (${CC} != gcc) ALL_TARGET= bootstrap @@ -51,11 +48,17 @@ post-extract: ${MKDIR} ${WRKSRC} cd ${WRKSRC}/../${DISTNAME}/gcc/config; \ ${CP} ${FILESDIR}/xm-netbsd.h .; \ - for ARCH in arm arm i386 m68k sh sparc vax; do \ + ${CP} ${FILESDIR}/xm-target64.h .; \ + for FILE in ${FILESDIR}/*_* ; do \ + ARCH=`basename $${FILE} | cut -d_ -f1`; \ + DEST=`basename $${FILE} | sed -e "s/$${ARCH}_//"`; \ ${MKDIR} $${ARCH}; \ - ${CP} ${FILESDIR}/$${ARCH}_netbsd-elf.h $${ARCH}/netbsd-elf.h; \ + ${CP} $${FILE} $${ARCH}/$${DEST}; \ done; \ - ${CP} ${FILESDIR}/sparc_netbsd-elf-common.h sparc/netbsd-elf-common.h + cd ${WRKSRC}/../${DISTNAME}; \ + for i in gcc/config/alpha/netbsd-elf.h gcc/config/arm/t-netbsd gcc/config/mips/x-netbsd libf2c/libF77/dtime_.c libf2c/libF77/etime_.c; do \ + ${RM} $${i};\ + done post-patch: ${ECHO} "bogus" >${WRKSRC}/../${DISTNAME}/gcc/cstamp-h.in |