summaryrefslogtreecommitdiff
path: root/extra/avahi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/avahi/PKGBUILD')
-rw-r--r--extra/avahi/PKGBUILD23
1 files changed, 14 insertions, 9 deletions
diff --git a/extra/avahi/PKGBUILD b/extra/avahi/PKGBUILD
index 4b20f73a1..c050e4fc5 100644
--- a/extra/avahi/PKGBUILD
+++ b/extra/avahi/PKGBUILD
@@ -8,20 +8,21 @@ pkgrel=4
pkgdesc='Multicast/unicast DNS-SD framework'
url='http://www.avahi.org/'
license=('LGPL')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
options=('!libtool' '!emptydirs')
depends=('expat' 'libdaemon' 'glib2' 'dbus' 'libcap' 'gdbm')
optdepends=('gtk3: avahi-discover-standalone, bshell, bssh, bvnc'
- 'gtk2: gtk2 bindings'
- 'qt3: qt3 bindings'
- 'qt: qt bindings'
+ 'gtk2: gtk2 bindings')
+[ "$CARCH" != "mips64el" ] && optdepends+=('qt3: qt3 bindings')
+optdepends+=('qt: qt bindings'
'pygtk: avahi-bookmarks, avahi-discover'
- 'twisted: avahi-bookmarks'
- 'mono: mono bindings'
- 'dbus-python: avahi-discover'
+ 'twisted: avahi-bookmarks')
+[ "$CARCH" != "mips64el" ] && optdepends+=('mono: mono bindings')
+optdepends+=('dbus-python: avahi-discover'
'nss-mdns: NSS support for mDNS')
-makedepends=('qt' 'qt3' 'pygtk' 'mono' 'intltool' 'dbus-python'
- 'gtk-sharp-2' 'gobject-introspection' 'gtk3' 'xmltoman')
+makedepends=('qt' 'pygtk' 'intltool' 'dbus-python'
+ 'gobject-introspection' 'gtk3' 'xmltoman')
+[ "$CARCH" != "mips64el" ] && makedepends+=('qt3' 'mono' 'gtk-sharp-2')
backup=('etc/avahi/hosts'
'etc/avahi/avahi-daemon.conf'
'etc/avahi/services/ssh.service'
@@ -42,6 +43,9 @@ build() {
sed -i 's/netdev/network/g' avahi-daemon/avahi-dbus.conf
patch -p1 -i ../rc.d.patch
+ [ "$CARCH" = "mips64el" ] && \
+ extra="--disable-qt3 --disable-mono"
+
# pygtk requires python2; make it explicit in case other python are installed: FS#21865
PYTHON=python2 \
PKG_CONFIG_PATH=/opt/qt/lib/pkgconfig \
@@ -57,6 +61,7 @@ build() {
--with-avahi-priv-access-group=network \
--with-autoipd-user=avahi \
--with-autoipd-group=avahi \
+ $extra \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
make