blob: 92e77c71d597488e7ac88eabea88e0aa6d49c164 (
plain)
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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@ --with autoreconf
override_dh_auto_configure:
cp -f /usr/share/misc/config.sub config.sub
cp -f /usr/share/misc/config.guess config.guess
# Some touch-fu
touch --time=mtime -r configure.in Makefile.am
touch --time=mtime -r configure.in Makefile.in
touch --time=mtime -r configure.in configure
touch --time=mtime -r configure.in aclocal.m4
touch --time=mtime -r configure.in Xw/Makefile.am
touch --time=mtime -r Xw/Makefile.am Xw/Makefile.in
dh_auto_configure -- --x-includes=/usr --with-tcl=/usr/lib \
--with-tcllibs=/usr/lib/$(DEB_HOST_MULTIARCH) \
--with-tklibs=/usr/lib/$(DEB_HOST_MULTIARCH)
override_dh_auto_build:
dh_auto_build -- \
librarydir=/usr/share/xcircuit \
exelibdir=/usr/lib/xcircuit \
scriptsdir=/usr/share/xcircuit
override_dh_auto_install:
$(MAKE) install \
librarydir=/usr/share/xcircuit \
exelibdir=/usr/lib/xcircuit \
scriptsdir=/usr/share/xcircuit \
appdefaultsdir=/etc/X11/app-defaults \
appmandir=/usr/share/man/man1/ \
DESTDIR=$(CURDIR)/debian/xcircuit
chmod a-x $(CURDIR)/debian/xcircuit/usr/share/xcircuit/console.tcl
chrpath -d $(CURDIR)/debian/xcircuit/usr/lib/xcircuit/xcircexec
override_dh_installchangelogs:
dh_installchangelogs CHANGES
override_dh_compress:
dh_compress --exclude examples/
override_dh_auto_test:
TMP=get-orig-source-tmp
get-orig-source:
rm -rf $(TMP)
mkdir $(TMP)
uscan --download --no-symlink --destdir $(TMP)
cd $(TMP) && tar xf xcircuit*.tgz && \
rm xcircuit*.tgz && \
rm -r */asg && \
rm -f */spiceparser/example && \
VERSION=`ls -d xcircuit*` && \
tar cfj ../$$VERSION.dfsg.tar.bz2 $$VERSION
rm -rf $(TMP)
|