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
|
#!/usr/bin/make -f
# -*- makefile -*-
DIR = $(CURDIR)/debian/tcl-udp
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/architecture.mk
%:
dh $@
override_dh_auto_clean:
dh_auto_clean
#
# Remove stale manpage
rm -f udp.n
override_dh_auto_configure:
dh_auto_configure -- \
--with-tcl=/usr/lib/$(DEB_HOST_MULTIARCH) \
--with-tclinclude=/usr/include/tcl
override_dh_auto_install:
$(MAKE) install DESTDIR=$(DIR)
#
mv $(DIR)/usr/lib/$(DEB_HOST_MULTIARCH) $(DIR)/usr/lib/tcltk
find $(DIR) -empty -prune -exec rmdir \{\} \;
sed -i -e "/^.so man.macros/ {r $$(ls -1 /usr/share/tcltk/tcllib*/doctools/mpformats/man.macros)" -e 'd}' \
$(DIR)/usr/share/man/man3/udp.3tcl
override_dh_shlibdeps:
tcltk-depends
dh_shlibdeps
chmod a-x $(DIR)/usr/share/doc/tcl-udp/examples/*
override_dh_auto_test:
get-orig-source:
wget -O tcludp_1.0.11.orig.tar.gz \
http://prdownloads.sourceforge.net/tcludp/tcludp-1.0.11.tar.gz
.PHONY: override_dh_auto_clean override_dh_auto_configure \
override_dh_auto_install override_dh_shlibdeps \
override_dh_auto_test get-orig-source
|