chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build-Depends: move tcl-dev to the end, so that we prefer tcl8.4-dev. This is necessa...
[chiark-tcl.git]
/
debian
/
rules
diff --git
a/debian/rules
b/debian/rules
index 485534d5cd910e80500d125c3e317c13a29fe5b9..faa763a91b3e1456da41e07357b9a82e80f2e757 100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-1,7
+1,7
@@
#!/usr/bin/make -f
# chiark-tcl - various Tcl bindings and extensions
#!/usr/bin/make -f
# chiark-tcl - various Tcl bindings and extensions
-# Copyright 2006 Ian Jackson
+# Copyright 2006
-2012
Ian Jackson
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
@@
-14,9
+14,7
@@
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-# 02110-1301, USA.
+# along with this library; if not, see <http://www.gnu.org/licenses/>.
majversion=1
majversion=1
@@
-25,13
+23,19
@@
libpackage=libtcl-chiark-$(majversion)
docpackage=libtcl-chiark-$(majversion)
docdir=usr/share/doc/$(docpackage)
docpackage=libtcl-chiark-$(majversion)
docdir=usr/share/doc/$(docpackage)
+tclh:=$(firstword $(wildcard /usr/include/tcl8.*/tcl.h))
+tclversion:=$(patsubst /usr/include/tcl%/tcl.h,%,$(tclh))
+
define checkdir
test -f hbytes/hbytes.tct
endef
define checkdir
test -f hbytes/hbytes.tct
endef
-build:
+build: build-arch build-indep
+build-arch:
$(checkdir)
$(checkdir)
- $(MAKE) prefix=/usr VERSION=$(majversion)
+ $(MAKE) prefix=/usr VERSION=$(majversion) TCL_VERSION=$(tclversion)
+
+build-indep:
clean:
$(checkdir)
clean:
$(checkdir)
@@
-46,11
+50,14
@@
binary-arch: checkroot build
-rm -rf debian/$(docpackage) debian/$(libpackage)
install -d debian/$(libpackage)/usr/lib
install -d debian/$(docpackage)/usr/share/doc/$(docpackage)
-rm -rf debian/$(docpackage) debian/$(libpackage)
install -d debian/$(libpackage)/usr/lib
install -d debian/$(docpackage)/usr/share/doc/$(docpackage)
- install -d debian/$(libpackage)/usr/share/lintian/overrides
+
+ set -e; for f in lintian; do \
+ install -d debian/$(libpackage)/usr/share/$$f/overrides; \
+ cp debian/$$f-overrides \
+ debian/$(libpackage)/usr/share/$$f/overrides/$(libpackage); \
+ done
cp */*.so debian/$(libpackage)/usr/lib/.
cp */*.so debian/$(libpackage)/usr/lib/.
- cp debian/lintian-overrides \
- debian/$(libpackage)/usr/share/lintian/overrides/$(libpackage)
set -e; for f in */*.[ch]; do \
perl debian/extractdoc <$$f \
set -e; for f in */*.[ch]; do \
perl debian/extractdoc <$$f \
@@
-62,12
+69,14
@@
binary-arch: checkroot build
dh_installchangelogs
dh_strip
dh_installchangelogs
dh_strip
- dh_shlibdeps
+ dh_makeshlibs
+ dh_shlibdeps -Xchiark_tcl_adns -Xchiark_tcl_crypto
# be consistent about what we compress:
# be consistent about what we compress:
- dh_compress -X
'*.[ch].txt'
+ dh_compress -X
.c.txt -X.h.txt
dh_fixperms
dh_fixperms
+ dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dh_gencontrol
dh_md5sums
dh_builddeb