pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/gcc34-ada This is the Ada compiler from the gcc 3...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e1aedb423f1d
branches: trunk
changeset: 477314:e1aedb423f1d
user: shannonjr <shannonjr%pkgsrc.org@localhost>
date: Tue Jun 29 18:00:17 2004 +0000
description:
This is the Ada compiler from the gcc 3.4 compiler suite.
diffstat:
lang/gcc34-ada/DESCR | 5 +
lang/gcc34-ada/MESSAGE | 10 +
lang/gcc34-ada/Makefile | 146 +
lang/gcc34-ada/PLIST | 2 +
lang/gcc34-ada/README | 22 +
lang/gcc34-ada/buildlink3.mk | 40 +
lang/gcc34-ada/distinfo | 12 +
lang/gcc34-ada/files/4netbsdintnam.ads | 117 +
lang/gcc34-ada/files/5netbsd64osinte.ads | 646 ++++
lang/gcc34-ada/files/5netbsd64system.ads | 150 +
lang/gcc34-ada/files/5netbsdintman.adb | 274 +
lang/gcc34-ada/files/5netbsdosinte.adb | 115 +
lang/gcc34-ada/files/5netbsdosinte.ads | 634 ++++
lang/gcc34-ada/files/5netbsdparame.adb | 79 +
lang/gcc34-ada/files/5netbsdsystem.ads | 150 +
lang/gcc34-ada/files/5netbsdtaprop.adb | 1136 +++++++
lang/gcc34-ada/files/5netbsdtasinf.ads | 143 +
lang/gcc34-ada/files/5netbsdtpopse.adb | 52 +
lang/gcc34-ada/files/7netbsdtpopsp.adb | 100 +
lang/gcc34-ada/files/ada | 8 +
lang/gcc34-ada/files/ada_lwp_self.c | 6 +
lang/gcc34-ada/files/adasignal.c | 34 +
lang/gcc34-ada/files/baseline_symbols.txt | 2033 ++++++++++++++
lang/gcc34-ada/files/baseline_symbols64.txt | 2033 ++++++++++++++
lang/gcc34-ada/files/dummy_pthreads.c | 30 +
lang/gcc34-ada/files/netbsd64macro.dfs | 301 ++
lang/gcc34-ada/patches/patch-ae | 59 +
lang/gcc34-ada/patches/patch-af | 13 +
lang/gcc34-ada/patches/patch-ag | 22 +
lang/gcc34-ada/patches/patch-ba | 32 +
lang/gcc34-ada/patches/patch-bb | 13 +
lang/gcc34-ada/patches/patch-function_c | 36 +
lang/gcc34-ada/patches/patch-libstdc++-v3_configure_host | 24 +
lang/gcc34-ada/patches/patch-varasm | 13 +
lang/gcc34-ada/preconfigure.mk | 9 +
35 files changed, 8499 insertions(+), 0 deletions(-)
diffs (truncated from 8639 to 300 lines):
diff -r 9bfa2a36bdd6 -r e1aedb423f1d lang/gcc34-ada/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34-ada/DESCR Tue Jun 29 18:00:17 2004 +0000
@@ -0,0 +1,5 @@
+This is the Ada compiler from the gcc 3.4 compiler suite.
+
+This package has a test target. For testing (only), this
+package requires dejagnu. As part of the tests, acats
+(the Ada compiler validation suite) is run.
diff -r 9bfa2a36bdd6 -r e1aedb423f1d lang/gcc34-ada/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34-ada/MESSAGE Tue Jun 29 18:00:17 2004 +0000
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/06/29 18:00:17 shannonjr Exp $
+
+A wrapper, "ada", has been placed in ${LOCALBASE}/bin to setup the
+environment and call the tools in this package. So, to make a program
+with a main program file "main.adb" you would type:
+
+ ada gnatmake main.adb
+
+===========================================================================
diff -r 9bfa2a36bdd6 -r e1aedb423f1d lang/gcc34-ada/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34-ada/Makefile Tue Jun 29 18:00:17 2004 +0000
@@ -0,0 +1,146 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/06/29 18:00:17 shannonjr Exp $
+#
+
+DISTNAME= gcc-${GCC_VERSION}-${GCC_VERSION_DATE}
+PKGNAME= gcc34-ada-${GCC_VERSION}
+CATEGORIES= lang
+MASTER_SITES= ftp://gcc.gnu.org/pub/gcc/snapshots/${GCC_VERSION}-${VERSION_DATE}/
+#MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= shannonjr%NetBSD.org@localhost
+HOMEPAGE= http://www.gnu.org/software/gcc/gcc.html
+COMMENT= This is the gcc 3.4 Ada compiler
+
+BUILD_USES_MSGFMT= YES
+
+GCC_VERSION= 3.4.1
+GCC_VERSION_DATE= 20040625
+
+USE_BUILDLINK3= YES
+USE_PKGINSTALL= YES
+USE_GNU_TOOLS+= make
+HAS_CONFIGURE= YES
+CONFIGURE_ARGS+= --enable-languages="c,ada"
+PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
+
+.include "../../mk/bsd.prefs.mk"
+
+# Ada bootstrap compiler section
+# An Ada compiler is required to build the Ada compiler. Two
+may be used:
+#USE_GCC33 =# Define to use gcc-3.3.x-ada
+#USE_GCC34 =# Define to use gcc34
+# You may also specify the path of a gcc/gnat Ada compiler
+# outside of the pkgsrc system by specifying the full path
+# of the compiler (example) below:
+#ALT_GCC= prefix/bin/gcc
+.if defined(ALT_GCC)
+. if exists(${ALT_GCC})
+ALT_GCC_PREFIX:= ${ALT_GCC:H}/..
+ALT_GCC_RTS!= ${FIND} ${ALT_GCC_PREFIX} -name adalib
+RALT_GCC_RTS= ${ALT_GCC_RTS:S%${LOCALBASE}%%:S%/%%}
+. else
+PKG_SKIP_REASON= "Missing bootstrap Ada compiler"
+. endif
+.endif
+.if !defined(USE_GCC33) && !defined(USE_GCC34) && !defined(ALT_GCC)
+PKG_SKIP_REASON= "An Ada bootstrap compiler must be specified"
+.endif
+
+# Make location overridable, to allow ping-pong bootstraps.
+GCC34_DEFAULT_SUBPREFIX= gcc34-ada
+GCC34_INSTALLTO_SUBPREFIX?= ${GCC34_DEFAULT_SUBPREFIX}
+.if ${GCC34_INSTALLTO_SUBPREFIX} != ${GCC34_DEFAULT_SUBPREFIX}
+GCC34_PKGMODIF= ${GCC34_INSTALLTO_SUBPREFIX}
+.endif
+
+GCC_SUBPREFIX= ${GCC34_INSTALLTO_SUBPREFIX}
+GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX}
+PLIST_SUBST+= GCC_SUBPREFIX=${GCC_SUBPREFIX}
+FILES_SUBST+= GCC_PREFIX=${GCC_PREFIX}
+FILES_SUBST+= PKGNAME=${PKGNAME}
+MESSAGE_SUBST+= GCC_PREFIX=${GCC_PREFIX}
+CONFIGURE_ARGS+= --prefix=${GCC_PREFIX}
+GCC_PLATFORM= ${MACHINE_GNU_ARCH}--netbsdelf2.0
+PTHREAD_OPTS+= require native
+CPPFLAGS+= -I${BUILDLINK_DIR}/include
+CFLAGS+= -I${BUILDLINK_DIR}/include
+CONFIGURE_ARGS+= --host=${GCC_PLATFORM}
+CONFIGURE_ARGS+= --enable-threads=gnat
+GCC_DIR= ${WRKDIR}/.gcc
+
+post-patch:
+ (cd files; \
+ ${CP} adasignal.c ${WRKSRC}/gcc/ada; \
+ ${CP} ada_lwp_self.c ${WRKSRC}/gcc/ada; \
+ ${CP} dummy_pthreads.c ${WRKSRC}/gcc/ada; \
+ for i in *.adb *.ads ; do \
+ ${CP} $$i ${WRKSRC}/gcc/ada; \
+ done )
+
+.if defined(USE_GCC34)
+pre-configure:
+.include "../../lang/gcc34/preconfigure.mk"
+.elif defined(ALT_GCC)
+pre-configure:
+ (cd ${WRKDIR}/.buildlink && ${MKDIR} ${RALT_GCC_RTS} && \
+ cd ${RALT_GCC_RTS} && ${LN} -sf ${ALT_GCC_RTS}/libgnat.a .)
+ (cd ${ALT_GCC:H} && \
+ files=`${FIND} . -type f \( -perm -0100 \)` && \
+ cd ${GCC_DIR}/bin/ && \
+ for file in ${ALT_GCC:T} $${files} ; do \
+ $(ECHO) '#!/bin/sh' > $${file}; \
+ $(ECHO) -n "exec ${ALT_GCC:H}/$${file} " >>$${file}; \
+ $(ECHO) '"$$@"' >>$${file}; \
+ $(CHMOD) +x $${file}; \
+ done )
+.endif
+
+do-configure:
+ ((${TEST} -d ${WRKDIR}/obj || ${MKDIR} ${WRKDIR}/obj) && \
+ (cd ${WRKDIR}/obj && ${SETENV} ${CONFIGURE_ENV} ${WRKSRC}/configure ${CONFIGURE_ARGS}))
+
+do-build:
+ (cd ${WRKDIR}/obj && ${SETENV} ${MAKE_ENV} ${GMAKE} bootstrap)
+ (cd ${WRKDIR}/obj/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} gnatlib_and_tools)
+
+do-test:
+.if (${MACHINE_GNU_ARCH} == "x86_64")
+ (cd files && ${CP} netbsd64macro.dfs ${WRKSRC}/gcc/testsuite/ada/acats/support/macro.dfs)
+.endif
+ (cd ${WRKDIR}/obj/gcc && ${GMAKE} check-ada)
+
+do-install:
+ (cd ${WRKDIR}/obj && ${SETENV} ${MAKE_ENV} ${GMAKE} ${INSTALL} \
+ && ${TEST} -f ${GCC_PREFIX}/bin/cc || ${LN} -f ${GCC_PREFIX}/bin/gcc ${GCC_PREFIX}/bin/cc)
+ (SPECPATH=`${GCC_PREFIX}/bin/gcc -print-file-name=specs` && \
+ for EXPANDEDSPECPATH in $${SPECPATH} ; do \
+ SPECDIR=`${DIRNAME} $${EXPANDEDSPECPATH}`; \
+ ${ECHO} $${SPECDIR}/adainclude > $${SPECDIR}/ada_source_path; \
+ ${ECHO} $${SPECDIR}/adalib > $${SPECDIR}/ada_object_path; \
+ done )
+
+post-install:
+ @${SED} ${FILES_SUBST_SED} ${FILESDIR}/ada > ${WRKDIR}/ada
+ ${ECHO} '"$$@"' >> ${WRKDIR}/ada
+ ${INSTALL_DATA} ${WRKDIR}/ada ${LOCALBASE}/bin/ada
+ ${CHMOD} +x ${WRKDIR}/ada ${LOCALBASE}/bin/ada
+ ${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}
+
+.if defined(USE_GCC33)
+.include "../../lang/gcc3-ada/buildlink3.mk"
+.elif defined(USE_GCC34)
+BUILDLINK_DEPMETHOD.gcc34= build
+.include "../../lang/gcc34/buildlink3.mk"
+.endif
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9bfa2a36bdd6 -r e1aedb423f1d lang/gcc34-ada/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34-ada/PLIST Tue Jun 29 18:00:17 2004 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/29 18:00:17 shannonjr Exp $
+bin/ada
diff -r 9bfa2a36bdd6 -r e1aedb423f1d lang/gcc34-ada/README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34-ada/README Tue Jun 29 18:00:17 2004 +0000
@@ -0,0 +1,22 @@
+The Ada compiler front-end of gcc is itself written
+in Ada. Consequently, an Ada compiler must be used
+to build this pkg. In pkgsrc, lang/gcc33-ada is version
+3.3 of the gcc Ada compiler; it also requires an Ada
+compiler to build. This pkg may also be built using
+lang/gcc3 (which contains Ada).
+
+You can download a pre-built version this package
+(suitable for bootstrapping lang/gcc3) from:
+
+http://www.johnrshannon.com/NetBSD/ix86/gcc-adaAda-3.4.0.tgz
+http://www.johnrshannon.com/NetBSD/pentium4/gccAda-3.4.0.tgz
+http://www.johnrshannon.com/NetBSD/x86_64/gccAda-3.4.0.tgz
+
+The first two pkgs were built on NetBSD 2.0-BETA. The AMD64
+pkg was built under NetBSD 1.6ZL.
+
+Full Ada language support is provided for:
+ Intel Ix86 on NetBSD with native pthread support
+ AMD 64 on NetBSD with native pthread support
+
+See comments in Makefile on selecting a bootstrap compiler.
diff -r 9bfa2a36bdd6 -r e1aedb423f1d lang/gcc34-ada/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34-ada/buildlink3.mk Tue Jun 29 18:00:17 2004 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/06/29 18:00:17 shannonjr Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+GCCADA_BUILDLINK3_MK:= ${GCCADA_BUILDLINK3_MK}+
+BUILDLINK_PREFIX.gcc34-ada:=${LOCALBASE}/gcc34-ada
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= gcc34-ada
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ngcc34-ada}
+BUILDLINK_PACKAGES+= gcc34-ada
+
+.if !empty(GCCADA_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.gcc34-ada+= gcc34-ada>=3.4.1
+BUILDLINK_PKGSRCDIR.gcc34-ada?= ../../lang/gcc34-ada
+BUILDLINK_ENV+= ADAC=${BUILDLINK_PREFIX.gcc34-ada}/bin/gcc
+_GCC_ARCHDIR!= ${DIRNAME} `${BUILDLINK_PREFIX.gcc34-ada}/bin/gcc --print-libgcc-file-name`
+. if empty(_GCC_ARCHDIR:M*not_found*)
+BUILDLINK_LIBDIRS.gcc34-ada+= lib ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34-ada}\///}
+BUILDLINK_LIBDIRS.gcc34-ada+= ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34-ada}\///}/adalib
+BUILDLINK_INCDIRS.gcc34-ada+= include ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34-ada}\///}/adainclude
+. endif
+.endif # GCCADA_BUILDLINK3_MK
+
+BUILDLINK_FILES_CMD.gcc34-ada= (cd ${BUILDLINK_PREFIX.gcc34-ada} && \
+ ${FIND} bin libexec lib \( -type file -o -type link \) -print)
+BUILDLINK_TRANSFORM.gcc34-ada= -e s:\buildlink:buildlink/gcc34-ada:
+
+# Packages that link against shared libraries need a full dependency.
+. if defined(USE_GCC_SHLIB)
+BUILDLINK_DEPMETHOD.gcc34-ada?= full
+. else
+BUILDLINK_DEPMETHOD.gcc34-ada?= build
+. endif
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff -r 9bfa2a36bdd6 -r e1aedb423f1d lang/gcc34-ada/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34-ada/distinfo Tue Jun 29 18:00:17 2004 +0000
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/06/29 18:00:17 shannonjr Exp $
+
+SHA1 (gcc-3.4.1-20040625.tar.bz2) = b27df941f0a99c20243400d5571562e710fca020
+Size (gcc-3.4.1-20040625.tar.bz2) = 27194129 bytes
+SHA1 (patch-ae) = 9b9e4ec15815626c81936460ce834303381f001c
+SHA1 (patch-af) = cdd6b0d13c557996cb6582d7fa5dc651d37ee0ee
+SHA1 (patch-ag) = beee5294d387faafa640ab048823499da629e715
+SHA1 (patch-ba) = 6fc03fc155f630329f7dc831eece6b6464b453a6
+SHA1 (patch-bb) = aa088194fb073fcde8d2f558ed55ec36106d60d0
+SHA1 (patch-function_c) = 64398f40f62ad4c8b9c8f861b802403a4f5aa3be
+SHA1 (patch-libstdc++-v3_configure_host) = f680066ac285cd9cd3fea6713ce3e8a6d0e1c14c
+SHA1 (patch-varasm) = 3dfe9a56ebd464d573104511e63dc3599ab5c834
diff -r 9bfa2a36bdd6 -r e1aedb423f1d lang/gcc34-ada/files/4netbsdintnam.ads
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34-ada/files/4netbsdintnam.ads Tue Jun 29 18:00:17 2004 +0000
@@ -0,0 +1,117 @@
+------------------------------------------------------------------------------
+-- --
+-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
+-- --
+-- A D A . I N T E R R U P T S . N A M E S --
+-- --
+-- S p e c --
+-- --
+-- --
+-- Copyright (C) 1991-2002 Free Software Foundation, Inc. --
+-- --
+-- GNARL is free software; you can redistribute it and/or modify it under --
+-- terms of the GNU General Public License as published by the Free Soft- --
+-- ware Foundation; either version 2, or (at your option) any later ver- --
+-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
+-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
+-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
+-- for more details. You should have received a copy of the GNU General --
+-- Public License distributed with GNARL; see file COPYING. If not, write --
+-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
+-- MA 02111-1307, USA. --
+-- --
+-- As a special exception, if other files instantiate generics from this --
+-- unit, or you link this unit with other files to produce an executable, --
+-- this unit does not by itself cause the resulting executable to be --
+-- covered by the GNU General Public License. This exception does not --
+-- however invalidate any other reasons why the executable file might be --
+-- covered by the GNU Public License. --
+-- --
+-- GNARL was developed by the GNARL team at Florida State University. --
+-- Extensive contributions were provided by Ada Core Technologies Inc. --
Home |
Main Index |
Thread Index |
Old Index