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