summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authormartin <martin@pkgsrc.org>2014-04-05 10:07:11 +0000
committermartin <martin@pkgsrc.org>2014-04-05 10:07:11 +0000
commit1af11237f6babe22ea2ad98a5acbcf162f2d7e91 (patch)
tree783017cb0b81dfe6c64bce01969e57f23615d477 /cross
parent3a4934a305d1ca24f96657d478b9c630b1c3e8ef (diff)
downloadpkgsrc-1af11237f6babe22ea2ad98a5acbcf162f2d7e91.tar.gz
Use mipsel instead of mips to more closely match the NetBSD native
cross compile environment.
Diffstat (limited to 'cross')
-rw-r--r--cross/binutils-mips-current/Makefile36
-rw-r--r--cross/binutils-mips-current/PLIST30
2 files changed, 33 insertions, 33 deletions
diff --git a/cross/binutils-mips-current/Makefile b/cross/binutils-mips-current/Makefile
index 54988fbfd3b..70e5e4c9417 100644
--- a/cross/binutils-mips-current/Makefile
+++ b/cross/binutils-mips-current/Makefile
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.1 2014/03/31 09:46:57 martin Exp $
+# $NetBSD: Makefile,v 1.2 2014/04/05 10:07:11 martin Exp $
#
# GNU binutils snapshot, configured to target MIPS (NetBSD/playstation2)
BINUTILS_VER= 2.23.91
DISTNAME= binutils-${BINUTILS_VER}
-# PKGREVISION= 1
+PKGREVISION= 1
PKGNAME= binutils-mips-${BINUTILS_VER}
CATEGORIES= cross lang
MASTER_SITES= ftp://sourceware.org/pub/binutils/snapshots/
@@ -14,6 +14,7 @@ EXTRACT_SUFX= .tar.bz2
MAINTAINER= martin@NetBSD.org
HOMEPAGE= http://www.gnu.org/
COMMENT= binutils for NetBSD/playstation2
+PLATFORM= mipsel--netbsdelf
LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3
BUILDLINK_TRANSFORM+= rm:-Werror
@@ -23,7 +24,7 @@ USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-64-bit-bfd
-CONFIGURE_ARGS+= --target=mips--netbsdelf
+CONFIGURE_ARGS+= --target=${PLATFORM}
MAKE_ARGS+= CFLAGS="${CFLAGS}"
@@ -42,23 +43,22 @@ post-patch:
${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
+ 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"
diff --git a/cross/binutils-mips-current/PLIST b/cross/binutils-mips-current/PLIST
index 0de1ec4d954..16a511c2235 100644
--- a/cross/binutils-mips-current/PLIST
+++ b/cross/binutils-mips-current/PLIST
@@ -1,18 +1,18 @@
-@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
+@comment $NetBSD: PLIST,v 1.2 2014/04/05 10:07:11 martin Exp $
+bin/mipsel--netbsdelf-addr2line
+bin/mipsel--netbsdelf-ar
+bin/mipsel--netbsdelf-as
+bin/mipsel--netbsdelf-cxxfilt
+bin/mipsel--netbsdelf-ld
+bin/mipsel--netbsdelf-nm
+bin/mipsel--netbsdelf-objcopy
+bin/mipsel--netbsdelf-objdump
+bin/mipsel--netbsdelf-ranlib
+bin/mipsel--netbsdelf-readelf
+bin/mipsel--netbsdelf-size
+bin/mipsel--netbsdelf-strings
+bin/mipsel--netbsdelf-strip
+bin/mipsel--netbsdelf-sysinfo
lib/ldscripts/elf32btsmip.x
lib/ldscripts/elf32btsmip.xbn
lib/ldscripts/elf32btsmip.xc