#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
include /usr/share/gnome-pkg-tools/1/rules/gnome-version.mk
include /usr/share/gnome-pkg-tools/1/rules/clean-la.mk
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

GNOME_MODULE := gnome-vfs

ifeq ($(DEB_HOST_ARCH),hurd-i386)
  HOST_ARCH_CONFIGURE_FLAGS=--disable-samba
else
  HOST_ARCH_CONFIGURE_FLAGS=--enable-ipv6 --enable-hal \
    --with-hal-mount=/usr/bin/pmount-hal --with-hal-umount=/usr/bin/pumount \
    --enable-avahi
endif

#debug lib
DEB_DH_STRIP_ARGS := --dbg-package=libgnomevfs2-0-dbg

DEB_CONFIGURE_EXTRA_FLAGS := --enable-gtk-doc --disable-openssl \
                             --enable-gnutls \
			     --libexecdir=/usr/lib/gnome-vfs-2.0 \
                             $(HOST_ARCH_CONFIGURE_FLAGS)

DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,--as-needed"

DEB_DH_MAKESHLIBS_ARGS_libgnomevfs2-extra := --no-act
DEB_COMPRESS_EXCLUDE := html
