summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rw-r--r--extra/abiword/PKGBUILD27
-rw-r--r--extra/catdoc/PKGBUILD2
-rw-r--r--extra/ethstatus/PKGBUILD2
-rw-r--r--extra/ffcall/PKGBUILD3
-rw-r--r--extra/gdome2/PKGBUILD15
-rw-r--r--extra/gimp-dbp/PKGBUILD2
-rw-r--r--extra/gimp-refocus/PKGBUILD2
-rw-r--r--extra/gnome-utils/PKGBUILD2
-rw-r--r--extra/gstreamer0.10-ugly/PKGBUILD2
-rw-r--r--extra/haskell-cgi/PKGBUILD2
-rw-r--r--extra/haskell-deepseq/PKGBUILD2
-rw-r--r--extra/haskell-haskell-src/PKGBUILD2
-rw-r--r--extra/haskell-html/PKGBUILD2
-rw-r--r--extra/haskell-http/PKGBUILD2
-rw-r--r--extra/haskell-hunit/PKGBUILD2
-rw-r--r--extra/haskell-mtl/PKGBUILD2
-rw-r--r--extra/haskell-network/PKGBUILD2
-rw-r--r--extra/haskell-opengl/PKGBUILD2
-rw-r--r--extra/haskell-parallel/PKGBUILD2
-rw-r--r--extra/krusader/PKGBUILD2
-rw-r--r--extra/libmad/PKGBUILD2
-rw-r--r--extra/libmodplug/PKGBUILD2
-rw-r--r--extra/llvm/PKGBUILD2
-rw-r--r--extra/metacity/PKGBUILD2
-rw-r--r--extra/mkvtoolnix/PKGBUILD2
-rw-r--r--extra/ocaml/PKGBUILD13
-rw-r--r--extra/ocaml/fix-caml_int64_float_of_bits-n32.patch12
-rw-r--r--extra/openal/PKGBUILD2
-rw-r--r--extra/pulseaudio/PKGBUILD2
-rw-r--r--extra/rox/PKGBUILD4
-rw-r--r--extra/sane/PKGBUILD10
-rw-r--r--extra/sbcl/PKGBUILD14
-rw-r--r--extra/sbcl/mips-arch.h.diff20
-rw-r--r--extra/x2x/PKGBUILD2
34 files changed, 129 insertions, 39 deletions
diff --git a/extra/abiword/PKGBUILD b/extra/abiword/PKGBUILD
index b2e9ef2ca..4b81dc298 100644
--- a/extra/abiword/PKGBUILD
+++ b/extra/abiword/PKGBUILD
@@ -16,6 +16,33 @@ source=("http://www.abisource.com/downloads/${pkgbase}/${pkgver}/source/${pkgbas
sha1sums=('998f69d038000b3fc027d4259548f02d67c8d0df'
'e5374f439e3d9b63a4bbd2cd39146c67cf1e85ea')
+if [ "${CARCH}" = 'mips64el' ]; then
+
+ ARCHFLAGS=""
+ for opt in ${CFLAGS}; do
+ case ${opt} in
+ -O?) ARCHFLAGS+="-O1 " ;;
+ *) ARCHFLAGS+="${opt} " ;;
+ esac
+ done
+ CFLAGS=${ARCHFLAGS}
+
+ ARCHFLAGS=""
+ for opt in ${CXXFLAGS}; do
+ case ${opt} in
+ -O?) ARCHFLAGS+="-O1 " ;;
+ *) ARCHFLAGS+="${opt} " ;;
+ esac
+ done
+ CXXFLAGS=${ARCHFLAGS}
+
+ unset ARCHFLAGS
+
+ echo CFLAGS : ${CFLAGS}
+ echo CXXFLAGS: ${CXXFLAGS}
+fi
+
+
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
diff --git a/extra/catdoc/PKGBUILD b/extra/catdoc/PKGBUILD
index cf8523bff..aa4f7da01 100644
--- a/extra/catdoc/PKGBUILD
+++ b/extra/catdoc/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=catdoc
pkgver=0.94.2
pkgrel=3
pkgdesc="A convertor for Microsoft Word, Excel, PowerPoint and RTF Files to text"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64 'mips64el')
url="http://www.wagner.pp.ru/~vitus/software/catdoc/"
license=('GPL')
depends=('glibc')
diff --git a/extra/ethstatus/PKGBUILD b/extra/ethstatus/PKGBUILD
index 9333a6adf..b9352a85a 100644
--- a/extra/ethstatus/PKGBUILD
+++ b/extra/ethstatus/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=ethstatus
pkgver=0.4.3
pkgrel=2
pkgdesc="A simple program for displaying commonly needed/wanted statistics in real time of incoming and outgoing traffic"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://packages.qa.debian.org/e/ethstatus.html"
license=('GPL')
depends=('ncurses')
diff --git a/extra/ffcall/PKGBUILD b/extra/ffcall/PKGBUILD
index 4df7eaa7c..f51867990 100644
--- a/extra/ffcall/PKGBUILD
+++ b/extra/ffcall/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=ffcall
pkgver=1.10
pkgrel=4
pkgdesc="C library for implementing foreign function calls in embedded interpreters"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/libffcall/"
license=('GPL2')
options=('!libtool' '!makeflags')
@@ -18,6 +18,7 @@ md5sums=('2db95007e901f3bc2ae7e5a9fe9ebea4'
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
[ "$CARCH" = "x86_64" ] && CONFIGFLAG="--with-pic"
+ patch -Np0 -i "$srcdir/mipsn32.patch"
./configure --prefix=/usr --mandir=/usr/share/man $CONFIGFLAG
patch -Np0 -i $srcdir/mipsn32.patch
diff --git a/extra/gdome2/PKGBUILD b/extra/gdome2/PKGBUILD
index 7646b3763..c6e1eb377 100644
--- a/extra/gdome2/PKGBUILD
+++ b/extra/gdome2/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=gdome2
pkgver=0.8.1
-pkgrel=3
+pkgrel=3.1
pkgdesc="Gnome DOM Engine"
url="http://gdome2.cs.unibo.it/"
arch=('i686' 'x86_64' 'mips64el')
@@ -16,10 +16,21 @@ md5sums=('bfc114e59eec50cbda8e4ece751ff022')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- ./configure --prefix=/usr --mandir=/usr/share/man
+ if [ "$CARCH" = mips64el ]; then
+ CFLAGS="$CFLAGS -fpic"
+ CXXFLAGS="$CXXFLAGS -fpic"
+ fi
+ ./configure --prefix=/usr --mandir=/usr/share/man \
+ --host=${CARCH} --disable-static
make
}
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
+}
+
+
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
diff --git a/extra/gimp-dbp/PKGBUILD b/extra/gimp-dbp/PKGBUILD
index f09db2f20..9a5ac4635 100644
--- a/extra/gimp-dbp/PKGBUILD
+++ b/extra/gimp-dbp/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=gimp-dbp
pkgver=1.1.9
pkgrel=2
pkgdesc="David's batch processor for the GIMP"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64 'mips64el')
url="http://members.ozemail.com.au/~hodsond/dbp.html"
license=('GPL')
depends=('gimp')
diff --git a/extra/gimp-refocus/PKGBUILD b/extra/gimp-refocus/PKGBUILD
index 5cc3b5703..ad1457deb 100644
--- a/extra/gimp-refocus/PKGBUILD
+++ b/extra/gimp-refocus/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=gimp-refocus
pkgver=0.9.0
pkgrel=3
pkgdesc="A sharpen plugin for gimp using FIR Wiener filtering"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64 'mips64el')
url="http://refocus.sourceforge.net/"
license=('GPL2')
depends=('gimp')
diff --git a/extra/gnome-utils/PKGBUILD b/extra/gnome-utils/PKGBUILD
index cbdd24beb..504d130e2 100644
--- a/extra/gnome-utils/PKGBUILD
+++ b/extra/gnome-utils/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=gnome-utils
pkgver=3.0.1
pkgrel=2
pkgdesc="Common GNOME utilities for viewing disk usage, logs and fonts, taking screenshots, managing dictionaries and searching files"
-arch=(i686 x86_64)
+arch=(i686 x86_64 mips64el)
license=('GPL')
depends=('libgtop' 'libcanberra' 'libsm' 'gconf' 'gsettings-desktop-schemas' 'hicolor-icon-theme' 'desktop-file-utils')
makedepends=('gnome-doc-utils' 'pkgconfig' 'intltool')
diff --git a/extra/gstreamer0.10-ugly/PKGBUILD b/extra/gstreamer0.10-ugly/PKGBUILD
index 9f1074038..7c05964ef 100644
--- a/extra/gstreamer0.10-ugly/PKGBUILD
+++ b/extra/gstreamer0.10-ugly/PKGBUILD
@@ -5,7 +5,7 @@ pkgbase=gstreamer0.10-ugly
pkgname=('gstreamer0.10-ugly' 'gstreamer0.10-ugly-plugins')
pkgver=0.10.18
pkgrel=2
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('LGPL')
makedepends=('pkgconfig' 'gstreamer0.10-base>=0.10.34' 'libdvdread' 'lame' 'libmpeg2' 'a52dec' 'libid3tag' 'libmad' 'libsidplay' 'libcdio' 'x264' 'opencore-amr')
url="http://gstreamer.freedesktop.org/"
diff --git a/extra/haskell-cgi/PKGBUILD b/extra/haskell-cgi/PKGBUILD
index 4b64ba578..1ebe591af 100644
--- a/extra/haskell-cgi/PKGBUILD
+++ b/extra/haskell-cgi/PKGBUILD
@@ -8,7 +8,7 @@ pkgrel=3.1
pkgdesc="A library for writing CGI programs"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=('ghc=7.0.3-2' 'haskell-mtl=2.0.1.0-3.1' 'haskell-network=2.3.0.2-2.1' 'haskell-parsec=3.1.1-2.1' 'haskell-xhtml=3000.2.0.1-7.1')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
diff --git a/extra/haskell-deepseq/PKGBUILD b/extra/haskell-deepseq/PKGBUILD
index 934303f2b..92818f74c 100644
--- a/extra/haskell-deepseq/PKGBUILD
+++ b/extra/haskell-deepseq/PKGBUILD
@@ -8,7 +8,7 @@ pkgrel=2.1
pkgdesc="Fully evaluate data structures"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=(ghc=7.0.3-2 sh)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
diff --git a/extra/haskell-haskell-src/PKGBUILD b/extra/haskell-haskell-src/PKGBUILD
index eeb4844a7..dfc85c3a6 100644
--- a/extra/haskell-haskell-src/PKGBUILD
+++ b/extra/haskell-haskell-src/PKGBUILD
@@ -7,7 +7,7 @@ pkgrel=2.1
pkgdesc="Facilities for manipulating Haskell source code: an abstract syntax, lexer, parser and pretty-printer."
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=('ghc=7.0.3-2' 'haskell-syb=0.3-2.1' sh)
makedepends=(happy)
options=('strip')
diff --git a/extra/haskell-html/PKGBUILD b/extra/haskell-html/PKGBUILD
index 1d207117e..203bc1589 100644
--- a/extra/haskell-html/PKGBUILD
+++ b/extra/haskell-html/PKGBUILD
@@ -8,7 +8,7 @@ pkgrel=9.1
pkgdesc="HTML combinator library"
url="http://hackage.haskell.org/package/html"
license=('custom:BSD3')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=(ghc=7.0.3-2 sh)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
diff --git a/extra/haskell-http/PKGBUILD b/extra/haskell-http/PKGBUILD
index d1106c478..f0f33d5cb 100644
--- a/extra/haskell-http/PKGBUILD
+++ b/extra/haskell-http/PKGBUILD
@@ -8,7 +8,7 @@ pkgrel=3.1
pkgdesc="A library for client-side HTTP"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=('ghc=7.0.3-2' sh 'haskell-network=2.3.0.2-2.1' 'haskell-parsec=3.1.1-2.1' 'haskell-mtl=2.0.1.0-3.1')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
diff --git a/extra/haskell-hunit/PKGBUILD b/extra/haskell-hunit/PKGBUILD
index 401887e4e..c2009a927 100644
--- a/extra/haskell-hunit/PKGBUILD
+++ b/extra/haskell-hunit/PKGBUILD
@@ -7,7 +7,7 @@ pkgrel=2.1
pkgdesc="A unit testing framework for Haskell"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=(ghc=7.0.3-2 sh)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/$pkgver/${_hkgname}-$pkgver.tar.gz)
diff --git a/extra/haskell-mtl/PKGBUILD b/extra/haskell-mtl/PKGBUILD
index e0ee184de..932f9360c 100644
--- a/extra/haskell-mtl/PKGBUILD
+++ b/extra/haskell-mtl/PKGBUILD
@@ -7,7 +7,7 @@ pkgrel=3.1
pkgdesc="Monad transformer library"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=(ghc=7.0.3-2 sh 'haskell-transformers=0.2.2.0-3.1')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/$pkgver/${_hkgname}-$pkgver.tar.gz)
diff --git a/extra/haskell-network/PKGBUILD b/extra/haskell-network/PKGBUILD
index 372cdf623..2d1b78c75 100644
--- a/extra/haskell-network/PKGBUILD
+++ b/extra/haskell-network/PKGBUILD
@@ -8,7 +8,7 @@ pkgrel=2.1
pkgdesc="Networking-related facilities"
url="http://hackage.haskell.org/package/network"
license=('custom:BSD3')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=(ghc=7.0.3-2 sh 'haskell-parsec=3.1.1-2.1')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
diff --git a/extra/haskell-opengl/PKGBUILD b/extra/haskell-opengl/PKGBUILD
index 8d70bbc91..909a68239 100644
--- a/extra/haskell-opengl/PKGBUILD
+++ b/extra/haskell-opengl/PKGBUILD
@@ -6,7 +6,7 @@ pkgrel=7.1
pkgdesc="A binding for the OpenGL graphics system"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=('ghc=7.0.3-2' 'mesa')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
diff --git a/extra/haskell-parallel/PKGBUILD b/extra/haskell-parallel/PKGBUILD
index 0e46c2c93..7b13af989 100644
--- a/extra/haskell-parallel/PKGBUILD
+++ b/extra/haskell-parallel/PKGBUILD
@@ -8,7 +8,7 @@ pkgrel=3.1
pkgdesc="Parallel programming library"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
depends=(ghc=7.0.3-2 sh 'haskell-deepseq=1.1.0.2-2.1')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/$pkgver/${_hkgname}-$pkgver.tar.gz)
diff --git a/extra/krusader/PKGBUILD b/extra/krusader/PKGBUILD
index 413724c27..ebf3c861f 100644
--- a/extra/krusader/PKGBUILD
+++ b/extra/krusader/PKGBUILD
@@ -9,7 +9,7 @@ pkgver=2.4.0beta1
_pkgver=2.4.0-beta1
pkgrel=3
pkgdesc="An alternative file manager for KDE resembling Midnight Commander"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://krusader.sourceforge.net/"
license=('GPL')
depends=('kdebase-runtime' 'kdebase-lib')
diff --git a/extra/libmad/PKGBUILD b/extra/libmad/PKGBUILD
index 31ec18b16..14f32b061 100644
--- a/extra/libmad/PKGBUILD
+++ b/extra/libmad/PKGBUILD
@@ -29,7 +29,7 @@ build() {
patch -p1 -i "${srcdir}/optimize.diff"
CFLAGS="$CFLAGS -ftree-vectorize -ftree-vectorizer-verbose=1"
autoconf
- ./configure --prefix=/usr
+ ./configure --prefix=/usr --enable-fpm=default
make
}
diff --git a/extra/libmodplug/PKGBUILD b/extra/libmodplug/PKGBUILD
index ca27edda1..874946404 100644
--- a/extra/libmodplug/PKGBUILD
+++ b/extra/libmodplug/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=libmodplug
pkgver=0.8.8.3
pkgrel=1
pkgdesc="A MOD playing library"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64 'mips64el')
url="http://modplug-xmms.sourceforge.net/"
license=('custom')
depends=('gcc-libs')
diff --git a/extra/llvm/PKGBUILD b/extra/llvm/PKGBUILD
index 234b009b6..76504197a 100644
--- a/extra/llvm/PKGBUILD
+++ b/extra/llvm/PKGBUILD
@@ -13,7 +13,7 @@ pkgname=('llvm' 'llvm-ocaml' 'clang' 'clang-analyzer')
pkgver=2.9
_gcc_ver=4.6.0
pkgrel=5
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://llvm.org/"
license=('custom:University of Illinois/NCSA Open Source License')
makedepends=('gcc-libs' 'libffi' 'python2' 'ocaml' "gcc=$_gcc_ver")
diff --git a/extra/metacity/PKGBUILD b/extra/metacity/PKGBUILD
index 3d028d55b..12e0c3b39 100644
--- a/extra/metacity/PKGBUILD
+++ b/extra/metacity/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=metacity
pkgver=2.34.1
pkgrel=1
pkgdesc="A window manager for GNOME"
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
license=('GPL')
depends=('startup-notification' 'gconf' 'zenity' 'libcanberra' 'libgtop' 'libwnck' 'libsm')
makedepends=('intltool' 'pkgconfig' 'gnome-doc-utils')
diff --git a/extra/mkvtoolnix/PKGBUILD b/extra/mkvtoolnix/PKGBUILD
index 873c8ad07..79b1e0abf 100644
--- a/extra/mkvtoolnix/PKGBUILD
+++ b/extra/mkvtoolnix/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=mkvtoolnix
pkgver=4.8.0
pkgrel=3
pkgdesc="Set of tools to create, edit and inspect Matroska files - CLI version"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.bunkus.org/videotools/mkvtoolnix/index.html"
depends=('file' 'boost-libs' 'libmatroska' 'lzo2' 'expat' 'flac' 'libvorbis')
diff --git a/extra/ocaml/PKGBUILD b/extra/ocaml/PKGBUILD
index 2e994e28d..c321869aa 100644
--- a/extra/ocaml/PKGBUILD
+++ b/extra/ocaml/PKGBUILD
@@ -12,16 +12,23 @@ depends=('gdbm')
makedepends=('tk' 'ncurses>=5.6-7' 'libx11')
optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features')
source=(http://caml.inria.fr/distrib/ocaml-3.12/${pkgname}-${pkgver}.tar.gz
- fix-ocaml-binutils-2.21.patch)
+ fix-ocaml-binutils-2.21.patch
+ fix-caml_int64_float_of_bits-n32.patch)
options=('!makeflags' '!emptydirs')
md5sums=('3ba7cc65123c3579f14e7c726d3ee782'
- '8c664a0a346424ea2ec6fc6f713170c6')
+ '8c664a0a346424ea2ec6fc6f713170c6'
+ 'e2c8bc316efe40532c5b9d7f9a1d8d62')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/fix-ocaml-binutils-2.21.patch"
+ patch -Np1 -i "${srcdir}/fix-caml_int64_float_of_bits-n32.patch"
./configure -prefix /usr
- make world.opt
+ if [ "${CARCH}" == "mips64el" ] ; then
+ make world
+ else
+ make world.opt
+ fi
make PREFIX="${pkgdir}/usr" MANDIR="${pkgdir}/usr/share/man" install
# Save >10MB with this one, makepkg only strips debug symbols.
diff --git a/extra/ocaml/fix-caml_int64_float_of_bits-n32.patch b/extra/ocaml/fix-caml_int64_float_of_bits-n32.patch
new file mode 100644
index 000000000..98755d30b
--- /dev/null
+++ b/extra/ocaml/fix-caml_int64_float_of_bits-n32.patch
@@ -0,0 +1,12 @@
+--- ocaml-3.12.0.orig/byterun/ints.c 2011-06-25 18:03:21.548733206 +0200
++++ ocaml-3.12.0/byterun/ints.c 2011-06-25 22:34:17.304788306 +0200
+@@ -585,6 +585,9 @@
+ return caml_copy_int64(u.i);
+ }
+
++#ifdef _ABIN32
++__attribute__((optimize(0)))
++#endif
+ CAMLprim value caml_int64_float_of_bits(value vi)
+ {
+ union { double d; int64 i; int32 h[2]; } u;
diff --git a/extra/openal/PKGBUILD b/extra/openal/PKGBUILD
index 0a3c8f1a2..338d11712 100644
--- a/extra/openal/PKGBUILD
+++ b/extra/openal/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=openal
pkgver=1.13
pkgrel=2
pkgdesc="A cross-platform 3D audio library"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.openal.org/"
license=(LGPL)
depends=(glibc)
diff --git a/extra/pulseaudio/PKGBUILD b/extra/pulseaudio/PKGBUILD
index d62fd9ca7..73cc1d3a2 100644
--- a/extra/pulseaudio/PKGBUILD
+++ b/extra/pulseaudio/PKGBUILD
@@ -8,7 +8,7 @@ pkgbase=pulseaudio
pkgname=(pulseaudio libpulse)
pkgver=0.9.23
pkgrel=1
-arch=(i686 x86_64)
+arch=(i686 x86_64 'mips64el')
url="http://pulseaudio.org/"
license=(GPL LGPL)
makedepends=(libasyncns libcap attr libxtst libsm libsndfile libtool rtkit
diff --git a/extra/rox/PKGBUILD b/extra/rox/PKGBUILD
index 799ad8d43..96dd4393f 100644
--- a/extra/rox/PKGBUILD
+++ b/extra/rox/PKGBUILD
@@ -5,8 +5,8 @@
pkgname=rox
pkgver=2.10
pkgrel=2
-pkgdesc="A small and fast file manager which can optionally manage the desktop background and panels"
-arch=('i686' 'x86_64')
+pkgdesc="A small and fast file manager which can optionally manage the desktop background and panels."
+arch=(i686 x86_64 'mips64el')
license=('GPL2')
url="http://roscidus.com/desktop/"
depends=('sh' 'libsm' 'libglade')
diff --git a/extra/sane/PKGBUILD b/extra/sane/PKGBUILD
index a53386c7b..03118b5a2 100644
--- a/extra/sane/PKGBUILD
+++ b/extra/sane/PKGBUILD
@@ -25,12 +25,20 @@ build() {
patch -p1 -i "${srcdir}"/libv4l-0.8.3.patch
+ if [ ${CARCH} == 'mips64el' ]; then
+ export CFLAGS="${CFLAGS} -O1"
+ EXTRAOPTS="--without-snmp"
+ else
+ EXTRAOPTS=""
+ fi
+
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-docdir=/usr/share/doc/sane \
--enable-avahi \
- --disable-locking
+ --disable-locking \
+ $EXTRAOPTS
make
}
diff --git a/extra/sbcl/PKGBUILD b/extra/sbcl/PKGBUILD
index d7bb5d4b8..0ca331123 100644
--- a/extra/sbcl/PKGBUILD
+++ b/extra/sbcl/PKGBUILD
@@ -12,10 +12,12 @@ arch=('i686' 'x86_64' 'mips64el')
license=('custom')
depends=('glibc')
provides=('common-lisp' 'cl-asdf')
-makedepends=('sbcl' 'texinfo')
-source=("http://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2" "arch-fixes.lisp")
+makedepends=('clisp' 'texinfo')
+source=("http://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2" "arch-fixes.lisp"
+ "mips-arch.h.diff")
md5sums=('8d15c6af6388fcd9efbd13f301b7ba33'
- '7ac0c1936547f4278198b8bf7725204d')
+ '7ac0c1936547f4278198b8bf7725204d'
+ 'a456535d65d6c5b85b1b646f11455fce')
url="http://www.sbcl.org/"
install=sbcl.install
@@ -32,11 +34,13 @@ build() {
(lambda (features)
(flet ((enable (x) (pushnew x features))
(disable (x) (setf features (remove x features))))
- (enable :sb-thread)
+ (disable :sb-thread)
(disable :largefile)))
EOF
- sh make.sh sbcl
+ patch -Nup1 < "${srcdir}/mips-arch.h.diff"
+
+ sh make.sh clisp
mkdir -p ${startdir}/pkg/usr
pushd doc/manual
make info || return 1
diff --git a/extra/sbcl/mips-arch.h.diff b/extra/sbcl/mips-arch.h.diff
new file mode 100644
index 000000000..4f593aa83
--- /dev/null
+++ b/extra/sbcl/mips-arch.h.diff
@@ -0,0 +1,20 @@
+--- sbcl-1.0.49.orig/src/runtime/mips-arch.h 2011-06-25 16:13:44.103101571 +0200
++++ sbcl-1.0.49/src/runtime/mips-arch.h 2011-06-25 16:14:31.279501569 +0200
+@@ -1,6 +1,8 @@
+ #ifndef _MIPS_ARCH_H
+ #define _MIPS_ARCH_H
+
++/* For lose. */
++#include "interr.h"
+
+ static inline void
+ get_spinlock(volatile lispobj *word, long value)
+@@ -31,7 +33,7 @@
+ [__new] "r" (value)
+ : "memory");
+
+- if (!cmp)
++ if (!__cmp)
+ lose("recursive get_spinlock: 0x%x,%d\n", word, value);
+ #else /* LISP_FEATURE_SB_THREAD */
+ *word=value;
diff --git a/extra/x2x/PKGBUILD b/extra/x2x/PKGBUILD
index 8389e2ef8..3fa89f714 100644
--- a/extra/x2x/PKGBUILD
+++ b/extra/x2x/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=x2x
pkgver=1.27
pkgrel=6
pkgdesc="Control one X display from another"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64 'mips64el')
url="https://github.com/dottedmag/x2x"
license=('custom')
depends=('libxtst')