1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#!/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
|