releasing package mysqltcl version 3.052-4
[sven/mysqltcl.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_BUILD_MAINT_OPTIONS = hardening=+all
7 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
8
9 %:
10         dh $@
11
12 override_dh_auto_configure:
13         dh_auto_configure -- \
14                 --prefix=/usr \
15                 --enable-threads \
16                 --mandir=/usr/share/man \
17                 --infodir=/usr/share/info \
18                 --with-tcl=/usr/lib \
19                 --with-tclinclude=/usr/include/tcl \
20                 --with-mysql-lib=/usr/lib/$(DEB_HOST_MULTIARCH)
21
22 override_dh_auto_install:
23         dh_auto_install --destdir=$(CURDIR)/debian/mysqltcl
24
25         mkdir -p $(CURDIR)/debian/mysqltcl/usr/lib/tcltk/$(DEB_HOST_MULTIARCH)
26         mv $(CURDIR)/debian/mysqltcl/usr/lib/$(DEB_HOST_MULTIARCH)/mysqltcl* \
27                 $(CURDIR)/debian/mysqltcl/usr/lib/tcltk/$(DEB_HOST_MULTIARCH)
28         rm -rf \
29                 $(CURDIR)/debian/mysqltcl/usr/share/man/mann \
30                 $(CURDIR)/debian/mysqltcl/usr/bin \
31                 $(CURDIR)/debian/mysqltcl/usr/include \
32                 $(CURDIR)/debian/mysqltcl/usr/lib/$(DEB_HOST_MULTIARCH)
33
34 override_dh_makeshlibs:
35         dh_makeshlibs
36         tcltk-depends