#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 include /usr/share/dpkg/architecture.mk export DEB_BUILD_MAINT_OPTIONS := hardening=+all export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed %: dh $@ execute_before_dh_autoreconf: # We removed lib/*/ from the orig tarball (cf. d/copyright), # now we must drop references to lib/*/ from the build system. sed -i "/^SUBDIRS =/s/.*/SUBDIRS =/" Makefile.in sed -i "/^AC_CONFIG_FILES/s/lib\/\S*//g" configure.ac execute_after_dh_autoreconf: # Need to patch po/Makefile.in.in (note that this file is copied # from /usr by autoreconf, it's not the file shipped by upstream) # Cf. https://github.com/notroj/cadaver/issues/16 sed -i "/^mkdir_p = /s/@mkdir_p@/@MKDIR_P@/" po/Makefile.in.in override_dh_auto_configure: ./configure \ --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr --mandir=\$${prefix}/share/man \ --enable-warnings --enable-netrc --with-ssl=gnutls