qt4: Enable parallel build
[openwrt/svn-archive/archive.git] / Xorg / lib / qt4 / Makefile
1 #
2 # Copyright (C) 2008-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 # TODO:
9 # - test/add X11/xcb support
10 # - handle plugins in a granular way (find out which packages should provide which plugins)
11
12 include $(TOPDIR)/rules.mk
13
14 PKG_NAME:=qt4
15 PKG_VERSION:=4.7.0-beta2
16 PKG_RELEASE:=1
17
18 PKG_SOURCE:=qt-everywhere-opensource-src-$(PKG_VERSION).tar.gz
19 PKG_SOURCE_URL:=ftp://ftp.qt.nokia.com/qt/source
20 PKG_BUILD_DIR=$(BUILD_DIR)/qt-everywhere-opensource-src-$(PKG_VERSION)
21 PKG_BUILD_PARALLEL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 # this should be moved to a more generic place later, as other packages are configured different as well depending on available nptl support
26 ifeq ($(CONFIG_USE_GLIBC),y)
27 NPTL:=y
28 endif
29 ifeq ($(CONFIG_USE_EGLIBC),y)
30 NPTL:=y
31 endif
32 ifeq ($(CONFIG_UCLIBC_VERSION_0_9_32),y)
33 NPTL:=y
34 endif
35
36 define Package/qt4/Default
37 SECTION:=xorg-framework
38 CATEGORY:=Xorg
39 SUBMENU:=framework
40 TITLE:=qt4
41 DEPENDS:=qt4
42 URL:=http://qt.nokia.com/
43 endef
44
45 define Package/qt4
46 $(call Package/qt4/Default)
47 DEPENDS:=@FEATURE_drawing-backend_DirectFB +FEATURE_drawing-backend_DirectFB:directfb +zlib +libstdcpp +libsqlite3 +tslib # require directfb for now, as other systems (libX11, xcb) are untested
48 endef
49
50 define Package/qt4-gui
51 $(call Package/qt4/Default)
52 #DEPENDS+=+FEATURE_drawing-backend_DirectFB:directfb +libpng +libtiff +libjpeg +libfreetype
53 DEPENDS+=+libpng +libtiff +libjpeg +libfreetype +qt4-network
54 TITLE+=(gui)
55 endef
56
57 define Package/qt4-demos
58 $(call Package/qt4/Default)
59 TITLE+=(demos)
60 DEPENDS+=+qt4-gui
61 endef
62
63 define Package/qt4-examples
64 $(call Package/qt4/Default)
65 TITLE+=(examples)
66 DEPENDS+=+qt4-gui
67 endef
68
69 define Package/qt4-network
70 $(call Package/qt4/Default)
71 TITLE+=(network)
72 endef
73
74 define Package/qt4-sqlite
75 $(call Package/qt4/Default)
76 TITLE+=(sqlite)
77 DEPENDS+=+libsqlite3
78 endef
79
80 define Package/qt4-mysql
81 $(call Package/qt4/Default)
82 TITLE+=(mysql)
83 DEPENDS+=+libmysqlclient
84 endef
85
86 #define Package/qt4-multimedia
87 # $(call Package/qt4/Default)
88 # TITLE+=(multimedia)
89 #endef
90
91 #define Package/qt4-audio-backend
92 # $(call Package/qt4/Default)
93 # TITLE+=(audio-backend)
94 #endef
95
96 define Package/qt4-phonon
97 $(call Package/qt4/Default)
98 TITLE+=(phonon)
99 DEPENDS+=+qt4-gui +qt4-xml +qt4-dbus +qt4-network
100 endef
101
102 #define Package/qt4-phonon-backend
103 # $(call Package/qt4/Default)
104 # TITLE+=(phonon-backend)
105 #endef
106
107 define Package/qt4-svg
108 $(call Package/qt4/Default)
109 TITLE+=(svg)
110 #DEPENDS+=+qt4-gui @BROKEN
111 DEPENDS+=+qt4-gui +qt4-network
112 endef
113
114 define Package/qt4-webkit
115 $(call Package/qt4/Default)
116 TITLE+=(webkit)
117 DEPENDS+=@USE_GLIBC||@USE_EGLIBC||@UCLIBC_VERSION_0_9_32 +libsqlite3 +qt4-phonon +qt4-dbus +qt4-xml +qt4-gui +qt4-network # versions of uclibc prior 0.9.32 do not have nptl support
118 endef
119
120 define Package/qt4-script
121 $(call Package/qt4/Default)
122 TITLE+=(script)
123 DEPENDS+=@USE_GLIBC||@USE_EGLIBC||@UCLIBC_VERSION_0_9_32 # versions of uclibc prior 0.9.32 do not have nptl support
124 endef
125
126 define Package/qt4-scripttools
127 $(call Package/qt4/Default)
128 TITLE+=(scripttools)
129 DEPENDS+=+qt4-script +qt4-gui +qt4-network
130 endef
131
132 #define Package/qt4-accessibility
133 # $(call Package/qt4/Default)
134 # TITLE+=(accessibility)
135 #endef
136
137 #define Package/qt4-javascript-jit
138 # $(call Package/qt4/Default)
139 # TITLE+=(javascript-jit)
140 #endef
141
142 #define Package/qt4-cups
143 # $(call Package/qt4/Default)
144 # TITLE+=(cups)
145 #endef
146
147 define Package/qt4-dbus
148 $(call Package/qt4/Default)
149 TITLE+=(dbus)
150 DEPENDS+=+libdbus +qt4-xml
151 endef
152
153 #define Package/qt4-gtkstyle
154 # $(call Package/qt4/Default)
155 # TITLE+=(gtkstyle)
156 #endef
157
158 #define Package/qt4-glib
159 # $(call Package/qt4/Default)
160 # TITLE+=(glib)
161 #endef
162
163 define Package/qt4-qt3support
164 $(call Package/qt4/Default)
165 TITLE+=(qt3support)
166 DEPENDS+=+qt4-gui +qt4-xml
167 endef
168
169 define Package/qt4-declarative
170 $(call Package/qt4/Default)
171 TITLE+=(declarative)
172 DEPENDS+=+qt4-script +qt4-xml +qt4-gui +qt4-network
173 endef
174
175 define Package/qt4-xml
176 $(call Package/qt4/Default)
177 TITLE+=(xml)
178 endef
179
180 ###
181 define Package/qt4-drivers-mouse/Default
182 $(call Package/qt4/Default)
183 TITLE+=mousedrivers
184 endef
185
186 define Package/qt4-drivers-mouse-tpmousedriver
187 $(call Package/qt4-drivers-mouse/Default)
188 TITLE+=tpmousedriver
189 endef
190
191 define Package/qt4-drivers-mouse-pcmousedriver
192 $(call Package/qt4-drivers-mouse/Default)
193 TITLE+=pcmousedriver
194 endef
195
196 define Package/qt4-drivers-mouse-tslibmousedriver
197 $(call Package/qt4-drivers-mouse/Default)
198 TITLE+=tslibmousedriver
199 endef
200
201 ###
202 define Package/qt4-drivers-gfx/Default
203 $(call Package/qt4/Default)
204 TITLE+=gfxdrivers
205 endef
206
207 define Package/qt4-drivers-gfx-directfb
208 $(call Package/qt4-drivers-gfx/Default)
209 TITLE+=directfb
210 endef
211
212 define Package/qt4-drivers-gfx-linuxfb
213 $(call Package/qt4-drivers-gfx/Default)
214 TITLE+=linuxfb
215 endef
216
217 ###
218 define Package/qt4-drivers-kbd/Default
219 $(call Package/qt4/Default)
220 TITLE+=kbddrivers
221 endef
222
223 define Package/qt4-drivers-kbd-linuxinput
224 $(call Package/qt4-drivers-kbd/Default)
225 TITLE+=linuxinput
226 endef
227
228
229 TARGET_INCDIRS+=$(STAGING_DIR)/include $(STAGING_DIR)/usr/include $(TOOLCHAIN_DIR)/include $(TOOLCHAIN_DIR)/usr/include
230 TARGET_LIBDIRS+=$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib $(TOOLCHAIN_DIR)/lib $(TOOLCHAIN_DIR)/usr/lib
231 TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib,-rpath-link=$(PKG_BUILD_DIR)/lib
232 TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/freetype2 -I$(PKG_BUILD_DIR)/include
233
234 define Build/Configure
235 # NOTES:
236 # demos/examples: which demos are going to be built depends on which features are going to to be compiled into qt
237 # svg: always compile in svg-support, as once qt is built without, strange include errors occur when we're going to compile qt4-svg afterwards
238 # linuxfb/directfb: since directfb is not much overhead compared to plain framebuffer, force using directfb
239 # do not use fontconfig as it doesn't work anyway for qte
240 # bindir: bindir is where the host tools (qmake, moc, rcc, uic) will get installed into - they are just used on the host and not goig to be packaged
241 mkdir -p $(PKG_BUILD_DIR)/mkspecs/qws/linux-openwrt-g++
242 cp -a ./files/{qmake.conf,qplatformdefs.h} $(PKG_BUILD_DIR)/mkspecs/qws/linux-openwrt-g++/
243 ( cd $(PKG_BUILD_DIR) ; \
244 TARGET_CC="$(TARGET_CROSS)gcc" \
245 TARGET_CXX="$(TARGET_CROSS)g++" \
246 TARGET_AR="$(TARGET_CROSS)ar cqs" \
247 TARGET_OBJCOPY="$(TARGET_CROSS)objcopy" \
248 TARGET_RANLIB="$(TARGET_CROSS)ranlib" \
249 TARGET_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
250 TARGET_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
251 TARGET_LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
252 TARGET_INCDIRS="$(TARGET_INCDIRS)" \
253 TARGET_LIBDIRS="$(TARGET_LIBDIRS)" \
254 STAGING_DIR="$(STAGING_DIR)" \
255 STAGING_DIR_HOST="$(STAGING_DIR)/../host" \
256 ./configure \
257 -prefix $(CONFIGURE_PREFIX) \
258 -bindir $(CONFIGURE_PREFIX)/bin \
259 -libdir $(CONFIGURE_PREFIX)/lib \
260 -datadir $(CONFIGURE_PREFIX)/share/Qt \
261 -plugindir $(CONFIGURE_PREFIX)/lib/Qt/plugins \
262 -demosdir $(CONFIGURE_PREFIX)/share/Qt/demos \
263 -examplesdir $(CONFIGURE_PREFIX)/share/Qt/examples \
264 -sysconfdir /etc/Qt \
265 -no-rpath \
266 -force-pkg-config \
267 -nomake tools \
268 -make demos \
269 -make examples \
270 -nomake docs \
271 -nomake translations \
272 -xplatform qws/linux-openwrt-g++ \
273 -platform linux-g++ \
274 -embedded \
275 -release \
276 -confirm-license \
277 -opensource \
278 -no-mmx \
279 -no-3dnow \
280 -no-sse \
281 -no-sse2 \
282 -system-zlib \
283 -system-libtiff \
284 -system-libpng \
285 -system-libjpeg \
286 -system-freetype \
287 -system-sqlite \
288 -plugin-sql-sqlite \
289 -plugin-sql-mysql \
290 -no-decoration-styled \
291 -no-decoration-windows \
292 -no-decoration-default \
293 -verbose \
294 -no-multimedia \
295 -no-audio-backend \
296 -phonon \
297 -no-phonon-backend \
298 -svg \
299 $(if $(NPTL),-webkit,-no-webkit) \
300 -no-javascript-jit \
301 $(if $(NPTL),-script,-no-script) \
302 $(if $(NPTL),-scripttools,-no-scripttools) \
303 -no-accessibility \
304 $(if $(NPTL),-declarative,-no-declarative) \
305 -no-openssl \
306 -no-nis \
307 -no-cups \
308 -no-iconv \
309 -dbus \
310 -no-gtkstyle \
311 -no-nas-sound \
312 -no-opengl \
313 -no-openvg \
314 -no-sm \
315 -no-xshape \
316 -no-xsync \
317 -no-xinerama \
318 -no-xcursor \
319 -no-xfixes \
320 -no-xrandr \
321 -no-xrender \
322 -no-mitshm \
323 -no-fontconfig \
324 -no-xinput \
325 -no-xkb \
326 -no-glib \
327 -qt3support \
328 -no-gfx-transformed \
329 -no-gfx-qvfb \
330 -no-gfx-vnc \
331 -no-gfx-multiscreen \
332 -no-gfx-qnx \
333 -plugin-gfx-directfb \
334 -plugin-gfx-linuxfb \
335 -no-mouse-qvfb \
336 -no-mouse-qnx \
337 -qt-mouse-linuxinput \
338 -plugin-mouse-linuxtp \
339 -plugin-mouse-pc \
340 -plugin-mouse-tslib \
341 -no-kbd-qvfb \
342 -no-kbd-qnx \
343 -qt-kbd-tty \
344 -plugin-kbd-linuxinput \
345 )
346 endef
347
348 define Build/Compile
349 # just passing <make install> results in not building 3rdparty/webkit/JavaScriptCore
350 # unfortunately in this particular case, <make> makes further <qmake> calls, therewith
351 # uses the qmake.conf which needs get the cross-compiling vars passed once again
352 TARGET_CC="$(TARGET_CROSS)gcc" \
353 TARGET_CXX="$(TARGET_CROSS)g++" \
354 TARGET_AR="$(TARGET_CROSS)ar cqs" \
355 TARGET_OBJCOPY="$(TARGET_CROSS)objcopy" \
356 TARGET_RANLIB="$(TARGET_CROSS)ranlib" \
357 TARGET_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
358 TARGET_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
359 TARGET_LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
360 TARGET_INCDIRS="$(TARGET_INCDIRS)" \
361 TARGET_LIBDIRS="$(TARGET_LIBDIRS)" \
362 STAGING_DIR="$(STAGING_DIR)" \
363 STAGING_DIR_HOST="$(STAGING_DIR)/../host" \
364 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
365 INSTALL_ROOT=$(PKG_INSTALL_DIR) \
366 $(MAKE) -C $(PKG_BUILD_DIR) install
367 endef
368
369 define Build/InstallDev
370 $(INSTALL_DIR) \
371 $(STAGING_DIR_HOST)/bin
372
373 # host tools (qmake, moc, rcc, uic)
374 $(CP) \
375 $(PKG_INSTALL_DIR)/usr/bin/{qmake,moc,rcc,uic} \
376 $(STAGING_DIR_HOST)/bin/
377
378 $(INSTALL_DIR) \
379 $(1)/mk \
380 $(1)/usr/share/mkspecs \
381 $(1)/usr/lib/pkgconfig \
382 $(1)/usr/lib \
383 $(1)/usr/include \
384 $(1)/usr/lib/Qt/plugins
385
386 $(CP) \
387 ./files/qmake.mk \
388 $(1)/mk/
389
390 $(CP) \
391 $(PKG_INSTALL_DIR)/usr/share/Qt/mkspecs/* \
392 $(1)/usr/share/mkspecs/
393
394 $(INSTALL_DATA) \
395 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
396 $(1)/usr/lib/pkgconfig/
397
398 $(CP) \
399 $(PKG_INSTALL_DIR)/usr/include/* \
400 $(1)/usr/include/
401
402 $(CP) \
403 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
404 $(1)/usr/lib/
405
406 #$(CP) \
407 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/* \
408 # $(1)/usr/lib/Qt/plugins/
409 endef
410
411 define Package/qt4/install
412 $(INSTALL_DIR) \
413 $(1)/usr/lib \
414 $(1)/usr/lib/Qt/plugins
415
416 $(CP) \
417 $(PKG_INSTALL_DIR)/usr/lib/libQtCore.so* \
418 $(1)/usr/lib/
419
420 #$(CP) \
421 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/codecs/*.so \
422 # $(1)/usr/lib/Qt/plugins/codecs/
423 endef
424
425 define Package/qt4-gui/install
426 $(INSTALL_DIR) \
427 $(1)/usr/lib \
428 $(1)/usr/lib/Qt/plugins
429
430 $(CP) \
431 $(PKG_INSTALL_DIR)/usr/lib/libQtGui.so* \
432 $(1)/usr/lib/
433
434 #HACK: Qt4 requires having truetype fonts stored in /usr/lib/fonts - no subdirectories allowed, so use the dejavue set by default
435 ln -s \
436 /usr/share/fonts/ttf-dejavu \
437 $(1)/usr/lib/fonts
438
439 # we use the dejavue font package instead
440 #$(INSTALL_DATA) \
441 # $(PKG_INSTALL_DIR)/usr/lib/fonts/*.ttf \
442 # $(1)/usr/lib/fonts/
443
444 #$(CP) \
445 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/accessible \
446 # $(1)/usr/lib/Qt/plugins/
447
448 #$(CP) \
449 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/imageformats \
450 # $(1)/usr/lib/Qt/plugins/
451
452 #$(CP) \
453 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/inputmethods \
454 # $(1)/usr/lib/Qt/plugins/
455 endef
456
457 define Package/qt4-demos/install
458 $(INSTALL_DIR) \
459 $(1)/usr/share/Qt
460
461 $(CP) \
462 $(PKG_INSTALL_DIR)/usr/share/Qt/demos \
463 $(1)/usr/share/Qt/
464
465 $(FIND) \
466 $(1) \
467 -name "*.cpp" -o \
468 -name "*.h" -o \
469 -name "*.pro" \
470 | $(XARGS) rm
471 endef
472
473 define Package/qt4-examples/install
474 $(INSTALL_DIR) \
475 $(1)/usr/share/Qt
476
477 $(CP) \
478 $(PKG_INSTALL_DIR)/usr/share/Qt/examples \
479 $(1)/usr/share/Qt/
480
481 $(FIND) \
482 $(1) \
483 -name "*.cpp" -o \
484 -name "*.h" -o \
485 -name "*.pro" \
486 | $(XARGS) rm
487 endef
488
489 define Package/qt4-network/install
490 $(INSTALL_DIR) \
491 $(1)/usr/lib
492
493 $(CP) \
494 $(PKG_INSTALL_DIR)/usr/lib/libQtNetwork.so* \
495 $(1)/usr/lib/
496 endef
497
498 define Package/qt4-sqlite/install
499 $(INSTALL_DIR) \
500 $(1)/usr/lib/Qt/plugins/sqldrivers
501
502 $(CP) \
503 $(PKG_INSTALL_DIR)/usr/lib/libQtSql.so* \
504 $(1)/usr/lib/
505
506 $(CP) \
507 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/sqldrivers/libqsqlite.so \
508 $(1)/usr/lib/Qt/plugins/sqldrivers/
509 endef
510
511 define Package/qt4-mysql/install
512 $(INSTALL_DIR) \
513 $(1)/usr/lib/Qt/plugins/sqldrivers
514
515 $(CP) \
516 $(PKG_INSTALL_DIR)/usr/lib/libQtSql.so* \
517 $(1)/usr/lib/
518
519 $(CP) \
520 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/sqldrivers/libqsqlmysql.so \
521 $(1)/usr/lib/Qt/plugins/sqldrivers/
522 endef
523
524 #define Package/qt4-multimedia/install
525 # $(INSTALL_DIR) \
526 # $(1)/usr/bin
527 #
528 # $(CP) \
529 # $(PKG_INSTALL_DIR)/usr/bin/examples/* \
530 # $(1)/usr/bin/
531 #endef
532
533 define Package/qt4-phonon/install
534 $(INSTALL_DIR) \
535 $(1)/usr/lib
536
537 $(CP) \
538 $(PKG_INSTALL_DIR)/usr/lib/libphonon.so* \
539 $(1)/usr/lib/
540 endef
541
542 define Package/qt4-svg/install
543 $(INSTALL_DIR) \
544 $(1)/usr/lib \
545 $(1)/usr/lib/Qt/plugins
546
547 $(CP) \
548 $(PKG_INSTALL_DIR)/usr/lib/libQtSvg.so* \
549 $(1)/usr/lib/
550
551 #$(CP) \
552 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/iconengines \
553 # $(1)/usr/lib/Qt/plugins/
554
555 #$(CP) \
556 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/imageformats \
557 # $(1)/usr/lib/Qt/plugins/
558 endef
559
560 define Package/qt4-webkit/install
561 $(INSTALL_DIR) \
562 $(1)/usr/lib \
563 $(1)/usr/lib/Qt/plugins
564
565 $(CP) \
566 $(PKG_INSTALL_DIR)/usr/lib/libQtWebKit.so* \
567 $(1)/usr/lib/
568
569 #$(CP) \
570 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/designer \
571 # $(1)/usr/lib/Qt/plugins/
572 endef
573
574 define Package/qt4-script/install
575 $(INSTALL_DIR) \
576 $(1)/usr/lib \
577 $(1)/usr/lib/Qt/plugins
578
579 $(CP) \
580 $(PKG_INSTALL_DIR)/usr/lib/libQtScript.so* \
581 $(1)/usr/lib/
582
583 #$(CP) \
584 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/script \
585 # $(1)/usr/lib/Qt/plugins/
586 endef
587
588 define Package/qt4-scripttools/install
589 $(INSTALL_DIR) \
590 $(1)/usr/lib
591
592 $(CP) \
593 $(PKG_INSTALL_DIR)/usr/lib/libQtScriptTools.so* \
594 $(1)/usr/lib/
595 endef
596
597 define Package/qt4-dbus/install
598 $(INSTALL_DIR) \
599 $(1)/usr/lib
600
601 $(CP) \
602 $(PKG_INSTALL_DIR)/usr/lib/libQtDBus.so* \
603 $(1)/usr/lib/
604
605 #$(CP) \
606 # $(PKG_INSTALL_DIR)/usr/bin/qdbus \
607 # $(1)/usr/bin/
608 endef
609
610 define Package/qt4-qt3-support/install
611 $(INSTALL_DIR) \
612 $(1)/usr/lib \
613 $(1)/usr/lib/Qt/plugins
614
615 $(CP) \
616 $(PKG_INSTALL_DIR)/usr/lib/libQt3Support.so* \
617 $(1)/usr/lib/
618
619 #$(CP) \
620 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/accessible \
621 # $(1)/usr/lib/Qt/plugins/
622 endef
623
624 define Package/qt4-declarative/install
625 $(INSTALL_DIR) \
626 $(1)/usr/lib
627
628 $(CP) \
629 $(PKG_INSTALL_DIR)/usr/lib/libQtDeclarative.so* \
630 $(1)/usr/lib/
631 endef
632
633 define Package/qt4-xml/install
634 $(INSTALL_DIR) \
635 $(1)/usr/lib
636
637 $(CP) \
638 $(PKG_INSTALL_DIR)/usr/lib/libQtXml.so* \
639 $(1)/usr/lib/
640 endef
641
642 # plugins
643 # mouse drivers
644 define Package/qt4-drivers-mouse-tpmousedriver/install
645 $(INSTALL_DIR) \
646 $(1)/usr/lib/Qt/plugins/mousedrivers
647
648 $(CP) \
649 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/mousedrivers/libqlinuxtpmousedriver.so \
650 $(1)/usr/lib/Qt/plugins/mousedrivers/
651 endef
652
653 define Package/qt4-drivers-mouse-pcmousedriver/install
654 $(INSTALL_DIR) \
655 $(1)/usr/lib/Qt/plugins/mousedrivers
656
657 $(CP) \
658 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/mousedrivers/libqpcmousedriver.so \
659 $(1)/usr/lib/Qt/plugins/mousedrivers/
660 endef
661
662 define Package/qt4-drivers-mouse-tslibmousedriver/install
663 $(INSTALL_DIR) \
664 $(1)/usr/lib/Qt/plugins/mousedrivers
665
666 $(CP) \
667 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/mousedrivers/libqtslibmousedriver.so \
668 $(1)/usr/lib/Qt/plugins/mousedrivers/
669 endef
670
671 # graphics drivers
672 define Package/qt4-drivers-gfx-directfb/install
673 $(INSTALL_DIR) \
674 $(1)/usr/lib/Qt/plugins/gfxdrivers
675
676 $(CP) \
677 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/gfxdrivers/libqdirectfbscreen.so \
678 $(1)/usr/lib/Qt/plugins/gfxdrivers/
679 endef
680
681 define Package/qt4-drivers-gfx-linuxfb/install
682 $(INSTALL_DIR) \
683 $(1)/usr/lib/Qt/plugins/gfxdrivers
684
685 $(CP) \
686 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/gfxdrivers/libqscreenlinuxfb.so \
687 $(1)/usr/lib/Qt/plugins/gfxdrivers/
688 endef
689
690 # keyboard drivers
691 define Package/qt4-drivers-kbd-linuxinput/install
692 $(INSTALL_DIR) \
693 $(1)/usr/lib/Qt/plugins/kbddrivers
694
695 $(CP) \
696 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/kbddrivers/libqlinuxinputkbddriver.so \
697 $(1)/usr/lib/Qt/plugins/kbddrivers/
698 endef
699
700
701
702
703 $(eval $(call BuildPackage,qt4))
704 $(eval $(call BuildPackage,qt4-gui))
705 $(eval $(call BuildPackage,qt4-demos))
706 $(eval $(call BuildPackage,qt4-examples))
707 $(eval $(call BuildPackage,qt4-network))
708 $(eval $(call BuildPackage,qt4-sqlite))
709 $(eval $(call BuildPackage,qt4-mysql))
710 #$(eval $(call BuildPackage,qt4-multimedia))
711 #$(eval $(call BuildPackage,qt4-audio-backend))
712 $(eval $(call BuildPackage,qt4-phonon))
713 #$(eval $(call BuildPackage,qt4-phonon-backend))
714 $(eval $(call BuildPackage,qt4-svg))
715 $(eval $(call BuildPackage,qt4-webkit))
716 $(eval $(call BuildPackage,qt4-script))
717 $(eval $(call BuildPackage,qt4-scripttools))
718 #$(eval $(call BuildPackage,qt4-accessibility))
719 #$(eval $(call BuildPackage,qt4-javascript-jit))
720 #$(eval $(call BuildPackage,qt4-cups))
721 $(eval $(call BuildPackage,qt4-dbus))
722 #$(eval $(call BuildPackage,qt4-gtkstyle))
723 #$(eval $(call BuildPackage,qt4-glib))
724 $(eval $(call BuildPackage,qt4-qt3support))
725 $(eval $(call BuildPackage,qt4-declarative))
726 $(eval $(call BuildPackage,qt4-xml))
727
728 $(eval $(call BuildPackage,qt4-drivers-mouse-tpmousedriver))
729 $(eval $(call BuildPackage,qt4-drivers-mouse-pcmousedriver))
730 $(eval $(call BuildPackage,qt4-drivers-mouse-tslibmousedriver))
731
732 $(eval $(call BuildPackage,qt4-drivers-gfx-directfb))
733 $(eval $(call BuildPackage,qt4-drivers-gfx-linuxfb))
734
735 $(eval $(call BuildPackage,qt4-drivers-kbd-linuxinput))