3 # Created by Adam Dickmeiss, based on script by
4 # Morten Hendriksen <mgh@dbc.dk> and from Joey Hess.
6 # Uncomment this to turn on verbose mode.
9 # This is the debhelper compatability version to use.
12 CONFIG_FLAGS=--with-tclconfig=/usr/lib/tcl8.3 --with-yazconfig=/usr/bin --prefix=/usr
14 # Enable parallel builds if CONCURRENCY_LEVEL is set
15 ifdef CONCURRENCY_LEVEL
16 MCFLAGS=-j$(CONCURRENCY_LEVEL)
21 IRTCLDIR?=$(shell pwd)
23 # Local library path for linking with right dependencies
24 LOCAL_LINK=-ldebian/ir-tcl/usr/lib
26 configure: configure.in
29 stamp-configure: configure
32 ./configure $(CONFIG_FLAGS) --with-build-root=$(IRTCLDIR)/debian/tmp
36 stamp-build: stamp-configure
39 # Add here commands to compile the package.
48 rm -f *.o *.so *.a config.* irclient
51 -rm -rf debian/ir-tcl debian/*.debhelper debian/substvars
53 install: stamp-install
54 stamp-install: stamp-build
60 # Add here commands to install the package into debian/tmp.
61 -mkdirhier debian/tmp/usr
63 # $(MAKE) install prefix=`pwd`/debian/tmp/usr
67 # Build architecture-independent files here.
68 binary-indep: build install
71 dh_installdocs -p ir-tcl-doc doc/*.html doc/*.ps
72 dh_installchangelogs -p ir-tcl-doc
74 dh_strip -p ir-tcl-doc
75 dh_compress -p ir-tcl-doc
76 dh_fixperms -p ir-tcl-doc
77 dh_gencontrol -p ir-tcl-doc
78 dh_md5sums -p ir-tcl-doc
80 dh_builddeb -p ir-tcl-doc
82 # Build architecture-dependent files here.
83 binary-arch: build install
86 dh_movefiles -p ir-tcl usr/lib/irtcl usr/bin
89 cp LICENSE debian/copyright
90 dh_installdocs --all README changelog debian/copyright
98 dh_installdeb -p ir-tcl
99 for i in doc/*.n; do \
100 m=`echo $$i|sed 's/\.n/.3tcl/g'`; \
103 dh_installman -p ir-tcl doc/*.3tcl
104 dh_shlibdeps -p ir-tcl
106 dh_gencontrol -p ir-tcl
109 # Go kill those CVS-dirs before build
110 -find debian/tmp -type d -name CVS | xargs rm -rf
111 # For some reason it is necessary to remove empty-dirs in doc
112 -rm -rf debian/tmp/usr/include debian/tmp/usr/lib debian/tmp/usr/bin
114 dh_builddeb -p ir-tcl
116 binary: binary-indep binary-arch
117 .PHONY: build clean binary-indep binary-arch binary install install-stamp configure