pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/gccAda-3.4 gccAda-3.4.0 This is the gcc 3.4 Ada c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5ecf04093276
branches:  trunk
changeset: 476016:5ecf04093276
user:      shannonjr <shannonjr%pkgsrc.org@localhost>
date:      Tue Jun 01 18:32:03 2004 +0000

description:
gccAda-3.4.0 This is the gcc 3.4 Ada compiler
This package conflicts with no other package.

diffstat:

 lang/gccAda-3.4/DESCR                     |     5 +
 lang/gccAda-3.4/MESSAGE                   |    10 +
 lang/gccAda-3.4/Makefile                  |   144 +++
 lang/gccAda-3.4/PLIST                     |     2 +
 lang/gccAda-3.4/README                    |    22 +
 lang/gccAda-3.4/buildlink3.mk             |    41 +
 lang/gccAda-3.4/distinfo                  |    11 +
 lang/gccAda-3.4/files/4netbsdintnam.ads   |   117 ++
 lang/gccAda-3.4/files/5netbsd64osinte.adb |   115 ++
 lang/gccAda-3.4/files/5netbsd64osinte.ads |   646 ++++++++++++++++
 lang/gccAda-3.4/files/5netbsd64system.ads |   150 +++
 lang/gccAda-3.4/files/5netbsdintman.adb   |   274 ++++++
 lang/gccAda-3.4/files/5netbsdosinte.adb   |   115 ++
 lang/gccAda-3.4/files/5netbsdosinte.ads   |   634 ++++++++++++++++
 lang/gccAda-3.4/files/5netbsdparame.adb   |    79 ++
 lang/gccAda-3.4/files/5netbsdsystem.ads   |   150 +++
 lang/gccAda-3.4/files/5netbsdtaprop.adb   |  1136 +++++++++++++++++++++++++++++
 lang/gccAda-3.4/files/5netbsdtasinf.ads   |   143 +++
 lang/gccAda-3.4/files/5netbsdtpopse.adb   |    52 +
 lang/gccAda-3.4/files/7netbsdtpopsp.adb   |   100 ++
 lang/gccAda-3.4/files/ada                 |     8 +
 lang/gccAda-3.4/files/ada_lwp_self.c      |     6 +
 lang/gccAda-3.4/files/adasignal.c         |    34 +
 lang/gccAda-3.4/files/dummy_pthreads.c    |    30 +
 lang/gccAda-3.4/files/netbsd64macro.dfs   |   301 +++++++
 lang/gccAda-3.4/patches/patch-ae          |    59 +
 lang/gccAda-3.4/patches/patch-af          |    13 +
 lang/gccAda-3.4/patches/patch-ag          |    22 +
 lang/gccAda-3.4/patches/patch-ba          |    32 +
 lang/gccAda-3.4/patches/patch-bb          |    13 +
 lang/gccAda-3.4/patches/patch-varasm      |    13 +
 lang/gccAda-3.4/preconfigure.mk           |     9 +
 32 files changed, 4486 insertions(+), 0 deletions(-)

diffs (truncated from 4614 to 300 lines):

