3
# Uncomment this to turn on verbose mode.
14
./configure --prefix=/usr --includedir=/usr/include/tcl$(v) \
15
--with-tcl=/usr/lib/tcl$(v) --enable-shared && \
16
$(MAKE) CFLAGS="-g -O2 -D_REENTRANT"
17
# Build the static library.
19
ar cr libtk$(v).a *.o && \
20
ar d libtk$(v).a tkAppInit.o && \
28
rm -f build-stamp install-stamp
30
-cd unix && $(MAKE) clean
31
-cd unix && $(MAKE) distclean
35
install: install-stamp
36
install-stamp: build-stamp
41
mkdir -p debian/tmp/usr
43
make INSTALL_ROOT=`pwd`/../debian/tmp \
44
MAN_INSTALL_DIR=`pwd`/../debian/tmp/usr/share/man \
45
MANN_INSTALL_DIR=`pwd`/../debian/tmp/usr/share/man/man3 install
46
# Fix up the libraries.
47
cp unix/libtk$(v).a debian/tmp/usr/lib
48
mv debian/tmp/usr/lib/libtk$(v).so debian/tmp/usr/lib/libtk$(v).so.1
49
ln -sf libtk$(v).so.1 debian/tmp/usr/lib/libtk$(v).so
50
mv debian/tmp/usr/lib/*.sh debian/tmp/usr/lib/tk$(v)
51
# Fix up the include files.
52
install -d debian/tmp/usr/include/tcl$(v)/tk-private/generic
53
cp generic/*.h debian/tmp/usr/include/tcl$(v)/tk-private/generic
54
install -d debian/tmp/usr/include/tcl$(v)/tk-private/unix
55
cp unix/*.h debian/tmp/usr/include/tcl$(v)/tk-private/unix
56
# Fix up the manpages.
57
cd debian/tmp/usr/share/man/man1 && \
59
cd debian/tmp/usr/share/man/man3 && \
60
for f in *.[3n] ; do \
61
mv $$f `echo $$f | sed -e 's/\.[3n]/.3tk/'`; \
63
rm -rf `pwd`/debian/tmp/usr/lib/tk$(v)/demos
64
ln -sf ../../share/doc/tk$(v)/examples `pwd`/debian/tmp/usr/lib/tk$(v)/demos
65
# Install pkgIndex.tcl
66
cp unix/pkgIndex.tcl `pwd`/debian/tmp/usr/lib/tk$(v)/
70
# Build architecture-independent files here.
71
binary-indep: build install
76
dh_installchangelogs -i
78
cd debian/tk$(v)-doc/usr/share/man/man3 && \
79
for f in `find . -type l ! -name "*.gz"`; do \
80
linkname=`readlink $$f`; \
82
ln -s `echo $$linkname | sed -e 's/\.[3n]/.3tk/'`.gz $${f}.gz; \
90
# Build architecture-dependent files here.
91
binary-arch: build install
96
install -d `pwd`/debian/tk$(v)/usr/share/doc/tk$(v)/examples/
97
cp -a library/demos/* `pwd`/debian/tk$(v)/usr/share/doc/tk$(v)/examples/
98
rm -f `pwd`/debian/tk$(v)/usr/share/doc/tk$(v)/examples/license.terms
99
rm -rf debian/tk$(v)-dev/usr/share/doc/tk$(v)-dev
100
ln -sf tk$(v) debian/tk$(v)-dev/usr/share/doc/tk$(v)-dev
102
dh_installchangelogs -ptk$(v) -k changes
104
dh_compress -a -Xusr/share/doc/tk$(v)/examples/
107
dh_makeshlibs -a -V 'tk$(v) (>= 8.3.0)'
108
dh_shlibdeps -a -ldebian/tk$(v)/usr/lib
114
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
116
binary: binary-indep binary-arch
117
.PHONY: build clean binary-indep binary-arch binary install