Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+1
View File
@@ -0,0 +1 @@
GCC for bare metal ARM EABI environment with newlib.
+72
View File
@@ -0,0 +1,72 @@
# $NetBSD: Makefile,v 1.4 2016/07/05 18:59:58 ryoon Exp $
DISTNAME= gcc-5.4.0
PKGNAME= cross-arm-none-eabi-${DISTNAME}
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${PKGVERSION_NOREV}/}
NEWLIBVER= 2.4.0
SITES.newlib-${NEWLIBVER}.tar.gz=ftp://sources.redhat.com/pub/newlib/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
newlib-${NEWLIBVER}.tar.gz
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= # none
COMMENT= GCC for bare metal ARM EABI
EXTRACT_SUFX= .tar.bz2
# for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33549
# use makeinfo from pkgsrc/devel/gtexinfo.
TOOL_DEPENDS+= gtexinfo>=5.1:../../devel/gtexinfo
_TOOLS_USE_PKGSRC.makeinfo=yes
DEPENDS+= cross-arm-none-eabi-binutils-[0-9]*:../../cross/arm-none-eabi-binutils
USE_LANGUAGES+= c c++
ARMELF_PREFIX= ${PREFIX}/cross-arm-none-eabi
OBJDIR= ../build
CONFIGURE_DIRS= ${OBJDIR}
CONFIGURE_SCRIPT= ../${DISTNAME}/configure
CONFIG_SHELL= ${LOCALBASE}/bin/bash
WRAPPER_SHELL= ${LOCALBASE}/bin/bash
USE_TOOLS+= bash
USE_TOOLS+= gmake makeinfo
GNU_CONFIGURE= yes
GNU_CONFIGURE_PREFIX= ${ARMELF_PREFIX}
HOSTDIR= build-${MACHINE_ARCH}--${LOWER_OPSYS}
CONFIGURE_ARGS+= --target=arm-none-eabi
CONFIGURE_ARGS+= --enable-languages=c,c++
CONFIGURE_ARGS+= --with-newlib
CONFIGURE_ARGS+= --disable-nls
CONFIGURE_ARGS+= --disable-libstdcxx-pch
INFO_FILES= yes
INSTALLATION_DIRS+= bin
CONFIGURE_ARGS+= --enable-${PLUGIN_NAME}-plugin
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
# geattrtab on neon.md results in a very deeply nested expression
# with > 255 brackets. This was reported against GCC 4.9.1 at least
# already, but it seems noone cares enough in GCC to fix the generator.
CFLAGS+= -fbracket-depth=1024
.endif
post-extract:
${LN} -s ${WRKDIR}/newlib-${NEWLIBVER}/newlib ${WRKSRC}/newlib
${LN} -s ${WRKDIR}/newlib-${NEWLIBVER}/libgloss ${WRKSRC}/libgloss
pre-configure:
${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
.include "../../devel/gmp/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../math/mpcomplex/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
File diff suppressed because it is too large Load Diff
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: distinfo,v 1.6 2016/07/05 18:59:58 ryoon Exp $
SHA1 (gcc-5.4.0.tar.bz2) = 07524df2b4ab9070bad9c49ab668da72237b8115
RMD160 (gcc-5.4.0.tar.bz2) = 7ae3413ca7e90bb21e65e637c02ddf2b675b45f4
SHA512 (gcc-5.4.0.tar.bz2) = 2941cc950c8f2409a314df497631f9b0266211aa74746c1839c46e04f1c7c299afe2528d1ef16ea39def408a644ba48f97519ec7a7dd37d260c3e9423514265b
Size (gcc-5.4.0.tar.bz2) = 95661481 bytes
SHA1 (newlib-2.4.0.tar.gz) = f2142827d7b593676b91a530e2547e31262e14e7
RMD160 (newlib-2.4.0.tar.gz) = e7a98a00aca89aad0ee2e2b98993fd8e643d98ce
SHA512 (newlib-2.4.0.tar.gz) = c60665e793dce2368a5baf23560beb50f641e1831854d702d1d7629fb6e9200cf814527f29796792a3d2dff81afee4255723df99ceb0732f99dd9580a17d2ac0
Size (newlib-2.4.0.tar.gz) = 17574364 bytes
SHA1 (patch-gcc_system.h) = 72a75ff773b9b5f3d2f16f4ec7d29e032aba5f53
SHA1 (patch-libcc1_configure) = 0368733ddf79b109fcc7146b0baeb37ab31e634a
SHA1 (patch-libcc1_connection.cc) = 2acd56a6f62b29ed3f02eecb7bf103e4564a442c
SHA1 (patch-libgo_mksysinfo.sh) = f14e68a0c8cc823442661e3523b3b6b9b9a5fd1c
SHA1 (patch-libiberty_Makefile.in) = 7ea2578b5b77cb4adcd4afe3d63739efc68a1540
@@ -0,0 +1,14 @@
$NetBSD: patch-gcc_system.h,v 1.1 2015/12/10 03:02:16 joerg Exp $
--- gcc/system.h.orig 2015-01-05 12:33:28.000000000 +0000
+++ gcc/system.h
@@ -44,6 +44,9 @@ along with GCC; see the file COPYING3.
#endif
#include <stdio.h>
+#ifdef __cplusplus
+# include <cstdio>
+#endif
/* Define a generic NULL if one hasn't already been defined. */
#ifndef NULL
@@ -0,0 +1,16 @@
$NetBSD: patch-libcc1_configure,v 1.1 2016/02/02 06:31:36 dbj Exp $
Disable multi-os install dir for libcc1
--- libcc1/configure.orig 2014-11-21 16:49:17.000000000 +0000
+++ libcc1/configure
@@ -14366,9 +14366,6 @@ fi
libsuffix=
-if test "$GXX" = yes; then
- libsuffix=`$CXX -print-multi-os-directory`
-fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
@@ -0,0 +1,12 @@
$NetBSD: patch-libcc1_connection.cc,v 1.1 2015/12/10 03:02:16 joerg Exp $
--- libcc1/connection.cc.orig 2014-11-13 10:22:22.000000000 +0000
+++ libcc1/connection.cc
@@ -23,6 +23,7 @@ along with GCC; see the file COPYING3.
#include <sys/types.h>
#include <string.h>
#include <errno.h>
+#include <sys/select.h>
#include "marshall.hh"
#include "connection.hh"
#include "rpc.hh"
@@ -0,0 +1,37 @@
$NetBSD: patch-libiberty_Makefile.in,v 1.2 2015/12/31 21:42:50 ryoon Exp $
--- libiberty/Makefile.in.orig 2014-12-24 16:22:51.000000000 +0000
+++ libiberty/Makefile.in
@@ -363,13 +363,12 @@ install-strip: install
# multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
# default multilib, so we have to take CFLAGS into account as well,
# since it will be passed the multilib flags.
-MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
install_to_libdir: all
if test -n "${target_header_dir}"; then \
- ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \
- $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n; \
- ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n ); \
- mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB); \
+ ${mkinstalldirs} $(DESTDIR)$(libdir); \
+ $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(TARGETLIB)n; \
+ ( cd $(DESTDIR)$(libdir) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n ); \
+ mv -f $(DESTDIR)$(libdir)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(TARGETLIB); \
case "${target_header_dir}" in \
/*) thd=${target_header_dir};; \
*) thd=${includedir}/${target_header_dir};; \
@@ -382,10 +381,10 @@ install_to_libdir: all
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
install_to_tooldir: all
- ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
- $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
- ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n; $(RANLIB) $(TARGETLIB)n )
- mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
+ ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib
+ $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(TARGETLIB)n
+ ( cd $(DESTDIR)$(tooldir)/lib ; chmod 644 $(TARGETLIB)n; $(RANLIB) $(TARGETLIB)n )
+ mv -f $(DESTDIR)$(tooldir)/lib/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(TARGETLIB)
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
# required-list was used when building a shared bfd/opcodes/libiberty