summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-05-08 14:13:29 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-05-08 14:13:29 -0300
commit25828de60b05b955dc23d7226b591b416f955875 (patch)
tree3bddc26e7b83be0b8c02f6b8a4b58b72ebbd1988 /extra
parent7550fe13dc71f33eceba1aedceab13b98b2d77b0 (diff)
fix ffcall to build with N32 mabi
Diffstat (limited to 'extra')
-rw-r--r--extra/ffcall/PKGBUILD9
-rw-r--r--extra/ffcall/mipsn32.patch11
2 files changed, 18 insertions, 2 deletions
diff --git a/extra/ffcall/PKGBUILD b/extra/ffcall/PKGBUILD
index bda750337..c1275119b 100644
--- a/extra/ffcall/PKGBUILD
+++ b/extra/ffcall/PKGBUILD
@@ -10,8 +10,10 @@ arch=('i686' 'x86_64' 'mips64el')
url="http://www.haible.de/bruno/packages-ffcall.html"
license=('GPL2')
options=('!libtool' '!makeflags')
-source=(http://www.haible.de/bruno/gnu/${pkgname}-${pkgver}.tar.gz)
-md5sums=('2db95007e901f3bc2ae7e5a9fe9ebea4')
+source=(http://www.haible.de/bruno/gnu/${pkgname}-${pkgver}.tar.gz
+ mipsn32.patch)
+md5sums=('2db95007e901f3bc2ae7e5a9fe9ebea4'
+ '64045515f2664b5544943c6754bf2737')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
@@ -20,6 +22,9 @@ build() {
else
./configure --prefix=/usr --mandir=/usr/share/man || return 1
fi
+
+ patch -Np0 -i $srcdir/mipsn32.patch
+
make || return 1
install -d ${startdir}/pkg/usr/share/man || return 1
make DESTDIR=${startdir}/pkg/ install || return 1
diff --git a/extra/ffcall/mipsn32.patch b/extra/ffcall/mipsn32.patch
new file mode 100644
index 000000000..2a667c37c
--- /dev/null
+++ b/extra/ffcall/mipsn32.patch
@@ -0,0 +1,11 @@
+--- autoconf/config.guess.orig 2011-05-08 14:09:55.621461438 -0300
++++ autoconf/config.guess 2011-05-08 14:10:12.225759443 -0300
+@@ -882,7 +882,7 @@
+ #undef mips64
+ #undef mips64el
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+- CPU=mips64el
++ CPU=mipsn32
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=mips64