File: rules

package info (click to toggle)
iwidgets4 4.1.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 5,044 kB
  • sloc: tcl: 19,688; sh: 638; awk: 273; perl: 265; makefile: 130
file content (39 lines) | stat: -rwxr-xr-x 903 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

v = 4
vv=4.1.1
dtmp=$(shell pwd)/debian/tmp

%:
	dh $@

override_dh_auto_configure:
	#chmod u+x mkinstalldirs	# dpkg-source isn't very smart...
	dh_auto_configure -- \
			  --with-tcl=/usr/lib \
			  --with-tk=/usr/lib \
			  --with-itcl=/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_install:
	$(MAKE) DESTDIR=$(dtmp) \
		MAN_INSTALL_DIR=$(dtmp)/usr/share/man/man3 install
	#
	# Fix up the manpages
	cd $(dtmp)/usr/share/man/man3 && \
	  for i in *.n; do \
	    mv $$i $$(basename $$i .n).3iwidget; \
	  done

override_dh_auto_test:
	# Tests require X, so disable them

override_dh_compress:
	dh_compress -Xdemos

get-orig-source: 
	wget -O iwidgets$(v)_$(vv).orig.tar.gz \
		http://prdownloads.sourceforge.net/incrtcl/iwidgets-$(vv).tar.gz

.PHONY: override_dh_auto_configure override_dh_auto_install override_dh_compress get-orig-source