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