#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed # see https://bugzilla.gnome.org/show_bug.cgi?id=594473 for details export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions export SENDMAIL_PATH = /usr/sbin/sendmail %: dh $@ --with gir,gnome ifeq (,$(filter $(DEB_HOST_ARCH), hppa hurd-i386 kfreebsd-i386 kfreebsd-amd64)) CONFFLAGS = -DWITH_PHONENUMBER=ON endif override_dh_auto_configure: dh_auto_configure -- \ -DLIBEXEC_INSTALL_DIR=/usr/lib/evolution \ -DSYSCONF_INSTALL_DIR=/etc \ -DWITH_LIBDB=/usr \ -DWITH_OPENLDAP=ON \ -DWITH_KRB5=ON \ -DCMAKE_SKIP_RPATH=ON \ -DENABLE_GTK=ON \ -DENABLE_GTK_DOC=ON \ -DENABLE_OAUTH2=ON \ -DENABLE_GOA=ON \ -DENABLE_UOA=OFF \ -DENABLE_EXAMPLES=ON \ -DENABLE_WEATHER=ON \ -DENABLE_INSTALLED_TESTS=ON \ -DENABLE_INTROSPECTION=ON \ -DENABLE_VALA_BINDINGS=ON \ $(CONFFLAGS) # don't configure with --libdir, but move the files manually, because # /usr/lib/evolution-data-server must not change. override_dh_install: mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig mv debian/tmp/usr/lib/*.so debian/tmp/usr/lib/*.so.* debian/tmp/usr/lib/girepository-1.0 \ debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) mv debian/tmp/usr/lib/pkgconfig/*.pc \ debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig find debian/tmp/usr/lib -name '*.a' -delete find debian/tmp/usr/lib -name '*.la' -delete dh_install override_dh_missing: dh_missing --fail-missing override_dh_fixperms-arch: chgrp mail $(CURDIR)/debian/evolution-data-server/usr/lib/evolution/camel-lock-helper* chmod g+s $(CURDIR)/debian/evolution-data-server/usr/lib/evolution/camel-lock-helper* dh_fixperms -a -X/usr/lib/evolution/camel-lock-helper* override_dh_makeshlibs: dh_makeshlibs -V -X/usr/lib/evolution-data-server/ -- -c4 override_dh_strip: dh_strip --dbgsym-migration='evolution-data-server-dbg (<< 3.20.2-2~)' override_dh_auto_test: dbus-run-session -- dh_auto_test || true