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
|
#!/usr/bin/make -f
# -*- makefile -*-
TCLVERSIONS = 8.6 9.0
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/architecture.mk
LDFLAGS_DEFAULT = `dpkg-buildflags --get LDFLAGS`
export LDFLAGS_DEFAULT
LDFLAGS_OPTIMIZE = `dpkg-buildflags --get LDFLAGS`
export LDFLAGS_OPTIMIZE
%:
dh $@
override_dh_auto_configure:
for v in $(TCLVERSIONS) ; do \
dh_auto_configure -B$(CURDIR)/debian/$$v -- \
--with-tcl=/usr/lib/tcl$$v \
--with-tk=/usr/lib/tk$$v ; \
done
override_dh_auto_install:
for v in $(TCLVERSIONS) ; do \
dh_auto_install -B$(CURDIR)/debian/$$v \
--destdir=$(CURDIR)/debian/tmp ; \
done
# Cleanup manpage
cd debian/tmp/usr/share/man/mann && \
for f in *.n ; do \
sed -i -e'/\.so man.macros/ d' \
-e's/^\.TH \([^ ]\+\) n/.TH \1 3tk/' \
-e's/^\.BS//' \
-e's/^\.BE//' \
$$f; \
done
override_dh_auto_test:
# Tests require X, so disable them
get-orig-source:
wget -O tktray_1.3.9.orig.tar.gz \
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/tktray/tktray1.3.9.tar.gz
.PHONY: override_dh_auto_configure override_dh_auto_install override_dh_auto_test get-orig-source
|