blob: 0067b3ca81c519e564aa43a4b70b510e88bdeaf2 (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
#!/usr/bin/make -f
export QTDIR := $(shell pwd)
export PATH := $(QTDIR)/bin:$(PATH)
export LD_LIBRARY_PATH := $(QTDIR)/lib:$(LD_LIBRARY_PATH)
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/dpatch.mk
DEB_MAKE_INVOKE := $(MAKE)
DEB_MAKE_BUILD_TARGET := sub-src sub-tools
DEB_MAKE_INSTALL_TARGET := INSTALL_ROOT=$(DEB_DESTDIR) install
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
DEB_MAKE_CLEAN_TARGET := distclean
DEB_DH_MAKESHLIBS_ARGS_ALL := -V
DEB_INSTALL_CHANGELOGS_ALL := changes-4.0.1
common-configure-arch::
./configure -confirm-license \
-prefix "/usr" \
-docdir "/usr/share/qt4/doc" \
-headerdir "/usr/include/qt4" \
-datadir "/usr/share/qt4" \
-plugindir "/usr/lib/qt4/plugins" \
-translationdir "/usr/share/qt4/translations" \
-sysconfdir "/etc/qt4" \
-platform linux-g++ \
-debug-and-release \
-fast \
-no-rpath \
-system-zlib \
-system-libpng \
-system-libjpeg \
-system-nas-sound \
-qt-sql-psql \
-qt-sql-mysql \
-I/usr/include/mysql \
-I/usr/include/freetype2 \
-I`pg_config --includedir` \
-lfontconfig \
-cups
clean::
-$(MAKE) -k -C plugins/src distclean
-$(MAKE) -k -C qmake distclean
-$(MAKE) -k -C tools distclean
-$(MAKE) -k distclean
-find . -mindepth 2 -name Makefile -exec rm -f '{}' ';'
# Force these since the build system makes them read-only
rm -f src/corelib/global/qconfig.cpp src/corelib/global/qconfig.h
# Don't force these, use the '-' thing instead so that failed deletions
# are displayed so that these may be cleaned out as upstream improves
# the clean target.
-rm .qmake.cache \
config.status \
bin/qmake \
src/corelib/global/qconfig.h.qmake \
src/corelib/global/arch \
tools/designer/src/plugins/tools/view3d/Makefile.Debug \
tools/designer/src/plugins/tools/view3d/Makefile.Release \
mkspecs/default \
mkspecs/qconfig.pri \
config.tests/unix/ptrsize/ptrsizetest.o \
config.tests/unix/ptrsize/ptrsizetest \
config.tests/unix/ipv6/ipv6test.o \
config.tests/unix/ipv6/ipv6test \
config.tests/unix/endian/endiantest.o \
config.tests/unix/endian/endiantest \
config.tests/unix/largefile/largefiletest.o \
config.tests/unix/largefile/largefiletest \
config.tests/unix/stl/stltest.o \
config.tests/unix/stl/stltest \
config.tests/unix/getaddrinfo/getaddrinfotest.o \
config.tests/unix/getaddrinfo/getaddrinfotest \
lib/* \
include/Qt/arch \
include/QtCore/arch \
include/Qt/qconfig.h \
include/QtCore/qconfig.h \
plugins/designer/*.prl \
plugins/designer/lib*.so* \
plugins/accessible/lib*.so* \
plugins/codecs/lib*.so* \
plugins/imageformats/lib*.so* \
examples/tools/plugandpaint/plugins/*.so \
demos/shared/libdemo_shared.prl
# Hack to fix dpatch-edit-patch
unpatch: deapply-dpatches
BINDIR := $(DEB_DESTDIR)/usr/bin
common-install-arch::
# Tack on -qt4 to the binaries that use the alternatives system
for f in qmake lupdate lrelease uic moc assistant designer linguist qtconfig; do \
mv "$(BINDIR)/$$f" "$(BINDIR)/$$f-qt4"; \
done
binary-install/qt4-doc::
# Tar up the examples to include them in qt4-doc
-$(MAKE) -k -C examples distclean
tar -cv examples/ | \
gzip -9 > debian/qt4-doc/usr/share/doc/qt4-doc/qt4-examples.tar.gz
|