#!/usr/bin/make -f

GNOME_MODULE=gnome-desktop

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/rules/utils.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-get-source.mk

LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed

DEB_DH_AUTORECONF_ARGS = --as-needed

LIB_PKG := libgnome-desktop-3-12

DEB_CONFIGURE_LIBEXECDIR := \$${prefix}/lib/$(DEB_HOST_MULTIARCH)/$(LIB_PKG)

DEB_CONFIGURE_EXTRA_FLAGS += \
			--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
			--with-gnome-distributor=$(shell dpkg-vendor --query vendor) \
			--with-pnp-ids-path=/usr/share/hwdata/pnp.ids \
			--disable-date-in-gnome-version \
			--enable-gtk-doc \
			--enable-desktop-docs \
			--enable-introspection

DEB_DH_MAKESHLIBS_ARGS_$(LIB_PKG) += -- -c4

common-binary-post-install-arch:: list-missing
