Magellan Linux

Contents of /trunk/extras/qt4/qt4-4.8.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12155 - (show annotations) (download)
Wed May 9 08:30:30 2012 UTC (12 years, 1 month ago) by niro
File size: 17428 byte(s)
-added patch to fix ftbfs with >=glib-2.3.1
1 # $Id$
2
3 PNAME="qt4"
4 PVER="4.8.1"
5 PBUILD="r1"
6
7 PCAT="x11-libs"
8
9 DESCRIPTION="Qt: Cross-Platform Rich Client Development Framework."
10 HOMEPAGE="http://trolltech.com/products/qt/"
11
12 # build phonon or not (yes/no), disabled atm
13 QT4_PHONON="no"
14 SPECIAL_VARS="QT4_PHONON"
15
16 # use kde-qt patches or not (yes/no), disabled atm
17 KDE_QT_PATCHES="no"
18 # snapshot id of the patches
19 KDE_QT_SNAPSHOT_ID="8fa76375a2f030ecf8aa23c917f51f04333a1b2c"
20
21 # load qt4 here to overide all depends
22 # include kde4 to get the right KDEDIR for phonon!
23 sminclude mtools qt4 kde4
24
25 DEPEND_CORE=">= dev-libs/openssl-1.0.0
26 >= app-crypt/ca-certificates-2011
27 >= dev-libs/glib2-2.28
28 >= sys-libs/zlib-1.2.5
29 >= sys-libs/libstdc++-4.6"
30
31 DEPEND_GUI="${DEPEND_CORE}
32 >= x11-libs/libICE-1
33 >= x11-libs/libSM-1.1
34 >= x11-libs/libXau-1
35 >= x11-libs/libxcb-1.7
36 >= x11-libs/libXdmcp-1
37 >= x11-libs/libX11-1.4
38 >= x11-libs/libXcursor-1.1
39 >= x11-libs/libXext-1.3
40 >= x11-libs/libXfont-1.4
41 >= x11-libs/libXfixes-5
42 >= x11-libs/libXft-2.2
43 >= x11-libs/libXi-1.4
44 >= x11-libs/libXinerama-1
45 >= x11-libs/libXrandr-1.3
46 >= x11-libs/libXrender-0.9
47 >= media-libs/libjpeg-8
48 >= media-libs/giflib-4.1
49 >= media-libs/libmng-1.0.10
50 >= media-libs/libpng-1.5
51 >= media-libs/libtiff-4
52 >= media-libs/freetype-2.4
53 >= media-libs/fontconfig-2.8
54 >= net-print/libcups-1.5
55 >= media-libs/nas-1.9"
56
57 DEPEND_SQL=">= dev-db/sqlite-3.7
58 >= dev-db/mysql-libs-5.5
59 >= dev-db/unixodbc-2.3"
60
61 DEPEND_DBUS=" >= sys-apps/dbus-1.5"
62
63 DEPEND_OPENGL=">= virtual/opengl"
64
65 SDEPEND="${DEPEND_CORE}
66 ${DEPEND_GUI}
67 ${DEPEND_SQL}
68 ${DEPEND_DBUS}
69 ${DEPEND_OPENGL}
70 >= sys-dev/bison-2.5
71 >= x11-proto/xineramaproto-1.1
72 >= x11-proto/xextproto-7
73 >= x11-proto/inputproto-2
74 >= dev-util/pkgconfig-0.25
75 >= dev-libs/expat-2
76 >= media-libs/lcms-1.19"
77
78 if [[ ${QT4_PHONON} = yes ]]
79 then
80 DEPEND_PHONON="${DEPEND_DBUS}
81 >= media-libs/gstreamer-0.10.31
82 >= media-libs/gst-plugins-base-0.10.25
83 >= media-libs/gst-plugins-good-0.10.16"
84
85 SDEPEND+="
86 ${DEPEND_PHONON}"
87 fi
88
89 SRCFILE="${PNAME/4/}-everywhere-opensource-src-${PVER}.tar.gz"
90 SRCDIR="${BUILDDIR}/${PNAME/4/}-everywhere-opensource-src-${PVER}"
91
92 SPLIT_PACKAGES="qt4-core
93 qt4-dbus
94 qt4-script
95 qt4-gui
96 qt4-svg
97 qt4-sql
98 qt4-xmlpatterns
99 qt4-opengl
100 qt4-qt3support
101 qt4-webkit
102 qt4-test
103 qt4-multimedia
104 qt4-assistant
105 qt4-declarative"
106
107 if [[ ${QT4_PHONON} = yes ]]
108 then
109 SPLIT_PACKAGES+="qt4-phonon"
110 fi
111
112 SRC_URI=(
113 ftp://ftp.qt.nokia.com/qt/source/${SRCFILE}
114 mirror://${PNAME}/${SRCFILE}
115 mirror://${PNAME}/qt-4.5.1-no-hardcoded_fonts.patch
116 mirror://${PNAME}/qt-${PVER}-fix-buffer-overflow.patch
117 mirror://${PNAME}/qt-${PVER}-fix-cursortox-crash.patch
118 mirror://${PNAME}/qt-${PVER}-improve-cups-support.patch
119 mirror://${PNAME}/qt-${PVER}-webkit-no-werror.patch
120 mirror://${PNAME}/qt-${PVER}-qtwebkit-glib231.patch
121 )
122
123 # add phonon patches
124 if [[ ${QT4_PHONON} = yes ]]
125 then
126 SRC_URI+=( mirror://${PNAME}/qt-4.5.3-phonon-2.patch )
127 fi
128
129 # use kde-qt?
130 if [[ ${KDE_QT_PATCHES} = yes ]]
131 then
132 SRC_URI+=( mirror://${PNAME}/qt-${PVER}-kde-qt-${KDE_QT_SNAPSHOT_ID}.patch )
133 fi
134
135 UP2DATE="updatecmd ftp://ftp.qt.nokia.com/qt/source/ | grep -v -- -tp | grep -v -- -beta | grep qt-everywhere-opensource-src | lasttarball gz"
136
137 #
138 ## global vars ##
139 #
140 # install prefix
141 # get this one from qt4.sminc, QTDIR gets overridden later on
142 export QT_PREFIX="${QTDIR}"
143 # source location
144 export QTDIR="${SRCDIR}"
145 export LD_LIBRARY_PATH="${QTDIR}/lib"
146 export PATH="${QTDIR}/bin:${PATH}"
147 export PLATFORM="linux-g++"
148 [[ ${ARCH} = x86_64 ]] && export PLATFORM="linux-g++-64"
149 # etc dir
150 export QT_SYSCONFDIR="/etc/${PNAME}"
151 # envfile
152 export QT_ENVFILE="/etc/env.d/45${PNAME}"
153 #
154 # do not export QMAKE from qt4.sminc
155 unset QMAKE
156 # do not run postinstall/remove from kde4 include
157 unset -f postinstall
158 unset -f postremove
159
160 split_info_qt4-core()
161 {
162 DESCRIPTION="Qt4: Cross-Platform Rich Client Development Framework."
163 DEPEND="${DEPEND_CORE}"
164 }
165
166 split_info_qt4-gui()
167 {
168 DESCRIPTION="The GUI module for the Qt4 toolkit."
169 DEPEND="== x11-libs/qt4-core-${PVER}
170 == x11-libs/qt4-script-${PVER}
171 == x11-libs/qt4-dbus-${PVER}
172 ${DEPEND_GUI}"
173 }
174
175 split_info_qt4-svg()
176 {
177 DESCRIPTION="The SVG module for the Qt4 toolkit."
178 DEPEND="== x11-libs/qt4-gui-${PVER}"
179 }
180
181 split_info_qt4-sql()
182 {
183 DESCRIPTION="The SQL module for the Qt4 toolkit."
184 DEPEND="== x11-libs/qt4-core-${PVER}
185 ${DEPEND_SQL}"
186 }
187
188 split_info_qt4-script()
189 {
190 DESCRIPTION="The ECMAScript module for the Qt4 toolkit."
191 DEPEND="== x11-libs/qt4-core-${PVER}"
192 }
193
194 split_info_qt4-xmlpatterns()
195 {
196 DESCRIPTION="The patternist module for the Qt toolkit."
197 DEPEND="== x11-libs/qt4-core-${PVER}"
198 }
199
200 split_info_qt4-dbus()
201 {
202 DESCRIPTION="The DBus module for the Qt4 toolkit."
203 DEPEND="== x11-libs/qt4-core-${PVER}
204 ${DEPEND_DBUS}"
205 }
206
207 split_info_qt4-opengl()
208 {
209 DESCRIPTION="The OpenGL module for the Qt4 toolkit."
210 DEPEND="== x11-libs/qt4-core-${PVER}
211 == x11-libs/qt4-gui-${PVER}
212 ${DEPEND_OPENGL}"
213 }
214
215 if [[ ${QT4_PHONON} = yes ]]
216 then
217 split_info_qt4-phonon()
218 {
219 DESCRIPTION="The Phonon module for the Qt4 toolkit."
220 DEPEND="== x11-libs/qt4-gui-${PVER}
221 ${DEPEND_PHONON}"
222
223 PROVIDE="virtual/phonon"
224 }
225
226 preinstall_qt4-phonon()
227 {
228 if [[ -n $(magequery -n phonon) ]]
229 then
230 die "please uninstall kde-base/phonon first!"
231 fi
232 }
233
234 postinstall_qt4-phonon()
235 {
236 # breaks compilation if the old phonon symlink from kde-phonon exist
237 if [[ -L ${MROOT}/opt/kde4/lib/libphonon.so ]]
238 then
239 rm ${MROOT}/opt/kde4/lib/libphonon.so
240 fi
241 }
242 fi
243
244 split_info_qt4-qt3support()
245 {
246 DESCRIPTION="The Qt3 support module for the Qt toolkit."
247 DEPEND="== x11-libs/qt4-core-${PVER}
248 == x11-libs/qt4-gui-${PVER}
249 == x11-libs/qt4-sql-${PVER}"
250 if [[ ${QT4_PHONON} = yes ]]
251 then
252 DEPEND+="
253 == x11-libs/qt4-phonon-${PVER}"
254 fi
255 }
256
257 split_info_qt4-webkit()
258 {
259 DESCRIPTION="The Webkit module for the Qt4 toolkit."
260 DEPEND="== x11-libs/qt4-core-${PVER}
261 == x11-libs/qt4-dbus-${PVER}
262 == x11-libs/qt4-gui-${PVER}"
263 if [[ ${QT4_PHONON} = yes ]]
264 then
265 DEPEND+="
266 == x11-libs/qt4-phonon-${PVER}"
267 fi
268 }
269
270 split_info_qt4-test()
271 {
272 DESCRIPTION="The testing framework module for the Qt4 toolkit."
273 DEPEND="== x11-libs/qt4-core-${PVER}"
274 }
275
276 split_info_qt4-multimedia()
277 {
278 DESCRIPTION="The Multimedia module for the Qt4 toolkit."
279 DEPEND="== x11-libs/qt4-core-${PVER}
280 == x11-libs/qt4-gui-${PVER}"
281 }
282
283 split_info_qt4-assistant()
284 {
285 DESCRIPTION="The assistant help module for the Qt4 toolkit."
286 DEPEND="== x11-libs/qt4-gui-${PVER}
287 == x11-libs/qt4-sql-${PVER}
288 == x11-libs/qt4-webkit-${PVER}"
289 }
290
291 split_info_qt4-declarative()
292 {
293 DESCRIPTION="The Declarative module for the Qt4 toolkit."
294 DEPEND="== x11-libs/qt4-core-${PVER}
295 == x11-libs/qt4-gui-${PVER}
296 == x11-libs/qt4-multimedia-${PVER}
297 == x11-libs/qt4-opengl-${PVER}
298 == x11-libs/qt4-script-${PVER}
299 == x11-libs/qt4-sql-${PVER}
300 == x11-libs/qt4-svg-${PVER}
301 == x11-libs/qt4-webkit-${PVER}
302 == x11-libs/qt4-xmlpatterns-${PVER}"
303 }
304
305 src_prepare()
306 {
307 munpack ${SRCFILE} || die
308 cd ${SRCDIR}
309
310 # no hardcoded font-aliases
311 # see: https://cvs.fedoraproject.org/viewvc/rpms/qt4/F-8/qt-x11-opensource-src-4.3.4-no-hardcoded-font-aliases.patch?view=markup
312 mpatch qt-4.5.1-no-hardcoded_fonts.patch || die
313
314 # fix a bufer overflow
315 mpatch qt-${PVER}-fix-buffer-overflow.patch || die
316
317 # fix a crash
318 mpatch qt-${PVER}-fix-cursortox-crash.patch || die
319
320 # improve cups support
321 mpatch qt-${PVER}-improve-cups-support.patch || die
322
323 # webkit - disable -Werror to fix a ftbfs
324 mpatch qt-${PVER}-webkit-no-werror.patch || die
325
326 # QtWebKit wtf library: GMutex is a union rather than a struct in GLib >= 2.31
327 # fixes FTBFS: https://bugs.webkit.org/show_bug.cgi?id=69840
328 mpatch qt-${PVER}-qtwebkit-glib231.patch || die
329
330 if [[ ${QT4_PHONON} = yes ]]
331 then
332 # install service files needed by kde
333 mpatch qt-4.5.3-phonon-2.patch || die
334 # fix variable kdelocation from the patch
335 sed -i "s:@@KDEDIR@@:${KDEDIR}:g" ${SRCDIR}/src/plugins/phonon/gstreamer/gstreamer.pro || die
336 fi
337
338 if [[ ${KDE_QT_PATCHES} = yes ]]
339 then
340 # kdeqt patches from http://gitorious.org/+kde-developers/qt/kde-qt
341 mpatch qt-${PVER}-kde-qt-${KDE_QT_SNAPSHOT_ID}.patch || die
342 fi
343
344 # set our cflags and fix up our header and lib locations
345 cd ${SRCDIR}/mkspecs/${PLATFORM}
346 sed -i -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \
347 -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \
348 -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \
349 -e 's:$(QTDIR)/include:&/qt:' \
350 -e "s:\$(QTDIR)/lib:\$(QTDIR)/$(mlibdir):" \
351 qmake.conf \
352 || die
353
354 # fix libdir to lib64 on 64bit arches
355 sed -i "s:/lib$:/$(mlibdir):" qmake.conf || die
356
357 # disable rpath
358 sed -i "s:QMAKE_RPATH.*=.*:QMAKE_RPATH=:" qmake.conf || die
359
360 # get rid of /usr/X11R6
361 sed -i "s:X11R6/::" qmake.conf || die
362
363 # same goes for the g++ definitions
364 # they where moved to an extra file with qt4
365 cd ${SRCDIR}/mkspecs/common
366 sed -i -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CPPFLAGS} ${CFLAGS} ${ASFLAGS}:" \
367 -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CPPFLAGS} ${CXXFLAGS} ${ASFLAGS}:" \
368 -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \
369 -e 's:$(QTDIR)/include:&/qt:' \
370 -e "s:\$(QTDIR)/lib:\$(QTDIR)/$(mlibdir):" \
371 g++.conf \
372 || die
373
374 # fix libdir to lib64 on 64bit arches
375 sed -i "s:/lib$:/$(mlibdir):" g++.conf || die
376
377 # disable rpath
378 sed -i "s:QMAKE_RPATH.*=.*:QMAKE_RPATH=:" g++.conf || die
379
380 # get rid of /usr/X11R6
381 sed -i "s:X11R6/::" linux.conf || die
382 }
383
384 src_compile()
385 {
386 cd ${SRCDIR}
387 local myconf
388
389 # add missing lib64 search path on 64bit arches
390 [[ $(mlibdir) != lib ]] && myconf="-L/usr/$(mlibdir)"
391
392 # enable this only for binutils >=2.18
393 [[ $(ld -v | sed 's/.*\ \([0-9].[0-9].*\)/\1/') > 2.17 ]] && myconf+=" -reduce-relocations"
394
395 # enable static if requested
396 mqueryfeature "static" && myconf+=" -static"
397 # always build shared libs
398 myconf+=" -shared"
399
400 # disable openvg atm
401 myconf+=" -no-openvg"
402
403 if [[ ${QT4_PHONON} = yes ]]
404 then
405 myconf+=" -phonon"
406 myconf+=" -phonon-backend"
407 else
408 myconf+=" -no-phonon"
409 myconf+=" -no-phonon-backend"
410 fi
411
412 ./configure \
413 -prefix ${QT_PREFIX} \
414 -sysconfdir ${QT_SYSCONFDIR} \
415 -datadir ${QT_PREFIX}/share/qt \
416 -docdir ${QT_PREFIX}/share/doc/qt-${PVER} \
417 -headerdir ${QT_PREFIX}/include/qt \
418 -plugindir ${QT_PREFIX}/$(mlibdir)/qt/plugins \
419 -libdir ${QT_PREFIX}/$(mlibdir) \
420 -datadir ${QT_PREFIX}/share/qt \
421 -translationdir ${QT_PREFIX}/share/qt/translations \
422 -confirm-license \
423 -opensource \
424 -platform ${PLATFORM} \
425 -xplatform ${PLATFORM} \
426 -verbose \
427 -silent \
428 -fast \
429 -release \
430 -no-separate-debug-info \
431 -optimized-qmake \
432 -system-libjpeg \
433 -system-libmng \
434 -system-libpng \
435 -system-libtiff \
436 -system-zlib \
437 -system-nas-sound \
438 -system-sqlite \
439 -nomake examples \
440 -nomake demos \
441 -nomake docs \
442 -no-rpath \
443 -no-pch \
444 -qt3support \
445 -stl \
446 -lpthread \
447 -largefile \
448 -sm \
449 -xrender \
450 -opengl \
451 -cups \
452 -dbus-linked \
453 -openssl \
454 -webkit \
455 -svg \
456 -xmlpatterns \
457 -declarative \
458 -plugin-sql-sqlite \
459 -plugin-sql-mysql \
460 -plugin-sql-odbc \
461 -I/usr/include/mysql \
462 -L/usr/$(mlibdir)/mysql \
463 -graphicssystem raster \
464 ${myconf} \
465 || die
466
467 mmake all || die
468 }
469
470 src_install_qt4-core()
471 {
472 cd ${SRCDIR}
473
474 local i
475 for i in src/tools/bootstrap \
476 src/tools/moc \
477 src/tools/rcc \
478 src/tools/uic \
479 src/corelib \
480 src/xml \
481 src/network \
482 src/plugins/codecs \
483 tools/linguist/lrelease \
484 tools/linguist/lupdate \
485 tools/linguist/lconvert
486 do
487 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
488 done
489
490 # install missing qmake
491 mmake INSTALL_ROOT=${BINDIR} install_qmake || die
492 mlink qmake ${QT_PREFIX}/bin/qmake${PVER:0:1} || die
493
494 # install missing findtr
495 minstallexec ${SRCDIR}/bin/findtr ${QT_PREFIX}/bin || die
496
497 # install all spec files
498 mmake INSTALL_ROOT=${BINDIR} install_mkspecs || die
499
500 # remove unneeded specs
501 echo "removing unneeded specs ..."
502 install -d ${BUILDDIR}/keep
503 mv ${BINDIR}/${QT_PREFIX}/share/qt/mkspecs/default ${BUILDDIR}/keep || die
504 mv ${BINDIR}/${QT_PREFIX}/share/qt/mkspecs/common ${BUILDDIR}/keep || die
505 mv ${BINDIR}/${QT_PREFIX}/share/qt/mkspecs/features ${BUILDDIR}/keep || die
506 mv ${BINDIR}/${QT_PREFIX}/share/qt/mkspecs/qws ${BUILDDIR}/keep || die
507 mv ${BINDIR}/${QT_PREFIX}/share/qt/mkspecs/${PLATFORM} ${BUILDDIR}/keep || die
508 if [[ ${ARCH} = x86_64 ]]
509 then
510 mv ${BINDIR}/${QT_PREFIX}/share/qt/mkspecs/linux-g++ ${BUILDDIR}/keep || die
511 fi
512 mv ${BINDIR}/${QT_PREFIX}/share/qt/mkspecs/qconfig.pri ${BUILDDIR}/keep || die
513 rm -rf ${BINDIR}/${QT_PREFIX}/share/qt/mkspecs/* || die
514 mv ${BUILDDIR}/keep/* ${BINDIR}/${QT_PREFIX}/share/qt/mkspecs || die
515
516 # fix qmake cache file
517 minstalldir ${QT_PREFIX}/share/qt || die
518 sed "s:${SRCDIR}:${QT_PREFIX}:g" ${SRCDIR}/.qmake.cache > ${BINDIR}/${QT_PREFIX}/share/qt/.qmake.cache || die
519
520 # # some needed symlinks
521 # mlink libqt-mt.so ${QT_PREFIX}/$(mlibdir)/libqt.so || die
522
523 # generate translations and install them
524 # use freshly built libraries
525 LD_LIBRARY_PATH=${SRCDIR}/lib ${SRCDIR}/bin/lrelease translations/*.ts || die
526 minstalldir ${QT_PREFIX}/share/qt/translations || die
527 minstallfile translations/\*.qm ${QT_PREFIX}/share/qt/translations || die
528
529 # keep the qt4 sysdir
530 mkeepdir ${QT_SYSCONFDIR} || die
531
532 # environ vars
533 minstalldir /etc/env.d || die
534 MCONFIG=${QT_ENVFILE}
535 mclearconfig || die
536 maddconfig "QMAKESPEC=\"${PLATFORM}\"" || die
537 maddconfig "QTDIR=\"${QT_PREFIX}\"" || die
538
539 if [[ ${QT_PREFIX} != /usr ]]
540 then
541 # overwrite the env file here, there may be one in usr
542 # and we want this as system-wide default
543 mclearconfig || die
544 maddconfig "PATH=\"${QT_PREFIX}/bin\"" || die
545 maddconfig "ROOTPATH=\"${QT_PREFIX}/bin\"" || die
546 maddconfig "LDPATH=\"${QT_PREFIX}/$(mlibdir)\"" || die
547 maddconfig "MANPATH=\"${QT_PREFIX}/share/man\"" || die
548 maddconfig "PKG_CONFIG_PATH=\"${QT_PREFIX}/$(mlibdir)/pkgconfig\"" || die
549 fi
550
551 minstalldocs GPL* changes-${PVER} LICENSE* OPENSOURCE* README* || die
552 }
553
554 src_install_qt4-gui()
555 {
556 cd ${SRCDIR}
557
558 local i
559 for i in src/gui \
560 src/scripttools \
561 tools/designer \
562 tools/linguist/linguist \
563 tools/qdbus/qdbusviewer \
564 src/plugins/imageformats/gif \
565 src/plugins/imageformats/ico \
566 src/plugins/imageformats/jpeg \
567 src/plugins/imageformats/mng \
568 src/plugins/imageformats/tiff \
569 src/plugins/inputmethods \
570 src/plugins/accessible/widgets \
571 src/plugins/graphicssystems/trace
572 do
573 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
574 done
575 }
576
577 src_install_qt4-svg()
578 {
579 cd ${SRCDIR}
580
581 local i
582 for i in src/svg \
583 src/plugins/imageformats/svg \
584 src/plugins/iconengines/svgiconengine
585 do
586 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
587 done
588 }
589
590 src_install_qt4-sql()
591 {
592 cd ${SRCDIR}
593
594 local i
595 for i in src/sql src/plugins/sqldrivers
596 do
597 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
598 done
599 }
600
601 src_install_qt4-script()
602 {
603 cd ${SRCDIR}
604 mmake -C src/script INSTALL_ROOT=${BINDIR} install || die
605 }
606
607 src_install_qt4-xmlpatterns()
608 {
609 cd ${SRCDIR}
610
611 local i
612 for i in src/xmlpatterns tools/xmlpatterns
613 do
614 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
615 done
616 }
617
618 src_install_qt4-dbus()
619 {
620 cd ${SRCDIR}
621
622 local i
623 for i in src/dbus \
624 tools/qdbus/qdbus \
625 tools/qdbus/qdbusxml2cpp \
626 tools/qdbus/qdbuscpp2xml
627 do
628 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
629 done
630 }
631
632 src_install_qt4-opengl()
633 {
634 cd ${SRCDIR}
635
636 local i
637 for i in src/opengl src/plugins/graphicssystems/opengl
638 do
639 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
640 done
641 }
642
643 if [[ ${QT4_PHONON} = yes ]]
644 then
645 src_install_qt4-phonon()
646 {
647 cd ${SRCDIR}
648
649 local i
650 for i in src/phonon src/plugins/phonon \
651 tools/designer/src/plugins/phononwidgets
652 do
653 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
654 done
655
656 # needed symlink; kde-4.4 includes from Phonon/*
657 if [[ ! -e ${BINDIR}/${QT_PREFIX}/include/qt/Phonon ]]
658 then
659 mlink phonon ${QT_PREFIX}/include/qt/Phonon || die
660 fi
661 }
662 fi
663
664 src_install_qt4-qt3support()
665 {
666 cd ${SRCDIR}
667
668 local i
669 for i in src/qt3support \
670 src/tools/uic3 \
671 tools/designer/src/plugins/widgets \
672 tools/qtconfig \
673 tools/porting
674 do
675 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
676 done
677 }
678
679 src_install_qt4-webkit()
680 {
681 cd ${SRCDIR}
682
683 local i
684 for i in src/3rdparty/webkit/Source/JavaScriptCore \
685 src/3rdparty/webkit/Source/WebCore \
686 src/3rdparty/webkit/Source/WebKit/qt \
687 tools/designer/src/plugins/qwebview
688 do
689 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
690 done
691 }
692
693 src_install_qt4-test()
694 {
695 cd ${SRCDIR}
696 mmake -C src/testlib INSTALL_ROOT=${BINDIR} install || die
697 }
698
699 src_install_qt4-multimedia()
700 {
701 cd ${SRCDIR}
702 mmake -C src/multimedia INSTALL_ROOT=${BINDIR} install || die
703 }
704
705 src_install_qt4-assistant()
706 {
707 cd ${SRCDIR}
708
709 local i
710 for i in tools/assistant \
711 tools/pixeltool \
712 tools/qdoc3
713 do
714 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
715 done
716
717 # no-make atm!
718 # # install missing qch docs
719 # minstall ${QT_PREFIX}/share/doc/qt-${PVER}/qch || die
720 # minstallfile doc/qch/\*.qch ${QT_PREFIX}/share/doc/qt-${PVER}/qch || die
721 #
722 # # install missing qdoc3
723 # minstalldir ${QT_PREFIX}/bin || die
724 # minstallexec tools/qdoc3/qdoc3 ${QT_PREFIX}/bin || die
725 }
726
727 src_install_qt4-declarative()
728 {
729 cd ${SRCDIR}
730
731 local i
732 for i in src/declarative \
733 src/imports \
734 tools/designer/src/plugins/qdeclarativeview \
735 tools/qml \
736 tools/qmlplugindump \
737 src/3rdparty/webkit/Source/WebKit/qt/declarative
738 do
739 mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
740 done
741 }