pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc34 This is the gcc 3.4 compiler suite.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aedc833f08d9
branches:  trunk
changeset: 477315:aedc833f08d9
user:      shannonjr <shannonjr%pkgsrc.org@localhost>
date:      Tue Jun 29 18:01:24 2004 +0000

description:
This is the gcc 3.4 compiler suite.

diffstat:

 lang/gcc34/DESCR                                     |     4 +
 lang/gcc34/MESSAGE                                   |    17 +
 lang/gcc34/Makefile                                  |   189 +
 lang/gcc34/PLIST                                     |     1 +
 lang/gcc34/README                                    |    19 +
 lang/gcc34/buildlink3.mk                             |    42 +
 lang/gcc34/distinfo                                  |    12 +
 lang/gcc34/files/4netbsdintnam.ads                   |   117 +
 lang/gcc34/files/5netbsd64osinte.ads                 |   646 +++++
 lang/gcc34/files/5netbsd64system.ads                 |   150 +
 lang/gcc34/files/5netbsdintman.adb                   |   274 ++
 lang/gcc34/files/5netbsdosinte.adb                   |   115 +
 lang/gcc34/files/5netbsdosinte.ads                   |   634 +++++
 lang/gcc34/files/5netbsdparame.adb                   |    79 +
 lang/gcc34/files/5netbsdsystem.ads                   |   150 +
 lang/gcc34/files/5netbsdtaprop.adb                   |  1136 ++++++++++
 lang/gcc34/files/5netbsdtasinf.ads                   |   143 +
 lang/gcc34/files/5netbsdtpopse.adb                   |    52 +
 lang/gcc34/files/7netbsdtpopsp.adb                   |   100 +
 lang/gcc34/files/ada_lwp_self.c                      |     6 +
 lang/gcc34/files/adasignal.c                         |    34 +
 lang/gcc34/files/baseline_symbols.txt                |  2033 ++++++++++++++++++
 lang/gcc34/files/baseline_symbols64.txt              |  2033 ++++++++++++++++++
 lang/gcc34/files/dummy_pthreads.c                    |    30 +
 lang/gcc34/files/netbsd64macro.dfs                   |   301 ++
 lang/gcc34/patches/patch-ae                          |    59 +
 lang/gcc34/patches/patch-af                          |    13 +
 lang/gcc34/patches/patch-ag                          |    22 +
 lang/gcc34/patches/patch-ba                          |    32 +
 lang/gcc34/patches/patch-bb                          |    13 +
 lang/gcc34/patches/patch-function_c                  |    36 +
 lang/gcc34/patches/patch-libstdc++-v3_configure_host |    24 +
 lang/gcc34/patches/patch-varasm                      |    13 +
 lang/gcc34/preconfigure.mk                           |    10 +
 34 files changed, 8539 insertions(+), 0 deletions(-)

diffs (truncated from 8675 to 300 lines):

