summaryrefslogtreecommitdiff
path: root/cross/mips64el-unknown-linux-gnu-binutils/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-23 23:15:06 +0000
committerroot <root@rshg054.dnsready.net>2012-01-23 23:15:06 +0000
commitc6c657b8bcf062b5d19eff6298b7754c11838080 (patch)
treeed6a14e27d40adfcc821fe921e95aa9e9ab4585b /cross/mips64el-unknown-linux-gnu-binutils/PKGBUILD
parent164067832916c8e59219e1b0f30d7d04618a536e (diff)
Mon Jan 23 23:15:06 UTC 2012
Diffstat (limited to 'cross/mips64el-unknown-linux-gnu-binutils/PKGBUILD')
-rw-r--r--cross/mips64el-unknown-linux-gnu-binutils/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/cross/mips64el-unknown-linux-gnu-binutils/PKGBUILD b/cross/mips64el-unknown-linux-gnu-binutils/PKGBUILD
new file mode 100644
index 000000000..0349036ec
--- /dev/null
+++ b/cross/mips64el-unknown-linux-gnu-binutils/PKGBUILD
@@ -0,0 +1,53 @@
+# Contributor: Vojtech Horky <vojta . horky at-symbol seznam . cz>
+
+_pkgname=binutils
+_target="mips64el-unknown-linux-gnu"
+_sysroot="/usr/${_target}"
+
+unset CFLAGS CXXFLAGS LDFLAGS
+
+pkgname=${_target}-binutils
+pkgver=2.22
+pkgrel=1
+pkgdesc="A set of programs to assemble and manipulate binary and object files for the MIPS architecture"
+url="http://www.gnu.org/software/binutils/"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('zlib')
+provices=("cross-${pkgname}")
+source=("ftp://ftp.gnu.org/gnu/binutils/${_pkgname}-${pkgver}.tar.bz2")
+md5sums=('ee0f10756c84979622b992a4a61ea3f5')
+
+build() {
+ cd ${srcdir}/${_pkgname}-${pkgver}
+
+ CFLAGS=" -pipe "\
+ CXXFLAGS=" -pipe "\
+ ./configure --build=${CHOST} \
+ --host=${CHOST} \
+ --target=${_target} \
+ --prefix=/usr \
+ --disable-nls \
+ --disable-multilib \
+ --disable-werror \
+ --enable-ld=yes \
+ --enable-gold=no \
+ --with-sysroot=${_sysroot}
+
+ make
+}
+
+package() {
+
+ cd ${srcdir}/${_pkgname}-${pkgver}
+# Compat symlinks
+ ln -s ${_sysroot}/usr/lib ${pkgdir}${_sysroot}/lib
+ ln -s ${_sysroot}/lib ${pkgdir}${_sysroot}/lib32
+
+ make DESTDIR=${pkgdir} install
+
+ rm -r ${pkgdir}/usr/{lib,share}
+
+# Create include dir so gcc-core doesn't complain
+ mkdir -p ${pkgdir}${_sysroot}/usr/include
+}