diff options
author | martin <martin@pkgsrc.org> | 2014-03-31 09:46:57 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2014-03-31 09:46:57 +0000 |
commit | 78cc5dcad74aebca112886cbe7b1a3fc16ef98a3 (patch) | |
tree | 8144a2f96f197bef264d16676c5938ba19e714b6 /cross/binutils-mips-current | |
parent | ea9a76a373bcd22afdcf5cff0dc5b37e7476887c (diff) | |
download | pkgsrc-78cc5dcad74aebca112886cbe7b1a3fc16ef98a3.tar.gz |
Add a binutils-2.23 pkg suitable for NetBSD/playstion2 cross compilation.
Diffstat (limited to 'cross/binutils-mips-current')
-rw-r--r-- | cross/binutils-mips-current/DESCR | 1 | ||||
-rw-r--r-- | cross/binutils-mips-current/Makefile | 64 | ||||
-rw-r--r-- | cross/binutils-mips-current/PLIST | 67 | ||||
-rw-r--r-- | cross/binutils-mips-current/buildlink3.mk | 12 | ||||
-rw-r--r-- | cross/binutils-mips-current/distinfo | 5 |
5 files changed, 149 insertions, 0 deletions
diff --git a/cross/binutils-mips-current/DESCR b/cross/binutils-mips-current/DESCR new file mode 100644 index 00000000000..f26e81847d8 --- /dev/null +++ b/cross/binutils-mips-current/DESCR @@ -0,0 +1 @@ +A binutils-current snapshot suitable for NetBSD/playstation2 diff --git a/cross/binutils-mips-current/Makefile b/cross/binutils-mips-current/Makefile new file mode 100644 index 00000000000..54988fbfd3b --- /dev/null +++ b/cross/binutils-mips-current/Makefile @@ -0,0 +1,64 @@ +# $NetBSD: Makefile,v 1.1 2014/03/31 09:46:57 martin Exp $ +# +# GNU binutils snapshot, configured to target MIPS (NetBSD/playstation2) + +BINUTILS_VER= 2.23.91 + +DISTNAME= binutils-${BINUTILS_VER} +# PKGREVISION= 1 +PKGNAME= binutils-mips-${BINUTILS_VER} +CATEGORIES= cross lang +MASTER_SITES= ftp://sourceware.org/pub/binutils/snapshots/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= martin@NetBSD.org +HOMEPAGE= http://www.gnu.org/ +COMMENT= binutils for NetBSD/playstation2 +LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3 + +BUILDLINK_TRANSFORM+= rm:-Werror + +USE_TOOLS+= gm4 pod2man yacc +USE_LIBTOOL= yes + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --enable-64-bit-bfd +CONFIGURE_ARGS+= --target=mips--netbsdelf + +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. +PFX=mips--netbsdelf +do-install: + ${MKDIR} ${DESTDIR}${BINDIR} ${DESTDIR}${PREFIX}/lib/ldscripts ${DESTDIR}${PREFIX}/include + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/addr2line ${DESTDIR}${BINDIR}/${PFX}-addr2line + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/gas/as-new ${DESTDIR}${BINDIR}/${PFX}-as + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/ar ${DESTDIR}${BINDIR}/${PFX}-ar + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/cxxfilt ${DESTDIR}${BINDIR}/${PFX}-cxxfilt + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/nm-new ${DESTDIR}${BINDIR}/${PFX}-nm + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/objcopy ${DESTDIR}${BINDIR}/${PFX}-objcopy + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/objdump ${DESTDIR}${BINDIR}/${PFX}-objdump + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/ranlib ${DESTDIR}${BINDIR}/${PFX}-ranlib + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/readelf ${DESTDIR}${BINDIR}/${PFX}-readelf + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/size ${DESTDIR}${BINDIR}/${PFX}-size + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/strings ${DESTDIR}${BINDIR}/${PFX}-strings + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/strip-new ${DESTDIR}${BINDIR}/${PFX}-strip + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/binutils/sysinfo ${DESTDIR}${BINDIR}/${PFX}-sysinfo + libtool --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/ld/ld-new ${DESTDIR}${BINDIR}/${PFX}-ld + for f in ${WRKSRC}/ld/ldscripts/*; do ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/lib/ldscripts; done + +.include "../../mk/bsd.pkg.mk" diff --git a/cross/binutils-mips-current/PLIST b/cross/binutils-mips-current/PLIST new file mode 100644 index 00000000000..0de1ec4d954 --- /dev/null +++ b/cross/binutils-mips-current/PLIST @@ -0,0 +1,67 @@ +@comment $NetBSD: PLIST,v 1.1 2014/03/31 09:46:57 martin Exp $ +bin/mips--netbsdelf-addr2line +bin/mips--netbsdelf-ar +bin/mips--netbsdelf-as +bin/mips--netbsdelf-cxxfilt +bin/mips--netbsdelf-ld +bin/mips--netbsdelf-nm +bin/mips--netbsdelf-objcopy +bin/mips--netbsdelf-objdump +bin/mips--netbsdelf-ranlib +bin/mips--netbsdelf-readelf +bin/mips--netbsdelf-size +bin/mips--netbsdelf-strings +bin/mips--netbsdelf-strip +bin/mips--netbsdelf-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 diff --git a/cross/binutils-mips-current/buildlink3.mk b/cross/binutils-mips-current/buildlink3.mk new file mode 100644 index 00000000000..065cb87f9cc --- /dev/null +++ b/cross/binutils-mips-current/buildlink3.mk @@ -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 diff --git a/cross/binutils-mips-current/distinfo b/cross/binutils-mips-current/distinfo new file mode 100644 index 00000000000..a71ee12670f --- /dev/null +++ b/cross/binutils-mips-current/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2014/03/31 09:46:57 martin Exp $ + +SHA1 (binutils-2.23.91.tar.bz2) = 5923d0ba7611d92686d99ee88f5d31f0583f0410 +RMD160 (binutils-2.23.91.tar.bz2) = 689d41e7572a1138f46ea2ea962bf43094334afe +Size (binutils-2.23.91.tar.bz2) = 22760336 bytes |