pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/cross/gcc-mips-current Add a gcc-current pkg suitable ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eecfadde088e
branches:  trunk
changeset: 632544:eecfadde088e
user:      martin <martin%pkgsrc.org@localhost>
date:      Mon Mar 31 09:49:31 2014 +0000

description:
Add a gcc-current pkg suitable for NetBSD/playstation2 kernel cross
compilation.

diffstat:

 cross/gcc-mips-current/DESCR                                  |    1 +
 cross/gcc-mips-current/Makefile                               |  121 +++++
 cross/gcc-mips-current/PLIST                                  |  235 ++++++++++
 cross/gcc-mips-current/distinfo                               |   11 +
 cross/gcc-mips-current/patches/patch-gcc_config.host          |   18 +
 cross/gcc-mips-current/patches/patch-gcc_config_host-netbsd.c |   93 +++
 cross/gcc-mips-current/patches/patch-gcc_config_mips_netbsd.h |   17 +
 cross/gcc-mips-current/patches/patch-gcc_config_x-netbsd      |   12 +
 cross/gcc-mips-current/patches/patch-libgcc_config.host       |   25 +
 cross/gcc-mips-current/patches/patch-libgcc_config_t-hardfp   |   29 +
 10 files changed, 562 insertions(+), 0 deletions(-)

diffs (truncated from 602 to 300 lines):

