]> git.sven.stormbind.net Git - sven/mysqltcl.git/blob - debian/rules
Remove usage of dh-autoreconf, it's now a debhelper default.
[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 DPKG_EXPORT_BUILDFLAGS = 1
8 include /usr/share/dpkg/buildflags.mk
9
10 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
11
12 %:
13         dh $@ --with quilt
14
15 override_dh_auto_configure:
16         dh_auto_configure -- \
17                 --prefix=/usr \
18                 --enable-threads \
19                 --mandir=/usr/share/man \
20                 --infodir=/usr/share/info \
21                 --with-tcl=/usr/lib \
22                 --with-tclinclude=/usr/include/tcl \
23                 --with-mysql-lib=/usr/lib/$(DEB_HOST_MULTIARCH)
24
25 override_dh_auto_install:
26         dh_auto_install --destdir=$(CURDIR)/debian/mysqltcl
27
28         mkdir -p $(CURDIR)/debian/mysqltcl/usr/lib/tcltk/$(DEB_HOST_MULTIARCH)
29         mv $(CURDIR)/debian/mysqltcl/usr/lib/$(DEB_HOST_MULTIARCH)/mysqltcl* \
30                 $(CURDIR)/debian/mysqltcl/usr/lib/tcltk/$(DEB_HOST_MULTIARCH)
31         rm -rf \
32                 $(CURDIR)/debian/mysqltcl/usr/share/man/mann \
33                 $(CURDIR)/debian/mysqltcl/usr/bin \
34                 $(CURDIR)/debian/mysqltcl/usr/include \
35                 $(CURDIR)/debian/mysqltcl/usr/lib/$(DEB_HOST_MULTIARCH)
36
37 override_dh_makeshlibs:
38         dh_makeshlibs
39         tcltk-depends