File: rules

package info (click to toggle)
motif 2.3.4-13
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 81,160 kB
  • ctags: 51,769
  • sloc: ansic: 596,938; cpp: 3,951; yacc: 2,854; makefile: 2,070; csh: 1,199; sh: 1,070; lex: 455
file content (55 lines) | stat: -rwxr-xr-x 1,794 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/make -f

export DEB_CFLAGS_MAINT_APPEND=-D_FILE_OFFSET_BITS=64
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-printing \
		--disable-demos \
		--enable-jpeg \
		--enable-png \
		--enable-xft \
		--with-mwmrcdir="/etc/X11/mwm" \
		--with-xmbinddir="/usr/share/X11/bindings" \
		--with-x11rgbdir="/etc/X11"

# Can be removed after Stretch release
override_dh_strip:
	dh_strip --ddeb-migration='libmotif4-dbg (<< 2.3.4-10~)'

override_dh_install:
	# Fixing several man page warnings until proper sources are found
	# Comments generated by very old docbook2man were ...\" instead of .\"
	# For proper indexing you probably need to define the IX macro properly
	# DT macro resets tab at the beginning of the man page
	# Make sure the files report their section correctly
	# Update /usr/X11R6/ paths to their correct locations
	find debian/tmp/usr/share/man/ -regex ".*\.[1345]" -exec sed --in-place \
		-e "s/^\.\.\.\\\\"/\.\\\\"/" \
		-e "s/^\.iX *//" \
		-e "s/^\.DT\\$$//" \
		-e "s/^\.TH \(.*\) \"user cmd\"/\.TH \1 1/" \
		-e "s/^\.TH \(.*\) \"library call\"/\.TH \1 3/" \
		-e "s/^\.TH \(.*\) 3x/\.TH \1 3/" \
		-e "s/^\.TH \(.*\) 3X/\.TH \1 3/" \
		-e "s/^\.TH \(.*\) \"special file\"/\.TH \1 4/" \
		-e "s/^\.TH \(.*\) \"file formats\"/\.TH \1 5/" \
		-e "s/\/usr\/lib\/X11\/rgb.txt/\/etc\/X11\/rgb.txt/g" \
		-e "s/\/usr\/X11R6\/lib\/X11\/app-defaults/\/etc\/X11\/app-defaults/g" \
		-e "s/\/usr\/X11R6\/lib\/X11/\/etc\/X11\/mwm/g" \
		-e "s/\/usr\/X11R6\/bin\/X11/\/usr\/bin/g" \
		-e "s/\/usr\/X11R6\/include/\/usr\/include/g" \
		{} \;

	dh_install

override_dh_installwm:
	dh_installwm --priority=50