1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DH_COMPAT=4
tclv=8.4
v=1.2
configure: configure-stamp
configure-stamp:
dh_testdir
./configure --prefix=/usr --mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--with-tcl=/usr/lib/tcl$(tclv) --with-tk=/usr/lib/tk$(tclv) \
--with-tkinclude=/usr/include/tcl$(tclv) \
--enable-threads
touch configure-stamp
build: build-stamp
build-stamp: configure
dh_testdir
$(MAKE) TCL_INC_DIR=/usr/include/tcl$(tclv)/tcl-private/generic TK_INC_DIR=/usr/include/tcl$(tclv)/tk-private/generic
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f configure-stamp build-stamp
-$(MAKE) distclean
find . -name "*.so" | xargs rm -f
find . -name "*.a" | xargs rm -f
find . -name config.status | xargs rm -f
find . -name config.log | xargs rm -f
dh_clean debian/dep
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install INSTALL_ROOT=`pwd`/debian/libtk-img
# This is so far beyond evil... we do this so that dpkg-shlibdeps can use -e
# to get the proper versioned depends: for these libs...
cd debian && gcc -o dep dep.c -ljpeg -ltiff -lpng -lz
# rm -f `pwd`/debian/libtk-img/usr/lib/Img$(v)/demo.tcl `pwd`/debian/libtk-img/usr/lib/Img$(v)/tkv.tcl
install -m 755 tkv.tcl `pwd`/debian/libtk-img/usr/bin/tkv
binary-indep:
binary-arch: build install
dh_testdir
dh_testroot
install -m 0644 doc/*.* `pwd`/debian/libtk-img/usr/share/doc/libtk-img/html/
dh_installdocs -a
dh_installexamples -a
dh_installman
dh_installchangelogs -a changes
dh_link -a
dh_strip -a
dh_compress -a
dh_fixperms -a
find `pwd`/debian/libtk-img/usr/include/ -type f | xargs chmod a-x
find `pwd`/debian/libtk-img/usr/lib/ -type f | xargs chmod a-x
dh_makeshlibs -a
dh_installdeb -a
dh_shlibdeps -a -- -e/usr/bin/wish$(tclv) -edebian/dep
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|