File: rules

package info (click to toggle)
tclcurl 7.22.1-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,932 kB
  • sloc: ansic: 4,479; tcl: 898; sh: 435; makefile: 39
file content (50 lines) | stat: -rwxr-xr-x 1,494 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
TCLVERSIONS = 8.6 9.0

%:
	dh $@

override_dh_auto_configure:
	for v in $(TCLVERSIONS) ; do \
		dh_auto_configure --builddir=$(CURDIR)/debian/$$v -- \
				  --prefix=/usr			\
				  --mandir=/usr/share/man	\
				  --infodir=/usr/share/info	\
				  --enable-threads		\
				  --with-tcl=/usr/lib/tcl$$v ;	\
	done

override_dh_auto_build:
	for v in $(TCLVERSIONS) ; do \
		BUILD_DIR="$(CURDIR)/debian/$$v"; \
		echo "Building tclcurl for Tcl$$v in $$BUILD_DIR" ; \
		dh_auto_build --builddir=$(CURDIR)/debian/$$v --; \
	done

override_dh_auto_install:
	mkdir -p $(CURDIR)/debian/tclcurl/usr/lib/tcltk/$(DEB_HOST_MULTIARCH)/TclCurl ;
	for v in $(TCLVERSIONS) ; do \
		dh_auto_install --destdir=$(CURDIR)/debian/tclcurl ; \
		cp -v   $(CURDIR)/debian/$$v/lib*.so \
			$(CURDIR)/debian/tclcurl/usr/lib/tcltk/$(DEB_HOST_MULTIARCH)/TclCurl ;\
	done
	cp -v   $(CURDIR)/debian/8.6/pkgIndex.tcl \
		$(CURDIR)/debian/tclcurl/usr/lib/tcltk/$(DEB_HOST_MULTIARCH)/TclCurl ;
	rm -rf 	$(CURDIR)/debian/tclcurl/usr/share/man/mann \
		$(CURDIR)/debian/tclcurl/usr/bin \
		$(CURDIR)/debian/tclcurl/usr/include \
		$(CURDIR)/debian/tclcurl/usr/lib/$(DEB_HOST_MULTIARCH) ;
	chmod 644 $(CURDIR)/tests/*.tcl \
		  $(CURDIR)/tests/multi/double.tcl \
		  $(CURDIR)/tests/multi/single.tcl

override_dh_auto_test:

override_dh_makeshlibs:
	dh_makeshlibs
	tcltk-depends