diff -r 5add40ce8ff8 -r 5ecf04093276 lang/gccAda-3.4/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gccAda-3.4/DESCR     Tue Jun 01 18:32:03 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 5add40ce8ff8 -r 5ecf04093276 lang/gccAda-3.4/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gccAda-3.4/MESSAGE   Tue Jun 01 18:32:03 2004 +0000
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/06/01 18:32:03 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 5add40ce8ff8 -r 5ecf04093276 lang/gccAda-3.4/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gccAda-3.4/Makefile  Tue Jun 01 18:32:03 2004 +0000
@@ -0,0 +1,144 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/06/01 18:32:03 shannonjr Exp $
+#
+
+DISTNAME=      gccAda${GCC34_PKGMODIF}-${GCC_VERSION}
+CATEGORIES=    lang
+MASTER_SITES=  ${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/}
+DISTFILES=     gcc-${GCC_VERSION}.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.0
+
+USE_BUILDLINK3=                YES
+USE_PKGINSTALL=                YES
+USE_GNU_TOOLS+=                make
+HAS_CONFIGURE=         YES
+CONFIGURE_ARGS+=       --enable-languages="c,ada"
+WRKSRC=                ${WRKDIR}/gcc-${GCC_VERSION}
+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_GCC3      =# Define to use lang/gcc3-ada
+#USE_GCC34     =# Define to use gcc-3.4
+# 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_GCC3) && !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=       ${PKGNAME_NOREV}
+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/gcc-3.4/preconfigure.mk"
+.elif defined(ALT_GCC)
+pre-configure:
+       (cd ${WRKDIR}/.buildlink && ${MKDIR} ${RALT_GCC_RTS} && \
+       cd ${RALT_GCC_RTS} && ${LN} -s ${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_GCC3)
+.include "../../lang/gcc3-ada/buildlink3.mk"
+.elif defined(USE_GCC34)
+BUILDLINK_DEPMETHOD.gcc-3.4=   build
+.include "../../lang/gcc-3.4/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 5add40ce8ff8 -r 5ecf04093276 lang/gccAda-3.4/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gccAda-3.4/PLIST     Tue Jun 01 18:32:03 2004 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/01 18:32:03 shannonjr Exp $
+bin/ada
diff -r 5add40ce8ff8 -r 5ecf04093276 lang/gccAda-3.4/README
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gccAda-3.4/README    Tue Jun 01 18:32:03 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/gcc3-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/gcc-3.4.0 (which contains Ada).
+
+You can download a pre-built version this package
+(suitable for bootstrapping lang/gcc-3.4.0) from: 
+
+http://www.johnrshannon.com/NetBSD/ix86/gccAda-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 5add40ce8ff8 -r 5ecf04093276 lang/gccAda-3.4/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gccAda-3.4/buildlink3.mk     Tue Jun 01 18:32:03 2004 +0000
@@ -0,0 +1,41 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/06/01 18:32:03 shannonjr Exp $
+
+BUILDLINK_DEPTH:=       ${BUILDLINK_DEPTH}+
+GCCADA_BUILDLINK3_MK:=  ${GCCADA_BUILDLINK3_MK}+
+BUILDLINK_PREFIX.gccAda-3.4.0:=${LOCALBASE}/gccAda-3.4.0
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=     gccAda-3.4.0
+.endif
+
+BUILDLINK_PACKAGES:=    ${BUILDLINK_PACKAGES:NgccAda-3.4.0}
+BUILDLINK_PACKAGES+=    gccAda-3.4.0
+
+.if !empty(GCCADA_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.gccAda-3.4.0+=      gccAda>=3.4.0
+BUILDLINK_PKGSRCDIR.gccAda-3.4.0?=    ../../lang/gccAda-3.4
+BUILDLINK_ENV+= ADAC=${LOCALBASE}/gccAda-3.4.0/bin/gcc
+_GCC_ARCHDIR!= ${DIRNAME} `${LOCALBASE}/gccAda-3.4.0/bin/gcc --print-libgcc-file-name`
+.  if empty(_GCC_ARCHDIR:M*not_found*)
+BUILDLINK_LIBDIRS.gccAda-3.4.0+=       lib ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gccAda-3.4.0}\///}
+BUILDLINK_LIBDIRS.gccAda-3.4.0+=       ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gccAda-3.4.0}\///}/adalib
+BUILDLINK_INCDIRS.gccAda-3.4.0+=       include ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gccAda-3.4.0}\///}/adainclude
+.  endif
+.endif  # GCCADA_BUILDLINK3_MK
+
+BUILDLINK_PKGSRCDIR.gccAda-3.4.0?=     ../../lang/gccAda-3.4.0
+BUILDLINK_FILES_CMD.gccAda-3.4.0=      (cd  ${BUILDLINK_PREFIX.gccAda-3.4.0} && \
+       ${FIND} bin libexec lib \( -type file -o -type link \) -print)
+BUILDLINK_TRANSFORM.gccAda-3.4.0=      -e s:\buildlink:buildlink/gccAda-3.4.0:
+
+# Packages that link against shared libraries need a full dependency.
+.  if defined(USE_GCC_SHLIB)
+BUILDLINK_DEPMETHOD.gccAda-3.4.0?=     full
+.  else
+BUILDLINK_DEPMETHOD.gccAda-3.4.0?=     build
+.  endif
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}
diff -r 5add40ce8ff8 -r 5ecf04093276 lang/gccAda-3.4/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gccAda-3.4/distinfo  Tue Jun 01 18:32:03 2004 +0000
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/06/01 18:32:03 shannonjr Exp $
+
+SHA1 (gcc-3.4.0.tar.bz2) = 8e4630a95ecc71533969d8415dbe063ca33572ee
+Size (gcc-3.4.0.tar.bz2) = 27258902 bytes
+SHA1 (patch-ae) = 36931541dea6ffa431142f801e0675122454ebff
+SHA1 (patch-af) = cdd6b0d13c557996cb6582d7fa5dc651d37ee0ee
+SHA1 (patch-ag) = beee5294d387faafa640ab048823499da629e715
+SHA1 (patch-ba) = 6fc03fc155f630329f7dc831eece6b6464b453a6
+SHA1 (patch-bb) = aa088194fb073fcde8d2f558ed55ec36106d60d0
+SHA1 (patch-function_c) = 64398f40f62ad4c8b9c8f861b802403a4f5aa3be
+SHA1 (patch-varasm) = 3dfe9a56ebd464d573104511e63dc3599ab5c834
diff -r 5add40ce8ff8 -r 5ecf04093276 lang/gccAda-3.4/files/4netbsdintnam.ads
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gccAda-3.4/files/4netbsdintnam.ads   Tue Jun 01 18:32:03 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