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