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