Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -0,0 +1 @@
A binutils-current snapshot suitable for NetBSD/playstation2

View File

@@ -0,0 +1,64 @@
# $NetBSD: Makefile,v 1.5 2015/03/23 16:01:28 martin Exp $
#
# GNU binutils snapshot, configured to target MIPS (NetBSD/playstation2)
BINUTILS_VER= 2.25
DISTNAME= binutils-${BINUTILS_VER}
#PKGREVISION= 1
PKGNAME= binutils-mips-${BINUTILS_VER}
CATEGORIES= cross lang
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= martin@NetBSD.org
HOMEPAGE= http://www.gnu.org/
COMMENT= binutils for NetBSD/playstation2
PLATFORM= mipsel--netbsd
LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3
BUILDLINK_TRANSFORM+= rm:-Werror
USE_TOOLS+= gm4 pod2man yacc gmake
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-64-bit-bfd
CONFIGURE_ARGS+= --target=${PLATFORM}
MAKE_ARGS+= CFLAGS="${CFLAGS}"
PLIST_SUBST+= LOCALBASE=${LOCALBASE:Q}
BINDIR= ${PREFIX}/bin
# Prevent the need to run texi2pod.pl and pod2man hence
# the need for perl as build dependency.
post-patch:
.for _file_ in ld/ldver.texi ld/ld.1 gas/doc/gasver.texi gas/doc/as.1
if [ -f ${WRKSRC}/${_file_} ]; then \
${TOUCH} ${WRKSRC}/${_file_}; \
fi
.endfor
${RM} -rf ${WRKSRC}/etc
# we use MKDIR, not INSTALL_PROGRAM_DIR, deliberately.
do-install:
${MKDIR} -p ${DESTDIR}${BINDIR} ${DESTDIR}${PREFIX}/lib/ldscripts ${DESTDIR}${PREFIX}/include
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/addr2line ${DESTDIR}${BINDIR}/${PLATFORM}-addr2line
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/gas/as-new ${DESTDIR}${BINDIR}/${PLATFORM}-as
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/ar ${DESTDIR}${BINDIR}/${PLATFORM}-ar
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/cxxfilt ${DESTDIR}${BINDIR}/${PLATFORM}-cxxfilt
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/nm-new ${DESTDIR}${BINDIR}/${PLATFORM}-nm
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/objcopy ${DESTDIR}${BINDIR}/${PLATFORM}-objcopy
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/objdump ${DESTDIR}${BINDIR}/${PLATFORM}-objdump
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/ranlib ${DESTDIR}${BINDIR}/${PLATFORM}-ranlib
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/readelf ${DESTDIR}${BINDIR}/${PLATFORM}-readelf
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/size ${DESTDIR}${BINDIR}/${PLATFORM}-size
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/strings ${DESTDIR}${BINDIR}/${PLATFORM}-strings
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/strip-new ${DESTDIR}${BINDIR}/${PLATFORM}-strip
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/sysinfo ${DESTDIR}${BINDIR}/${PLATFORM}-sysinfo
libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/ld/ld-new ${DESTDIR}${BINDIR}/${PLATFORM}-ld
for f in ${WRKSRC}/ld/ldscripts/*; do ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/lib/ldscripts; done
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,67 @@
@comment $NetBSD: PLIST,v 1.3 2014/07/02 12:53:06 martin Exp $
bin/mipsel--netbsd-addr2line
bin/mipsel--netbsd-ar
bin/mipsel--netbsd-as
bin/mipsel--netbsd-cxxfilt
bin/mipsel--netbsd-ld
bin/mipsel--netbsd-nm
bin/mipsel--netbsd-objcopy
bin/mipsel--netbsd-objdump
bin/mipsel--netbsd-ranlib
bin/mipsel--netbsd-readelf
bin/mipsel--netbsd-size
bin/mipsel--netbsd-strings
bin/mipsel--netbsd-strip
bin/mipsel--netbsd-sysinfo
lib/ldscripts/elf32btsmip.x
lib/ldscripts/elf32btsmip.xbn
lib/ldscripts/elf32btsmip.xc
lib/ldscripts/elf32btsmip.xd
lib/ldscripts/elf32btsmip.xdc
lib/ldscripts/elf32btsmip.xdw
lib/ldscripts/elf32btsmip.xn
lib/ldscripts/elf32btsmip.xr
lib/ldscripts/elf32btsmip.xs
lib/ldscripts/elf32btsmip.xsc
lib/ldscripts/elf32btsmip.xsw
lib/ldscripts/elf32btsmip.xu
lib/ldscripts/elf32btsmip.xw
lib/ldscripts/elf32ltsmip.x
lib/ldscripts/elf32ltsmip.xbn
lib/ldscripts/elf32ltsmip.xc
lib/ldscripts/elf32ltsmip.xd
lib/ldscripts/elf32ltsmip.xdc
lib/ldscripts/elf32ltsmip.xdw
lib/ldscripts/elf32ltsmip.xn
lib/ldscripts/elf32ltsmip.xr
lib/ldscripts/elf32ltsmip.xs
lib/ldscripts/elf32ltsmip.xsc
lib/ldscripts/elf32ltsmip.xsw
lib/ldscripts/elf32ltsmip.xu
lib/ldscripts/elf32ltsmip.xw
lib/ldscripts/elf64btsmip.x
lib/ldscripts/elf64btsmip.xbn
lib/ldscripts/elf64btsmip.xc
lib/ldscripts/elf64btsmip.xd
lib/ldscripts/elf64btsmip.xdc
lib/ldscripts/elf64btsmip.xdw
lib/ldscripts/elf64btsmip.xn
lib/ldscripts/elf64btsmip.xr
lib/ldscripts/elf64btsmip.xs
lib/ldscripts/elf64btsmip.xsc
lib/ldscripts/elf64btsmip.xsw
lib/ldscripts/elf64btsmip.xu
lib/ldscripts/elf64btsmip.xw
lib/ldscripts/elf64ltsmip.x
lib/ldscripts/elf64ltsmip.xbn
lib/ldscripts/elf64ltsmip.xc
lib/ldscripts/elf64ltsmip.xd
lib/ldscripts/elf64ltsmip.xdc
lib/ldscripts/elf64ltsmip.xdw
lib/ldscripts/elf64ltsmip.xn
lib/ldscripts/elf64ltsmip.xr
lib/ldscripts/elf64ltsmip.xs
lib/ldscripts/elf64ltsmip.xsc
lib/ldscripts/elf64ltsmip.xsw
lib/ldscripts/elf64ltsmip.xu
lib/ldscripts/elf64ltsmip.xw

View File

@@ -0,0 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.1 2014/03/31 09:46:57 martin Exp $
BUILDLINK_TREE+= binutils-mips
.if !defined(CROSS_BINUTILS_BUILDLINK3_MK)
CROSS_BINUTILS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.binutils-mips+= binutils-mips>=2.23.91.0
BUILDLINK_PKGSRCDIR.binutils-mips?= ../../cross/binutils-mips-current
.endif # CROSS_BINUTILS_BUILDLINK3_MK
BUILDLINK_TREE+= -binutils-mips

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.4 2015/03/23 16:01:28 martin Exp $
SHA1 (binutils-2.25.tar.bz2) = b46cc90ebaba7ffcf6c6d996d60738881b14e50d
RMD160 (binutils-2.25.tar.bz2) = af6f54aa304d4840e1b1a3bd8a4cd165b30f9c1e
Size (binutils-2.25.tar.bz2) = 24049133 bytes
SHA1 (patch-bfd_config.bfd) = 9ab3424e681a6fcfddd9e9f72b5ff97c01ffd02c
SHA1 (patch-gas_configure) = e2aacabce3b0aeb9656f0eb3e53b8c723935069c

View File

@@ -0,0 +1,15 @@
# $NetBSD: hacks.mk,v 1.1 2014/04/02 12:49:25 obache Exp $
.if !defined(BINUTILS_MIPS_CURRENT_HACKS_MK)
BINUTILS_MIPS_CURRENT_HACKS_MK= # defined
#
# Hit a bug of /bin/sh in NetBSD-6 release or prior.
# PR pkg/48695
#
.if !empty(MACHINE_PLATFORM:MNetBSD-[0-6].*-*) \
&& empty(MACHINE_PLATFORM:MNetBSD-6.99-*-*)
CONFIG_SHELL= /bin/ksh
.endif
.endif # BINUTILS_MIPS_CURRENT_HACKS_MK

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-bfd_config.bfd,v 1.2 2015/03/23 16:01:28 martin Exp $
Add support for a few missing abi variants
--- bfd/config.bfd.orig 2014-10-14 09:32:02.000000000 +0200
+++ bfd/config.bfd 2015-03-23 14:42:17.000000000 +0100
@@ -969,7 +969,7 @@
#ifdef BFD64
mips*el-*-netbsd*)
targ_defvec=mips_elf32_trad_le_vec
- targ_selvecs="mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
+ targ_selvecs="mips_elf32_ntrad_le_vec mips_elf32_ntrad_be_vec mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
;;
mips*-*-netbsd*)
targ_defvec=mips_elf32_trad_be_vec

View File

@@ -0,0 +1,51 @@
$NetBSD: patch-gas_configure,v 1.1 2015/03/23 16:01:28 martin Exp $
Portability fixes
--- gas/configure.orig 2014-12-23 15:22:05.000000000 +0100
+++ gas/configure 2015-03-23 14:47:32.000000000 +0100
@@ -12331,7 +12331,7 @@
# Decide features one by one.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
$as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
- if test "x${enable_dx_regs}" == xyes; then
+ if test "x${enable_dx_regs}" = xyes; then
$as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
@@ -12345,7 +12345,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
$as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
- if test "x${enable_perf_ext}" == xno; then
+ if test "x${enable_perf_ext}" = xno; then
$as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
@@ -12359,7 +12359,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
$as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
- if test "x${enable_perf_ext2}" == xno; then
+ if test "x${enable_perf_ext2}" = xno; then
$as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
@@ -12373,7 +12373,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
$as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
- if test "x${enable_string_ext}" == xno; then
+ if test "x${enable_string_ext}" = xno; then
$as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
@@ -12387,7 +12387,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
$as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
- if test "x${enable_audio_ext}" == xno; then
+ if test "x${enable_audio_ext}" = xno; then
$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h