File: rules

package info (click to toggle)
pinentry 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,912 kB
  • ctags: 1,081
  • sloc: ansic: 7,025; sh: 6,517; cpp: 922; makefile: 203
file content (33 lines) | stat: -rwxr-xr-x 880 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
29
30
31
32
33
#!/usr/bin/make -f

QT_SELECT = qt5
export QT_SELECT
SHARED_CONFIGS = --disable-rpath --without-libcap --disable-pinentry-emacs --disable-inside-emacs --enable-fallback-curses
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure --builddirectory=build-no-libsecret -- \
		$(SHARED_CONFIGS) --disable-libsecret \
		--enable-pinentry-tty \
		--enable-pinentry-curses \
		--enable-pinentry-qt \
		--disable-pinentry-gtk2 \
		--disable-pinentry-gnome3
	dh_auto_configure -- $(SHARED_CONFIGS) \
		--disable-pinentry-tty \
		--disable-pinentry-curses \
		--disable-pinentry-qt \
		--enable-pinentry-gtk2 \
		--enable-pinentry-gnome3

override_dh_auto_build:
	dh_auto_build --builddirectory=build-no-libsecret
	dh_auto_build

override_dh_installdocs:
	dh_installdocs -A NEWS AUTHORS

LDFLAGS += -Wl,--as-needed