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