File: rules

package info (click to toggle)
pcsc-lite 1.9.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,840 kB
  • sloc: ansic: 13,302; sh: 4,801; python: 786; lex: 613; makefile: 214
file content (28 lines) | stat: -rwxr-xr-x 699 bytes parent folder | download
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
#!/usr/bin/make -f

DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ifeq ($(DEB_HOST_ARCH_OS),hurd)
  EXTRA_CONFIGURE_ARGS += --disable-usb
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(EXTRA_CONFIGURE_ARGS) \
		--with-systemdsystemunitdir=/lib/systemd/system \
		--enable-usbdropdir=/usr/lib/pcsc/drivers \
		--enable-ipcdir=/run/pcscd \
		$(shell dpkg-buildflags --export=configure)

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}