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