diff -r e1aedb423f1d -r aedc833f08d9 lang/gcc34/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34/DESCR  Tue Jun 29 18:01:24 2004 +0000
@@ -0,0 +1,4 @@
+This is the gcc 3.4 compiler suite.
+
+This package has a test target. For testing (only), this
+package requires dejagnu.
diff -r e1aedb423f1d -r aedc833f08d9 lang/gcc34/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34/MESSAGE        Tue Jun 29 18:01:24 2004 +0000
@@ -0,0 +1,17 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/06/29 18:01:24 shannonjr Exp $
+
+${PKGNAME} has been installed in ${LOCALBASE}/gcc34
+
+To use this compiler in pkgsrc:
+
+   1) In your "pre-configure" target:
+   
+   .include "../../lang/gcc34/preconfigure.mk"
+   
+   2) .include "../../lang/gcc34/buildlink3.mk" 
+
+The "preconfigure.mk" makefile fragment will override the compiler tools
+selected by ../../mk/compiler.mk to use gcc version 3.4.x.
+
+===========================================================================
diff -r e1aedb423f1d -r aedc833f08d9 lang/gcc34/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34/Makefile       Tue Jun 29 18:01:24 2004 +0000
@@ -0,0 +1,189 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/06/29 18:01:24 shannonjr Exp $
+#
+
+DISTNAME=      gcc-${GCC_VERSION}-${GCC_VERSION_DATE}
+PKGNAME=       gcc34-${GCC_VERSION}
+CATEGORIES=    lang
+#MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/}
+MASTER_SITES=  ftp://gcc.gnu.org/pub/gcc/prerelease-${GCC_VERSION}-${GCC_VERSION_DATE}/
+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 compiler
+
+GCC_VERSION=           3.4.1
+GCC_VERSION_DATE=      20040625
+
+.include "../../mk/bsd.prefs.mk"
+
+# Optional languages - change as required
+#   If BUILD_ADA is YES, then you'll need to specify
+#   an Ada in the "Ada bootstrap compiler section"
+BUILD_DEFS=    BUILD_ADA BUILD_CXX BUILD_F77 \
+               BUILD_JAVA BUILD_OBJC
+BUILD_ADA?=    NO
+BUILD_CXX?=    YES
+BUILD_F77?=    YES
+BUILD_JAVA?=   NO
+BUILD_OBJC?=   YES
+
+LANGS='c'
+.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
+LANGS+='ada'
+.endif
+.if !empty(BUILD_CXX:M[Yy][Ee][Ss])
+LANGS+='c++'
+.endif
+.if !empty(BUILD_F77:M[Yy][Ee][Ss])
+LANGS+='f77'
+.endif
+.if !empty(BUILD_JAVA:M[Yy][Ee][Ss])
+LANGS+='java'
+.endif
+.if !empty(BUILD_OBJC:M[Yy][Ee][Ss])
+LANGS+='objc'
+.endif
+CONFIGURE_ARGS+=       --enable-languages="${LANGS}"
+CONFIGURE_ARGS+=       --with-system-zlib
+CONFIGURE_ARGS+=       --enable-shared
+CONFIGURE_ARGS+=       --enable-__cxa_atexit
+CONFIGURE_ARGS+=       --enable-nls
+CONFIGURE_ARGS+=       --without-included-gettext
+CONFIGURE_ARGS+=       --enable-long-long
+CONFIGURE_ARGS+=       --enable-clocale=generic
+
+USE_BUILDLINK3=                YES
+USE_PKGINSTALL=                YES
+USE_GNU_TOOLS+=                make
+HAS_CONFIGURE=         YES
+USE_MAKEINFO=          YES
+USE_NEW_TEXINFO=       YES
+PTHREAD_OPTS+= require native
+PLIST_SRC=     ${WRKDIR}/PLIST_DYNAMIC
+
+.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
+# Ada bootstrap compiler section
+# An Ada compiler is required to build the Ada compiler. Two
+may be used:
+#USE_GCC33ADA  =# Define to use gcc-3.3.x-ada
+#USE_GCC34ADA  =# Define to use gcc-3.4.x-ada
+# 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_GCC33ADA) && !defined(USE_GCC34ADA) && !defined(ALT_GCC)
+PKG_SKIP_REASON=       "An Ada bootstrap compiler must be specified to BUILD_ADA"
+.  endif
+.endif
+
+GCC_SUBPREFIX=         gcc34
+GCC_PREFIX=            ${PREFIX}/${GCC_SUBPREFIX}
+FILES_SUBST+=          PKGNAME=${PKGNAME}
+MESSAGE_SUBST+=                GCC_PREFIX=${GCC_PREFIX}
+CONFIGURE_ARGS+=       --prefix=${GCC_PREFIX}
+GCC_PLATFORM=          ${MACHINE_GNU_ARCH}--netbsdelf2.0
+CPPFLAGS+=     -I${BUILDLINK_DIR}/include
+CFLAGS+=       -I${BUILDLINK_DIR}/include
+CONFIGURE_ARGS+=       --host=${GCC_PLATFORM}
+GCC_ARCHSUBDIR=        ${GCC_SUBPREFIX}/lib/gcc/${GCC_PLATFORM}/${GCC_VERSION}
+GCC_ARCHDIR=   ${PREFIX}/${GCC_ARCHSUBDIR}
+
+post-patch:
+.if (${MACHINE_GNU_ARCH} == "x86_64")
+       (${TEST} -d ${WRKSRC}/libstdc++-v3/config/abi/x86_64-netbsdelf2.0 || \
+       ${MKDIR} ${WRKSRC}/libstdc++-v3/config/abi/x86_64-netbsdelf2.0 )
+       ${CP} ${FILESDIR}/baseline_symbols64.txt ${WRKSRC}/libstdc++-v3/config/abi/x86_64-netbsdelf2.0/baseline_symbols.txt
+.else
+       (${TEST} -d ${WRKSRC}/libstdc++-v3/config/abi/i386-netbsdelf2.0 || \
+       ${MKDIR} ${WRKSRC}/libstdc++-v3/config/abi/i386-netbsdelf2.0 )
+       ${CP} ${FILESDIR}/baseline_symbols.txt ${WRKSRC}/libstdc++-v3/config/abi/i386-netbsdelf2.0
+.endif
+       (cd ${FILESDIR}; \
+               ${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 ${BUILD_ADA} == "YES"
+.  if defined(USE_GCC34ADA)
+# Overide compiler.mk setup to use gcc-3.4.x-ada
+pre-configure:
+.include "../../lang/gcc34-ada/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} && \
+       bin_files=`${FIND} . -type f \( -perm -0100 \)` && \
+       cd ${WRKDIR}/.gcc/bin/ && \
+       for filename in ${ALT_GCC:T} $${bin_files} ; do \
+         $(ECHO) '#!/bin/sh' > $${filename}; \
+         $(ECHO) -n "exec ${ALT_GCC:H}/$${filename} " >>$${filename}; \
+         $(ECHO) '"$$@"' >>$${filename}; \
+         $(CHMOD) +x $${filename}; \
+       done )
+.  endif
+.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)
+.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
+       (cd ${WRKDIR}/obj/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} gnatlib_and_tools)
+.endif
+
+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 && ${GMAKE} -k check)
+
+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)
+.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
+               (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 )
+.endif
+
+post-install:
+       ${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/bsd.prefs.mk"
+.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
+.  if defined(USE_GCC33ADA)
+.include "../../lang/gcc3-ada/buildlink3.mk"
+.  elif  defined(USE_GCC34ADA)
+BUILDLINK_DEPMETHOD.gcc3-ada=build
+.include "../../lang/gcc34-ada/buildlink3.mk"
+.  endif
+.endif
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r e1aedb423f1d -r aedc833f08d9 lang/gcc34/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34/PLIST  Tue Jun 29 18:01:24 2004 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/29 18:01:24 shannonjr Exp $
diff -r e1aedb423f1d -r aedc833f08d9 lang/gcc34/README
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34/README Tue Jun 29 18:01:24 2004 +0000
@@ -0,0 +1,19 @@
+1) You may want to adjust the "Optional languages"  
+   section of the Makefile before building this package.
+
+2) 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 from 
+   lang/gcc34-ada.
+
+   For bootstrapping, you can download a pre-built version
+   of gcc 3.4.0 Ada 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.
diff -r e1aedb423f1d -r aedc833f08d9 lang/gcc34/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34/buildlink3.mk  Tue Jun 29 18:01:24 2004 +0000
@@ -0,0 +1,42 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/06/29 18:01:24 shannonjr Exp $
+
+BUILDLINK_DEPTH:=       ${BUILDLINK_DEPTH}+
+GCC34_BUILDLINK3_MK:=  ${GCC34_BUILDLINK3_MK}+
+BUILDLINK_PREFIX.gcc34:=${LOCALBASE}/gcc34
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=     gcc34
+.endif
+
+BUILDLINK_PACKAGES:=    ${BUILDLINK_PACKAGES:Ngcc34}
+BUILDLINK_PACKAGES+=    gcc34
+
+.if !empty(GCC34_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.gcc34+=      gcc34>=3.4.1
+BUILDLINK_PKGSRCDIR.gcc34?=    ../../lang/gcc34
+_GNAT1!=${BUILDLINK_PREFIX.gcc34}/bin/gcc -print-prog-name=gnat1
+.  if exists(${_GNAT1})
+BUILDLINK_ENV+=        ADAC=${BUILDLINK_PREFIX.gcc34}/bin/gcc
+.  endif
+_GCC_ARCHDIR!= ${DIRNAME} `${BUILDLINK_PREFIX.gcc34}/bin/gcc --print-libgcc-file-name`
+.  if empty(_GCC_ARCHDIR:M*not_found*)
+BUILDLINK_LIBDIRS.gcc34+=      lib ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34}\///}/
+.    if exists(${_GNAT1})
+BUILDLINK_LIBDIRS.gcc34+=      ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34}\///}/adalib
+.    endif
+BUILDLINK_INCDIRS.gcc34+=      include ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc34}\///}/include
+.  endif
+.endif  # GCC34_BUILDLINK3_MK
+
+BUILDLINK_FILES_CMD.gcc34=     \
+       (cd  ${BUILDLINK_PREFIX.gcc34} &&       \
+       ${FIND} bin libexec lib \( -type file -o -type link \) -print)
+BUILDLINK_TRANSFORM.gcc34=     -e s:\buildlink:buildlink/gcc34:
+
+# Packages that link against shared libraries need a full dependency.
+BUILDLINK_DEPMETHOD.gcc34?=    full
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}
diff -r e1aedb423f1d -r aedc833f08d9 lang/gcc34/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc34/distinfo       Tue Jun 29 18:01:24 2004 +0000
@@ -0,0 +1,12 @@



Home | Main Index | Thread Index | Old Index