summaryrefslogtreecommitdiff
path: root/extra/sane
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sane')
-rw-r--r--extra/sane/PKGBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/extra/sane/PKGBUILD b/extra/sane/PKGBUILD
index 5fbfd67f3..03118b5a2 100644
--- a/extra/sane/PKGBUILD
+++ b/extra/sane/PKGBUILD
@@ -9,7 +9,7 @@ pkgver=1.0.22
pkgrel=2
pkgdesc="Scanner Access Now Easy"
url="http://www.sane-project.org/"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
depends=('libtiff>=3.9.2-2' 'libgphoto2>=2.4.7-2' 'libjpeg>=8' 'libieee1284' 'libusb-compat' 'v4l-utils' 'avahi' 'bash')
makedepends=('texlive-latexextra')
@@ -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
}