]> git.sven.stormbind.net Git - sven/tclcurl.git/blob - debian/rules
Adjust d/changelog to the snapshot version.
[sven/tclcurl.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 export DEB_LDFLAGS_MAINT_PREPEND := -Wl,-z,defs -Wl,--as-needed
7 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
8
9 %:
10         dh $@ --with quilt
11
12 override_dh_auto_configure:
13         dh_auto_configure -- \
14                 --prefix=/usr \
15                 --mandir=/usr/share/man \
16                 --infodir=/usr/share/info \
17                 --enable-threads \
18                 --with-tcl=/usr/lib \
19                 --with-tclinclude=/usr/include/tcl \
20
21 override_dh_auto_install:
22         dh_auto_install --destdir=$(CURDIR)/debian/tclcurl
23
24         mkdir $(CURDIR)/debian/tclcurl/usr/lib/tcltk
25         mv $(CURDIR)/debian/tclcurl/usr/lib/$(DEB_HOST_MULTIARCH)/TclCurl* \
26                 $(CURDIR)/debian/tclcurl/usr/lib/tcltk
27         rm -rf \
28                 $(CURDIR)/debian/tclcurl/usr/share/man/mann \
29                 $(CURDIR)/debian/tclcurl/usr/bin \
30                 $(CURDIR)/debian/tclcurl/usr/include \
31                 $(CURDIR)/debian/tclcurl/usr/lib/$(DEB_HOST_MULTIARCH)
32
33         chmod 644 \
34                 $(CURDIR)/tests/*.tcl \
35                 $(CURDIR)/tests/multi/double.tcl \
36                 $(CURDIR)/tests/multi/single.tcl
37
38 override_dh_auto_test:
39
40 override_dh_makeshlibs:
41         dh_makeshlibs
42         tcltk-depends