diff -r 9612c6030c7f -r eecfadde088e cross/gcc-mips-current/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/gcc-mips-current/DESCR      Mon Mar 31 09:49:31 2014 +0000
@@ -0,0 +1,1 @@
+A gcc-current snapshot suitable to build kernels for NetBSD/playstation2.
diff -r 9612c6030c7f -r eecfadde088e cross/gcc-mips-current/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/gcc-mips-current/Makefile   Mon Mar 31 09:49:31 2014 +0000
@@ -0,0 +1,121 @@
+# $NetBSD: Makefile,v 1.1 2014/03/31 09:49:31 martin Exp $
+
+GCC_PKGNAME=   gcc-mips-current
+
+SNAPSHOT=      20140330
+
+GCC_DIST_VERSION=4.9-${SNAPSHOT}
+DISTNAME=      gcc-${GCC_DIST_VERSION}
+PKGNAME=       ${GCC_PKGNAME}-${SNAPSHOT}
+
+# PKGREVISION= 1
+CATEGORIES=    cross lang
+MASTER_SITE_GCC=       \
+               ftp://ftp.fu-berlin.de/unix/languages/gcc/      \
+               ftp://gd.tuwien.ac.at/gnu/gcc/                  \
+               http://ftp.tsukuba.wide.ad.jp/software/gcc/     \
+               ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/ \
+               http://www.netgull.com/gcc/
+MASTER_SITES=  ${MASTER_SITE_GCC:=snapshots/${GCC_DIST_VERSION}/}
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    martin%NetBSD.org@localhost
+HOMEPAGE=      http://gcc.gnu.org/
+COMMENT=       The GNU Compiler Collection (GCC) - 4.9 current for mips
+LICENSE=       gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
+
+DISTFILES=             ${DEFAULT_DISTFILES}
+EXTRACT_ONLY=          ${DEFAULT_DISTFILES}
+
+NOT_FOR_PLATFORM=      Interix-*-*
+
+USE_LANGUAGES=         c c++
+USE_TOOLS+=            gmake makeinfo sed:run perl
+GNU_CONFIGURE=         yes
+## Build outside ${WRKSRC}
+OBJDIR=                        ../build
+CONFIGURE_DIRS=                ${OBJDIR}
+CONFIGURE_SCRIPT=      ../${DISTNAME}/configure
+INFO_FILES=            yes
+
+UNLIMIT_RESOURCES+=    datasize
+UNLIMIT_RESOURCES+=    stacksize
+
+SUBST_CLASSES+=                vars
+SUBST_MESSAGE.vars=    Setting target machine name path in ${SUBST_FILES.vars}
+SUBST_STAGE.vars=      pre-configure
+SUBST_FILES.vars=      gcc/Makefile.in
+SUBST_VARS.vars=       GCC_TARGET_MACHINE
+
+.include "../../mk/bsd.prefs.mk"
+
+LANGS=                 c c++
+
+# In some cases LINKER_RPATH_FLAG needs a trailing space.
+LINKER_RPATH_FLAG:=    ${LINKER_RPATH_FLAG:S/-rpath/& /}
+
+## The Library rpath to use in end programs.
+LDFLAGS_FOR_TARGET=    ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*}
+
+# GCC does not understand this option; remove it, or stage build will fail
+BUILDLINK_TRANSFORM+=  rm:-stdlib=libc++
+
+## For target librarys and libjava programs.
+CONFIGURE_ENV+=                LDFLAGS_FOR_TARGET=${LDFLAGS_FOR_TARGET:Q}
+
+CONFIGURE_ARGS+=       --disable-nls
+CONFIGURE_ARGS+=       --disable-libquadmath
+CONFIGURE_ARGS+=       --disable-libquadmath-support 
+CONFIGURE_ARGS+=       --disable-libssp
+CONFIGURE_ARGS+=       --disable-libgomp
+CONFIGURE_ARGS+=       --disable-libstdc++-v3
+CONFIGURE_ARGS+=       --disable-libatomic
+CONFIGURE_ARGS+=       --enable-languages=${LANGS:Q}
+CONFIGURE_ARGS+=       --enable-shared
+CONFIGURE_ARGS+=       --enable-long-long
+CONFIGURE_ARGS+=       --with-local-prefix=${PREFIX:Q}
+CONFIGURE_ARGS+=       --enable-threads=posix
+CONFIGURE_ARGS+=       --with-boot-ldflags=${BOOT_LDFLAGS:Q}
+.if ${OPSYS} == "NetBSD"
+MAKE_ENV+=             ac_cv_func_clock_gettime=yes
+.endif
+.if ${OPSYS} == "DragonFly"
+CONFIGURE_ARGS+=       --disable-bootstrap
+.endif
+
+CONFIGURE_ARGS+=       --target=mips--netbsdelf
+
+# ${WRKSRC}/fixincludes/ looks for sed and compiles the path to sed into
+# a binary so we need to make sure we give it the installed sed and not
+# the tool wrapped one.
+MAKE_ENV+=             ac_cv_path_SED=${TOOLS_SED}
+MAKE_ENV+=             lt_cv_path_SED=${TOOLS_SED}
+
+pre-configure:
+       ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
+
+TEST_TARGET=   -k check || ${TRUE}
+pre-test:
+       ${RUN}                                                  \
+       if runtest --version >/dev/null 2>/dev/null ; then      \
+               : ;                                             \
+       else                                                    \
+         ${ECHO} "ERROR: Please install devel/dejagnu in order to run the test suite." ; \
+         exit 1 ;                                              \
+       fi
+post-test:
+       ${RUN} cd ${WRKSRC} && cd ${OBJDIR} &&          \
+       ${SHELL} ${WRKSRC}/contrib/test_summary >${WRKDIR}/test_summary.log
+       @${INFO_MSG} "Test summary are available in ${WRKDIR}/test_summary.log"
+
+CONFIGURE_ARGS+=       --with-gmp=${BUILDLINK_PREFIX.gmp}
+CONFIGURE_ARGS+=       --with-mpc=${BUILDLINK_PREFIX.mpcomplex}
+CONFIGURE_ARGS+=       --with-mpfr=${BUILDLINK_PREFIX.mpfr}
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../math/mpcomplex/buildlink3.mk"
+.include "../../math/mpfr/buildlink3.mk"
+
+.include "../../cross/binutils-mips-current/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9612c6030c7f -r eecfadde088e cross/gcc-mips-current/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/gcc-mips-current/PLIST      Mon Mar 31 09:49:31 2014 +0000
@@ -0,0 +1,235 @@
+@comment $NetBSD: PLIST,v 1.1 2014/03/31 09:49:31 martin Exp $
+bin/mips--netbsdelf-c++
+bin/mips--netbsdelf-cpp
+bin/mips--netbsdelf-g++
+bin/mips--netbsdelf-gcc
+bin/mips--netbsdelf-gcc-4.9.0
+bin/mips--netbsdelf-gcc-ar
+bin/mips--netbsdelf-gcc-nm
+bin/mips--netbsdelf-gcc-ranlib
+bin/mips--netbsdelf-gcov
+info/cpp.info
+info/cppinternals.info
+info/gcc.info
+info/gccinstall.info
+info/gccint.info
+lib/gcc/mips--netbsdelf/4.9.0/crtbegin.o
+lib/gcc/mips--netbsdelf/4.9.0/crtbeginS.o
+lib/gcc/mips--netbsdelf/4.9.0/crtend.o
+lib/gcc/mips--netbsdelf/4.9.0/crtendS.o
+lib/gcc/mips--netbsdelf/4.9.0/include-fixed/README
+lib/gcc/mips--netbsdelf/4.9.0/include-fixed/limits.h
+lib/gcc/mips--netbsdelf/4.9.0/include-fixed/syslimits.h
+lib/gcc/mips--netbsdelf/4.9.0/include/float.h
+lib/gcc/mips--netbsdelf/4.9.0/include/iso646.h
+lib/gcc/mips--netbsdelf/4.9.0/include/loongson.h
+lib/gcc/mips--netbsdelf/4.9.0/include/stdalign.h
+lib/gcc/mips--netbsdelf/4.9.0/include/stdarg.h
+lib/gcc/mips--netbsdelf/4.9.0/include/stdatomic.h
+lib/gcc/mips--netbsdelf/4.9.0/include/stdbool.h
+lib/gcc/mips--netbsdelf/4.9.0/include/stddef.h
+lib/gcc/mips--netbsdelf/4.9.0/include/stdfix.h
+lib/gcc/mips--netbsdelf/4.9.0/include/stdnoreturn.h
+lib/gcc/mips--netbsdelf/4.9.0/include/tgmath.h
+lib/gcc/mips--netbsdelf/4.9.0/include/unwind.h
+lib/gcc/mips--netbsdelf/4.9.0/include/varargs.h
+lib/gcc/mips--netbsdelf/4.9.0/install-tools/fixinc_list
+lib/gcc/mips--netbsdelf/4.9.0/install-tools/gsyslimits.h
+lib/gcc/mips--netbsdelf/4.9.0/install-tools/include/README
+lib/gcc/mips--netbsdelf/4.9.0/install-tools/include/limits.h
+lib/gcc/mips--netbsdelf/4.9.0/install-tools/macro_list
+lib/gcc/mips--netbsdelf/4.9.0/install-tools/mkheaders.conf
+lib/gcc/mips--netbsdelf/4.9.0/libgcc.a
+lib/gcc/mips--netbsdelf/4.9.0/libgcc_eh.a
+lib/gcc/mips--netbsdelf/4.9.0/libgcov.a
+lib/gcc/mips--netbsdelf/4.9.0/plugin/gtype.state
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/ada/gcc-interface/ada-tree.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/alias.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/all-tree.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/alloc-pool.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/ansidecl.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/auto-host.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/b-header-vars
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/basic-block.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/bitmap.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/builtins.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/bversion.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/c-family/c-common.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/c-family/c-common.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/c-family/c-objc.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/c-family/c-pragma.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/c-family/c-pretty-print.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/c-tree.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cfg-flags.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cfghooks.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cfgloop.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cgraph.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cif-code.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cilk-builtins.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cilkplus.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/config.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/config/elfos.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/config/initfini-array.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/config/mips/elf.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/config/mips/mips-opts.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/config/mips/mips-protos.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/config/mips/mips.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/config/mips/netbsd.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/config/netbsd-elf.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/config/netbsd.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/config/vxworks-dummy.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/configargs.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/context.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/coretypes.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cp/cp-tree.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cp/cp-tree.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cp/cxx-pretty-print.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cp/name-lookup.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cppdefault.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/cpplib.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/debug.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/defaults.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/df.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/diagnostic-core.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/diagnostic.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/diagnostic.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/double-int.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/dumpfile.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/emit-rtl.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/except.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/filenames.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/fixed-value.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/flag-types.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/flags.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/fold-const.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/function.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gcc-plugin.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/genrtl.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/ggc.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gimple-expr.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gimple-fold.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gimple-iterator.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gimple-pretty-print.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gimple-ssa.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gimple.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gimple.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gimplify.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gsstruct.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gtm-builtins.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/gtype-desc.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/hard-reg-set.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/hash-table.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/hashtab.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/highlev-plugin-common.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/hwint.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/incpath.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/input.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/insn-codes.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/insn-constants.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/insn-flags.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/insn-modes.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/insn-notes.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/internal-fn.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/internal-fn.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/intl.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/ipa-prop.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/ipa-ref-inline.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/ipa-ref.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/ipa-reference.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/ipa-utils.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/is-a.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/java/java-tree.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/langhooks.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/libiberty.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/line-map.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/machmode.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/md5.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/mode-classes.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/objc/objc-tree.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/obstack.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/omp-builtins.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/options.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/opts.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/output.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/params.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/params.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/plugin-api.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/plugin-version.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/plugin.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/plugin.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/pointer-set.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/predict.def
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/predict.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/prefix.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/pretty-print.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/print-tree.h
+lib/gcc/mips--netbsdelf/4.9.0/plugin/include/real.h



Home | Main Index | Thread Index | Old Index