2007-04-21 21:45:32 +00:00
|
|
|
#!/usr/bin/make -f
|
2011-06-22 14:36:15 +00:00
|
|
|
|
|
|
|
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
|
|
|
|
ifeq ($(DEB_HOST_ARCH_OS),hurd)
|
|
|
|
EXTRA_CONFIGURE_ARGS += --disable-usb
|
|
|
|
endif
|
|
|
|
|
2016-03-20 16:41:49 +00:00
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
|
|
|
2010-08-04 09:33:24 +00:00
|
|
|
%:
|
2017-12-19 18:08:38 +00:00
|
|
|
dh $@
|
2011-06-22 14:36:15 +00:00
|
|
|
|
|
|
|
override_dh_auto_configure:
|
2021-10-01 16:35:46 +00:00
|
|
|
dh_auto_configure -- $(EXTRA_CONFIGURE_ARGS) \
|
2021-10-01 16:36:54 +00:00
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
2021-10-01 16:35:46 +00:00
|
|
|
--enable-usbdropdir=/usr/lib/pcsc/drivers \
|
|
|
|
--enable-ipcdir=/run/pcscd \
|
|
|
|
$(shell dpkg-buildflags --export=configure)
|
2020-01-26 11:38:31 +00:00
|
|
|
|
|
|
|
ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes) $(DEB_HOST_ARCH), yes i386)
|
|
|
|
skip_packages = -Npcscd
|
|
|
|
endif
|
|
|
|
|
|
|
|
override_dh_builddeb:
|
|
|
|
dh_builddeb ${skip_packages}
|
|
|
|
|
|
|
|
override_dh_gencontrol:
|
|
|
|
dh_gencontrol ${skip_packages}
|