pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc-3.4 gcc-3.4 This is the gcc 3.4 compiler revi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8ea84a218eab
branches:  trunk
changeset: 476018:8ea84a218eab
user:      shannonjr <shannonjr%pkgsrc.org@localhost>
date:      Tue Jun 01 19:18:15 2004 +0000

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

diffstat:

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

diffs (truncated from 8673 to 300 lines):

diff -r 962f2a4b712f -r 8ea84a218eab lang/gcc-3.4/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc-3.4/DESCR        Tue Jun 01 19:18:15 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 962f2a4b712f -r 8ea84a218eab lang/gcc-3.4/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc-3.4/MESSAGE      Tue Jun 01 19:18:15 2004 +0000
@@ -0,0 +1,17 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/06/01 19:18:15 shannonjr Exp $
+
+gcc-3.4.0 has been installed in ${LOCALBASE}/gcc-3.4.0
+
+To use this compiler in pkgsrc:
+
+   1) In your "pre-configure" target:
+   
+   .include "../../lang/gcc-3.4/preconfigure.mk"
+   
+   2) .include "../../lang/gcc-3.4/buildlink3.mk" 
+
+The "preconfigure.mk" makefile fragment will override the compiler tools
+selected by ../../mk/compiler.mk to use gcc-3.4.0.
+
+===========================================================================
diff -r 962f2a4b712f -r 8ea84a218eab lang/gcc-3.4/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc-3.4/Makefile     Tue Jun 01 19:18:15 2004 +0000
@@ -0,0 +1,186 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/06/01 19:18:15 shannonjr Exp $
+#
+
+DISTNAME=      gcc-${GCC_VERSION}
+CATEGORIES=    lang
+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 compiler
+
+GCC_VERSION=   3.4.0
+
+.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_GCC3      =# Define to use lang/gcc3-ada
+#USE_GCC34ADA  =# Define to use gccAda-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_GCC34ADA) && !defined(ALT_GCC)
+PKG_SKIP_REASON=       "An Ada bootstrap compiler must be specified to BUILD_ADA"
+.  endif
+.endif
+
+GCC_SUBPREFIX=         ${PKGNAME_NOREV}
+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 gccAda-3.4.0
+pre-configure:
+.include "../../lang/gccAda-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} && \
+       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_GCC3)
+.include "../../lang/gcc3-ada/buildlink3.mk"
+.  elif  defined(USE_GCC34ADA)
+BUILDLINK_DEPMETHOD.gccAda-3.4.0=build
+.include "../../lang/gccAda-3.4/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 962f2a4b712f -r 8ea84a218eab lang/gcc-3.4/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc-3.4/PLIST        Tue Jun 01 19:18:15 2004 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/01 19:18:15 shannonjr Exp $
diff -r 962f2a4b712f -r 8ea84a218eab lang/gcc-3.4/README
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc-3.4/README       Tue Jun 01 19:18:15 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/gccAda-3.4.
+
+   For bootstrapping, you can download a pre-built version
+   of gccAda-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.
diff -r 962f2a4b712f -r 8ea84a218eab lang/gcc-3.4/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc-3.4/buildlink3.mk        Tue Jun 01 19:18:15 2004 +0000
@@ -0,0 +1,43 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/06/01 19:18:15 shannonjr Exp $
+
+BUILDLINK_DEPTH:=       ${BUILDLINK_DEPTH}+
+GCC34_BUILDLINK3_MK:=  ${GCC34_BUILDLINK3_MK}+
+BUILDLINK_PREFIX.gcc-3.4:=${LOCALBASE}/gcc-3.4.0
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=     gcc-3.4
+.endif
+
+BUILDLINK_PACKAGES:=    ${BUILDLINK_PACKAGES:Ngcc-3.4}
+BUILDLINK_PACKAGES+=    gcc-3.4
+
+.if !empty(GCC34_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.gcc-3.4+=      gcc-3.4.0
+BUILDLINK_PKGSRCDIR.gcc-3.4?=    ../../lang/gcc-3.4
+_GNAT1!=${LOCALBASE}/gcc-3.4.0/bin/gcc -print-prog-name=gnat1
+.  if exists(${_GNAT1})
+BUILDLINK_ENV+=        ADAC=${LOCALBASE}/gcc-3.4.0/bin/gcc
+.  endif
+_GCC_ARCHDIR!= ${DIRNAME} `${LOCALBASE}/gcc-3.4.0/bin/gcc --print-libgcc-file-name`
+.  if empty(_GCC_ARCHDIR:M*not_found*)
+BUILDLINK_LIBDIRS.gcc-3.4+=    lib ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc-3.4}\///}/
+.    if exists(${_GNAT1})
+BUILDLINK_LIBDIRS.gcc-3.4+=    ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc-3.4}\///}/adalib
+.    endif
+BUILDLINK_INCDIRS.gcc-3.4+=    include ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc-3.4}\///}/include
+.  endif
+.endif  # GCC34_BUILDLINK3_MK
+
+BUILDLINK_PKGSRCDIR.gcc-3.4?=     ../../lang/gcc-3.4
+BUILDLINK_FILES_CMD.gcc-3.4=   \
+       (cd  ${BUILDLINK_PREFIX.gcc-3.4} &&     \
+       ${FIND} bin libexec lib \( -type file -o -type link \) -print)
+BUILDLINK_TRANSFORM.gcc-3.4=   -e s:\buildlink:buildlink/gcc-3.4.0:
+
+# Packages that link against shared libraries need a full dependency.
+BUILDLINK_DEPMETHOD.gcc-3.4?=  full
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}
diff -r 962f2a4b712f -r 8ea84a218eab lang/gcc-3.4/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc-3.4/distinfo     Tue Jun 01 19:18:15 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/06/01 19:18:15 shannonjr Exp $
+



Home | Main Index | Thread Index | Old Index