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