diff options
author | tron <tron@pkgsrc.org> | 2000-03-24 23:41:20 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2000-03-24 23:41:20 +0000 |
commit | 9b768eda3848d6aa2229b54fc21934718f83e2b1 (patch) | |
tree | 7d4408b58d84bba0e3725aec9b569a84becec2a7 /lang/gcc/Makefile | |
parent | 476295e53a8192e382e18bfee9dd8831309f1233 (diff) | |
download | pkgsrc-9b768eda3848d6aa2229b54fc21934718f83e2b1.tar.gz |
Initial import of unfinished "gcc-2.95.2" package:
GNU Compiler Collection
Diffstat (limited to 'lang/gcc/Makefile')
-rw-r--r-- | lang/gcc/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile new file mode 100644 index 00000000000..61a1bcf367a --- /dev/null +++ b/lang/gcc/Makefile @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/03/24 23:41:20 tron Exp $ + +DISTNAME= gcc-2.95.2 +CATEGORIES= lang +MASTER_SITES= ${MASTER_SITE_GNU:=gcc/} + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.gnu.org/software/gcc/gcc.html + +BUILD_DEPENDS+= ${LOCALBASE}/bin/bison:../../devel/bison + +BROKEN= package needs more work, see "Makefile". +# TODO: +# - get "libiberty" to build +# - add files and directores to package list +# - support more platforms + +# NetBSD-i386-elf is the only tested platform so far. If you got it +# working on other platforms please add them. +ONLY_FOR_PLATFORM= NetBSD-1.4[E-Z]-i386 NetBSD-1.[5-9]*-i386 + +GNU_CONFIGURE= yes +USE_GMAKE= yes +CONFIGURE_SCRIPT= ../${DISTNAME}/configure + +CONFIGURE_ARGS+= --with-gnu-as --with-gnu-ld +WRKSRC= ${WRKDIR}/obj-${MACHINE_GNU_PLATFORM} + +CONFDIR= ${WRKDIR}/${DISTNAME}/gcc/config +# Files taken from "src/gnu/dist/gcc/config". +CONFFILES= i386_netbsd-elf.h i386_netbsd.h + +post-extract: + ${MKDIR} ${WRKSRC} + for FILE in ${CONFFILES}; do \ + case "$$FILE" in \ + *_* ) ${CP} ${FILESDIR}/$$FILE ${CONFDIR}/$${FILE%%_*}/$${FILE#*_} \ + ;; \ + * ) ${CP} ${FILESDIR}/$$FILE ${CONFDIR} \ + ;; \ + esac; \ + done + +.include "../../mk/bsd.pkg.mk" |