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