File: rules

package info (click to toggle)
tktray 1.3.9-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 1,132 kB
  • ctags: 257
  • sloc: ansic: 1,028; sh: 114; tcl: 57; makefile: 30
file content (43 lines) | stat: -rwxr-xr-x 1,142 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
#!/usr/bin/make -f
# -*- makefile -*-

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/architecture.mk

LDFLAGS_DEFAULT = `dpkg-buildflags --get LDFLAGS`
export LDFLAGS_DEFAULT
LDFLAGS_OPTIMIZE = `dpkg-buildflags --get LDFLAGS`
export LDFLAGS_OPTIMIZE

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
			  --with-tcl=/usr/lib \
			  --with-tk=/usr/lib

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp
	# Move the library into the multiarch dir
	install -m 755 -d debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
	mv debian/tmp/usr/lib/tktray* debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
	# Cleanup manpage
	cd debian/tmp/usr/share/man/mann && \
	  for f in *.n ; do \
	    sed -i -e'/\.so man.macros/ d' \
	    	-e's/^\.TH \([^ ]\+\) n/.TH \1 3tk/' \
	    	-e's/^\.BS//' \
	    	-e's/^\.BE//' \
		$$f; \
	  done

override_dh_auto_test:
	# Tests require X, so disable them

get-orig-source:
	wget -O tktray_1.3.9.orig.tar.gz \
		http://tktray.googlecode.com/files/tktray1.3.9.tar.gz

.PHONY: override_dh_auto_configure override_dh_auto_install override_dh_auto_test get-orig-source