summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/libraries/libtqt-perl/debian/rules
blob: 85d92e92329c4dfb6146bce6a2176853ee177e41 (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
62
63
64
65
66
67
68
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

SAVERESTORE=\
	acinclude.m4 \
	aclocal.m4 \
	admin/config.guess \
	admin/config.sub \
	admin/libtool.m4.in \
	admin/ltmain.sh \
	config.h.in \
	configure \
	Makefile.in \
	puic/Makefile.in \
	smoke/Makefile.in \
	smoke/tqt/Makefile.in \
	PerlTQt/bin \

DEB_AUTO_UPDATE_AUTOCONF := 2.61

DEB_CONFIGURE_EXTRA_FLAGS += \
	--prefix=/opt/trinity \
	--mandir=\$${prefix}/share/man \
	--infodir=\$${prefix}/share/info \
	--disable-rpath \

DEB_MAKE_INSTALL_TARGET := install \
	prefix=/usr \
	DESTDIR=$(CURDIR)/debian/libtqt-perl

# The default gzip compressor has been changed in dpkg >= 1.17.0.
deb_default_compress = $(shell LANG=C dpkg-deb --version | head -n1 | \
                         sed -e "s|.*version ||" -e "s| .*||" | \
                         xargs -r dpkg --compare-versions 1.17.0 lt \
                         && echo xz || echo gzip)
ifeq ($(deb_default_compress),gzip)
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
                               && echo xz || echo bzip2)
endif

pre-build:: pre-build-stamp

pre-build-stamp:
	for f in $(SAVERESTORE) ; do [ -e $$f.d-r-orig ] || cp -rp $$f $$f.d-r-orig ; done
	cp -f /usr/share/aclocal/libtool.m4 admin/libtool.m4.in
ifneq "$(wildcard /usr/share/libtool/config/ltmain.sh)" ""
	cp -f /usr/share/libtool/config/ltmain.sh admin/ltmain.sh
endif
ifneq "$(wildcard /usr/share/libtool/build-aux/ltmain.sh)" ""
	cp -f /usr/share/libtool/build-aux/ltmain.sh admin/ltmain.sh
endif
	cp -f /usr/share/misc/config.guess admin/config.guess
	cp -f /usr/share/misc/config.sub admin/config.sub
	make -f admin/Makefile.common
	touch pre-build-stamp

build/libtqt-perl::
	chrpath -d puic/puic

clean::
	rm -f PerlTQt/bin/.exists
	for f in $(SAVERESTORE) ; do [ ! -e $$f.d-r-orig ] || ( rm -rf $$f && mv $$f.d-r-orig $$f ) ; done
	rm -f pre-build-stamp

repair:
	for f in $(SAVERESTORE) ; do rm -f $$f ; cp -p ../orig/*/$$f $$f ; done