diff options
Diffstat (limited to 'extra/sane/PKGBUILD')
-rw-r--r-- | extra/sane/PKGBUILD | 10 |
1 files changed, 9 insertions, 1 deletions
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 } |