File: rules

package info (click to toggle)
vte 1%3A0.28.2-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,140 kB
  • sloc: ansic: 33,674; sh: 10,491; makefile: 541; python: 194; xml: 151
file content (37 lines) | stat: -rwxr-xr-x 950 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
34
35
36
37
#!/usr/bin/make -f

LIB_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libvte[0-9]+t64)[[:space:]]*$$/\1/p' debian/control)
UDEB_PKG := $(shell echo $(LIB_PKG) | sed -e's/t64$$//')-udeb

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed
export DEB_CFLAGS_MAINT_APPEND = -Os
export DEB_CPPFLAGS_MAINT_APPEND = \
	-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32 \
	-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_CUR_STABLE \
	$(NULL)

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-python \
		--disable-gnome-pty-helper \
		--disable-gtk-doc \
		--disable-ncurses

override_dh_clean:
	dh_clean
	rm -f src/app.c

override_dh_makeshlibs:
	dh_makeshlibs -p$(LIB_PKG) --add-udeb=$(UDEB_PKG) -V -- -c4
	dh_makeshlibs --remaining-packages

override_dh_install:
	find debian/tmp -name '*.la' -print -delete
	dh_install