File: rules

package info (click to toggle)
tcludp 1.0.11-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 760 kB
  • ctags: 171
  • sloc: ansic: 1,695; sh: 502; tcl: 221; makefile: 30
file content (45 lines) | stat: -rwxr-xr-x 1,132 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
#!/usr/bin/make -f
# -*- makefile -*-

DIR = $(CURDIR)/debian/tcl-udp

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

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	#
	# Remove stale manpage
	rm -f udp.n

override_dh_auto_configure:
	dh_auto_configure -- \
			  --with-tcl=/usr/lib/$(DEB_HOST_MULTIARCH) \
			  --with-tclinclude=/usr/include/tcl

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(DIR)
	#
	mv $(DIR)/usr/lib/$(DEB_HOST_MULTIARCH) $(DIR)/usr/lib/tcltk
	find $(DIR) -empty -prune -exec rmdir \{\} \;
	sed -i -e "/^.so man.macros/ {r $$(ls -1 /usr/share/tcltk/tcllib*/doctools/mpformats/man.macros)" -e 'd}' \
	    $(DIR)/usr/share/man/man3/udp.3tcl

override_dh_shlibdeps:
	tcltk-depends
	dh_shlibdeps
	chmod a-x $(DIR)/usr/share/doc/tcl-udp/examples/*

override_dh_auto_test:

get-orig-source:
	wget -O tcludp_1.0.11.orig.tar.gz \
	     http://prdownloads.sourceforge.net/tcludp/tcludp-1.0.11.tar.gz 

.PHONY: override_dh_auto_clean override_dh_auto_configure \
	override_dh_auto_install override_dh_shlibdeps \
	override_dh_auto_test get-orig-source