* Add debian/patches/tcl.m4_gnu_non_linux_ld_settings, patch provided
[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 LDFLAGS += -Wl,-z,defs -Wl,--as-needed
7
8 %:
9         dh $@ --with quilt,autoreconf
10
11 override_dh_auto_configure:
12         dh_auto_configure -- \
13                 --prefix=/usr \
14                 --enable-threads \
15                 --mandir=/usr/share/man \
16                 --infodir=/usr/share/info \
17                 --with-tcl=/usr/lib \
18                 --with-tclinclude=/usr/include/tcl \
19
20 override_dh_auto_install:
21         dh_auto_install --destdir=$(CURDIR)/debian/mysqltcl
22
23         mkdir $(CURDIR)/debian/mysqltcl/usr/lib/tcltk
24         mv $(CURDIR)/debian/mysqltcl/usr/lib/mysqltcl* \
25                 $(CURDIR)/debian/mysqltcl/usr/lib/tcltk
26         rm -rf \
27                 $(CURDIR)/debian/mysqltcl/usr/share/man/mann \
28                 $(CURDIR)/debian/mysqltcl/usr/bin \
29                 $(CURDIR)/debian/mysqltcl/usr/include
30
31 override_dh_makeshlibs:
32         dh_makeshlibs
33         tcltk-depends