blob: fb10061d1d87e4c6acc38574ec1b970275d54456 (
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
|
#!/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 := confclean distclean
DEB_DH_MAKESHLIBS_ARGS_ALL := -V
DEB_INSTALL_CHANGELOGS_ALL := changes-4.1.3
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-gif \
-qt-sql-psql \
-qt-sql-mysql \
-qt-sql-sqlite \
-qt-sql-sqlite2 \
-I/usr/include/mysql \
-I/usr/include/freetype2 \
-I`pg_config --includedir` \
-lfontconfig \
-cups
clean::
# Extra stuff missed by confclean/distclean
rm -f Makefile \
bin/qmake \
mkspecs/default \
src/corelib/global/arch \
examples/tools/plugandpaint/plugins/*.so \
config.status \
demos/shared/libdemo_shared.prl \
mkspecs/qconfig.pri \
src/corelib/global/qconfig.*
rm -rf lib/ plugins/
find include/ -type l -print0 | xargs -0r rm -f
find . -mindepth 2 -name Makefile -print0 \
-o -name Makefile.Debug -print0 \
-o -name Makefile.Release -print0 \
| xargs -0r rm -f
# 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
# Automatically install lintian overrides, stolen from debian-qt-kde.mk
$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
if test -e debian/$(cdbs_curpkg).lintian; then \
install -p -D -m644 debian/$(cdbs_curpkg).lintian \
debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg); \
fi
# Remove debugging library junk from libqt4-dev, it goes in
#libqt4-debug-dev instead.
binary-post-install/libqt4-dev::
rm -f debian/$(cdbs_curpkg)/usr/lib/*_debug.* \
debian/$(cdbs_curpkg)/usr/lib/pkgconfig/*_debug.*
|