diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2003-01-06 07:42:26 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2003-01-06 07:42:26 +0000 |
commit | c3d0fc5ae4f5117a15b41692753e9afb7c530395 (patch) | |
tree | 5d653030959b27670756c91a058b9a1a48a09517 /lang | |
parent | c43128bbc8fe17ce7424e2f5653d32e0deaa10ea (diff) | |
download | pkgsrc-c3d0fc5ae4f5117a15b41692753e9afb7c530395.tar.gz |
Initial import of GCC 3.2.1, the latest release of GNU Compiler
Collection, which currently contains front ends for C, C++,
Objective-C, Fortran, Java, and Ada.
For more detail, see
http://gcc.gnu.org/gcc-3.2/
XXX Only tested on NetBSD/i386 -current. Tests on Linux and Solaris
are very encouraged.
XXX buildlink2.mk is not provided, meaning no other packages can
depend on this for now.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc3/DESCR | 14 | ||||
-rw-r--r-- | lang/gcc3/MESSAGE | 7 | ||||
-rw-r--r-- | lang/gcc3/Makefile | 76 | ||||
-rw-r--r-- | lang/gcc3/PLIST | 94 | ||||
-rw-r--r-- | lang/gcc3/distinfo | 9 | ||||
-rw-r--r-- | lang/gcc3/files/gcc3.mk | 7 |
6 files changed, 207 insertions, 0 deletions
diff --git a/lang/gcc3/DESCR b/lang/gcc3/DESCR new file mode 100644 index 00000000000..47e02c70e88 --- /dev/null +++ b/lang/gcc3/DESCR @@ -0,0 +1,14 @@ +This directory contains the GNU Compiler Collection (GCC) version 3.2.1. +It includes all of the support for compiling C, C++, Objective C, Fortran, +Java, and Chill. + +The GNU Compiler Collection is free software. See the file COPYING for copying +permission. + +See the file gcc.texi (together with other files that it includes) for +installation and porting information. The file INSTALL contains a +copy of the installation information, as plain ASCII. + +See the Bugs chapter of the GCC Manual for how to report bugs +usefully. An online readable version of the manual is in the files +gcc.info*. diff --git a/lang/gcc3/MESSAGE b/lang/gcc3/MESSAGE new file mode 100644 index 00000000000..e6c2bc5ae3f --- /dev/null +++ b/lang/gcc3/MESSAGE @@ -0,0 +1,7 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2003/01/06 07:42:26 uebayasi Exp $ + +To use ${PKGNAME} include "${PREFIX}/etc/${PKGNAME}.mk" in your +BSD style makefile. + +=========================================================================== diff --git a/lang/gcc3/Makefile b/lang/gcc3/Makefile new file mode 100644 index 00000000000..990f85da730 --- /dev/null +++ b/lang/gcc3/Makefile @@ -0,0 +1,76 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/01/06 07:42:27 uebayasi Exp $ + +# Make sure that the version number in "Makefile.gcc" matches this. +DISTNAME= gcc-3.2.1 +CATEGORIES= lang +MASTER_SITES= ${MASTER_SITE_GNU:=gcc/} +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.gnu.org/software/gcc/gcc.html +COMMENT= GNU Compiler Collection + +# XXX Solaris not tested +ONLY_FOR_PLATFORM= NetBSD-* + +BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison + +USE_BUILDLINK2= YES +USE_GMAKE= YES + +HAS_CONFIGURE= YES +CONFIGURE_SCRIPT= ${WRKSRC}/configure +CONFIGURE_ARGS= --host=${MACHINE_GNU_PLATFORM} +CONFIGURE_ARGS+= --prefix=${GCC_PREFIX} +CONFIGURE_ARGS+= --enable-shared + +FILES_SUBST+= PKGNAME=${PKGNAME} +PLIST_SUBST+= GCC_VERSION=${PKGVERSION} + +INFO_FILES= cpp.info g77.info gcc.info gcj.info + +.include "../../mk/bsd.prefs.mk" + +#.if ${OPSYS} == "SunOS" +#CONFLICTS+= gcc-[0-9]* pgcc-[0-9]* +#. if ${CC} != "gcc" +#ALL_TARGET= bootstrap +#. endif +#GCC_PREFIX= ${PREFIX} +#PLIST_SRC= ${PKGDIR}/PLIST.SunOS +#MESSAGE_SRC= ${PKGDIR}/MESSAGE.SunOS +#.else +GCC_PREFIX= ${PREFIX}/${PKGNAME} +CONFIGURE_ARGS+= --with-gnu-as +CONFIGURE_ARGS+= --with-gnu-ld +CONFIGURE_ARGS+= --infodir=${PREFIX}/info +PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC +#.endif + +GCC_ARCHDIR= ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${PKGVERSION} +FILES_SUBST+= GCC_PREFIX=${GCC_PREFIX} + +pre-configure: + ${MKDIR} ${BUILD_DIRS} + ${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/gcc/c-gperf.h + ${ECHO} "bogus" > ${WRKSRC}/gcc/cstamp-h.in + +post-build: + @${SED} ${FILES_SUBST_SED} ${FILESDIR}/gcc3.mk > ${WRKDIR}/gcc3.mk + +post-install: + ${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${PREFIX}/etc/${PKGNAME}.mk + ${LN} -f ${GCC_PREFIX}/bin/gcc ${GCC_PREFIX}/bin/cc +# ${LN} -f ${GCC_PREFIX}/bin/g77 ${GCC_PREFIX}/bin/f77 + ${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC} + ${FIND} ${GCC_PREFIX} \( -type f -o -type l \) -print \ + | ${SORT} | ${SED} -e "s,${PREFIX}/,,g" \ + >> ${PLIST_SRC} + ${FIND} ${GCC_PREFIX} -type d -print \ + | ${SORT} -r | ${SED} -e "s,${PREFIX}/,@dirrm ,g" \ + >> ${PLIST_SRC} + +.include "../../mk/texinfo.mk" +.include "../../mk/bsd.pkg.install.mk" +.include "../../mk/bsd.pkg.mk" + +# Make bootstrap with compiler != gcc possible. +LDFLAGS= ${_STRIPFLAG_CC} diff --git a/lang/gcc3/PLIST b/lang/gcc3/PLIST new file mode 100644 index 00000000000..5ca9a0cb7d9 --- /dev/null +++ b/lang/gcc3/PLIST @@ -0,0 +1,94 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/01/06 07:42:27 uebayasi Exp $ +etc/${PKGNAME}.mk +@unexec ${INSTALL_INFO} --delete %D/info/cpp.info %D/info/dir +info/cpp.info +info/cpp.info-1 +info/cpp.info-2 +info/cpp.info-3 +info/cpp.info-4 +info/cpp.info-5 +@exec ${INSTALL_INFO} %D/info/cpp.info %D/info/dir +@unexec ${INSTALL_INFO} --delete %D/info/g77.info %D/info/dir +info/g77.info +info/g77.info-1 +info/g77.info-2 +info/g77.info-3 +info/g77.info-4 +info/g77.info-5 +info/g77.info-6 +info/g77.info-7 +info/g77.info-8 +info/g77.info-9 +info/g77.info-10 +info/g77.info-11 +info/g77.info-12 +info/g77.info-13 +info/g77.info-14 +info/g77.info-15 +info/g77.info-16 +info/g77.info-17 +info/g77.info-18 +info/g77.info-19 +info/g77.info-20 +info/g77.info-21 +@exec ${INSTALL_INFO} %D/info/g77.info %D/info/dir +@unexec ${INSTALL_INFO} --delete %D/info/gcc.info %D/info/dir +info/gcc.info +info/gcc.info-1 +info/gcc.info-2 +info/gcc.info-3 +info/gcc.info-4 +info/gcc.info-5 +info/gcc.info-6 +info/gcc.info-7 +info/gcc.info-8 +info/gcc.info-9 +info/gcc.info-10 +info/gcc.info-11 +info/gcc.info-12 +info/gcc.info-13 +info/gcc.info-14 +info/gcc.info-15 +info/gcc.info-16 +info/gcc.info-17 +info/gcc.info-18 +info/gcc.info-19 +info/gcc.info-20 +info/gcc.info-21 +info/gcc.info-22 +info/gcc.info-23 +@exec ${INSTALL_INFO} %D/info/gcc.info %D/info/dir +@unexec ${INSTALL_INFO} --delete %D/info/gccint.info %D/info/dir +info/gccint.info +info/gccint.info-1 +info/gccint.info-2 +info/gccint.info-3 +info/gccint.info-4 +info/gccint.info-5 +info/gccint.info-6 +info/gccint.info-7 +info/gccint.info-8 +info/gccint.info-9 +info/gccint.info-10 +info/gccint.info-11 +info/gccint.info-12 +info/gccint.info-13 +info/gccint.info-14 +info/gccint.info-15 +info/gccint.info-16 +info/gccint.info-17 +info/gccint.info-18 +info/gccint.info-19 +info/gccint.info-20 +info/gccint.info-21 +info/gccint.info-22 +info/gccint.info-23 +@exec ${INSTALL_INFO} %D/info/gccint.info %D/info/dir +@unexec ${INSTALL_INFO} --delete %D/info/cppinternals.info %D/info/dir +info/cppinternals.info +@exec ${INSTALL_INFO} %D/info/cppinternals.info %D/info/dir +@unexec ${INSTALL_INFO} --delete %D/info/gcj.info %D/info/dir +info/gcj.info +info/gcj.info-1 +info/gcj.info-2 +@exec ${INSTALL_INFO} %D/info/gcj.info %D/info/dir diff --git a/lang/gcc3/distinfo b/lang/gcc3/distinfo new file mode 100644 index 00000000000..e5a1eedc2dd --- /dev/null +++ b/lang/gcc3/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/01/06 07:42:27 uebayasi Exp $ + +SHA1 (gcc-3.2.1.tar.gz) = 0f8cf22207306100e8c0d3a12ff3bfa1648e1561 +Size (gcc-3.2.1.tar.gz) = 27103713 bytes +SHA1 (patch-aa) = 1f6daca7e6abe4c29987f1360d2c77e4c344b6d1 +SHA1 (patch-ab) = 0a9df2c9abb9a3965c085769eb09a6912f894388 +SHA1 (patch-ac) = f42b5ab389c3a51991e61cdb7533875003308001 +SHA1 (patch-ad) = 2fb8cda55220bd202a4b7948277d00f293718caf +SHA1 (patch-ae) = b9721d3e89a93736b926e1efcfb9d0fb4904277f diff --git a/lang/gcc3/files/gcc3.mk b/lang/gcc3/files/gcc3.mk new file mode 100644 index 00000000000..25851b7fc1b --- /dev/null +++ b/lang/gcc3/files/gcc3.mk @@ -0,0 +1,7 @@ +# $NetBSD: gcc3.mk,v 1.1.1.1 2003/01/06 07:42:27 uebayasi Exp $ +# +# make configuration file for @PKGNAME@ + +CC= @GCC_PREFIX@/bin/cc +CPP= @GCC_PREFIX@/bin/cpp +CXX= @GCC_PREFIX@/bin/c++ |