move qt4 package from Xorg to Video feed
[feed/video.git] / frameworks / 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/Default
51 SECTION:=video-frameworks
52 CATEGORY:=Video
53 SUBMENU:=Frameworks and Toolkits
54 TITLE:=qt4
55 DEPENDS:=qt4
56 URL:=http://qt.nokia.com/
57 MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
58 endef
59
60 define Package/qt4
61 $(call Package/qt4/Default)
62 DEPENDS:=+zlib +librt +libstdcpp
63 MENU:=1
64 endef
65
66 define Package/qt4-gui
67 $(call Package/qt4/Default)
68 DEFAULT:=
69 DEPENDS+=+PACKAGE_qt4-gui:libpng +PACKAGE_qt4-gui:libtiff +PACKAGE_qt4-gui:libjpeg +PACKAGE_qt4-gui: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 +qt4-sqlite +qt4-xml
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+=+PACKAGE_qt4-sqlite:libsqlite3
96 endef
97
98 define Package/qt4-mysql
99 $(call Package/qt4/Default)
100 TITLE+=(mysql)
101 DEPENDS+=+PACKAGE_qt4-mysql:libmysqlclient
102 endef
103
104 define Package/qt4-pgsql
105 $(call Package/qt4/Default)
106 TITLE+=(pgsql)
107 DEPENDS+=+PACKAGE_qt4-pgsql:libpq
108 endef
109
110 define Package/qt4-openssl
111 $(call Package/qt4/Default)
112 TITLE+=(openssl)
113 DEPENDS+=+PACKAGE_qt4-openssl: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+=+PACKAGE_qt4-webkit: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+=+PACKAGE_qt4-dbus: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+=+PACKAGE_qt4-tslibmousedriver: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 +qt4-drivers-gfx-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 define Build/Configure
274 # NOTES:
275 # demos/examples: which demos are going to be built depends on which features are going to to be compiled into qt
276 # linuxfb/directfb: since directfb is not much overhead compared to plain framebuffer, force using directfb
277 # do not use fontconfig as it doesn't work anyway for qte
278 # 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
279 mkdir -p $(PKG_BUILD_DIR)/mkspecs/linux-openwrt-g++
280 $(CP) ./files/qmake.conf $(PKG_BUILD_DIR)/mkspecs/linux-openwrt-g++/qmake.conf
281 $(CP) ./files/qplatformdefs.h $(PKG_BUILD_DIR)/mkspecs/linux-openwrt-g++/qplatformdefs.h
282 ( cd $(PKG_BUILD_DIR) ; \
283 TARGET_CC="$(TARGET_CROSS)gcc" \
284 TARGET_CXX="$(TARGET_CROSS)g++" \
285 TARGET_AR="$(TARGET_CROSS)ar cqs" \
286 TARGET_OBJCOPY="$(TARGET_CROSS)objcopy" \
287 TARGET_RANLIB="$(TARGET_CROSS)ranlib" \
288 TARGET_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
289 TARGET_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
290 TARGET_LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
291 TARGET_INCDIRS="$(TARGET_INCDIRS)" \
292 TARGET_LIBDIRS="$(TARGET_LIBDIRS)" \
293 CFLAGS= \
294 CXXFLAGS= \
295 LDFLAGS= \
296 STAGING_DIR="$(STAGING_DIR)" \
297 STAGING_DIR_HOST="$(STAGING_DIR)/../host" \
298 ./configure \
299 -arch $(ARCH) \
300 -prefix $(CONFIGURE_PREFIX) \
301 -bindir $(CONFIGURE_PREFIX)/bin \
302 -libdir $(CONFIGURE_PREFIX)/lib \
303 -datadir $(CONFIGURE_PREFIX)/share/Qt \
304 -plugindir $(CONFIGURE_PREFIX)/lib/Qt/plugins \
305 -demosdir $(CONFIGURE_PREFIX)/share/Qt/demos \
306 -examplesdir $(CONFIGURE_PREFIX)/share/Qt/examples \
307 -sysconfdir /etc/Qt \
308 -no-rpath \
309 -force-pkg-config \
310 -continue \
311 -nomake tools \
312 $(if $(CONFIG_PACKAGE_qt4-demos),-make,-nomake) demos \
313 $(if $(CONFIG_PACKAGE_qt4-examples),-make,-nomake) examples \
314 -nomake docs \
315 -nomake translations \
316 -xplatform linux-openwrt-g++ \
317 -platform linux-g++ \
318 $(if $(CONFIG_QT4_WS_X11),-x11,-embedded) \
319 -release \
320 -confirm-license \
321 -opensource \
322 -stl \
323 $(if $(CONFIG_PACKAGE_qt4-xmlpatterns),-xmlpatterns,-no-xmlpatterns) \
324 -no-fast \
325 -no-largefile \
326 -exceptions \
327 -no-mmx \
328 -no-3dnow \
329 -no-sse \
330 -no-sse2 \
331 -no-sse3 \
332 -no-ssse3 \
333 -no-sse4.1 \
334 -no-sse4.2 \
335 -no-avx \
336 -no-neon \
337 -no-armfpa \
338 -system-zlib \
339 -system-libtiff \
340 -system-libpng \
341 -system-libjpeg \
342 -system-freetype \
343 -system-sqlite \
344 $(if $(CONFIG_PACKAGE_qt4-sqlite),-plugin-sql-sqlite) \
345 $(if $(CONFIG_PACKAGE_qt4-mysql),-plugin-sql-mysql) \
346 $(if $(CONFIG_PACKAGE_qt4-pgsql),-plugin-sql-psql) \
347 -no-decoration-styled \
348 -no-decoration-windows \
349 -no-decoration-default \
350 -verbose \
351 -no-multimedia \
352 -no-audio-backend \
353 $(if $(CONFIG_PACKAGE_qt4-phonon),-phonon,-no-phonon) \
354 -no-phonon-backend \
355 $(if $(CONFIG_PACKAGE_qt4-svg),-svg,-no-svg) \
356 $(if $(CONFIG_PACKAGE_qt4-webkit),-webkit,-no-webkit) \
357 -no-javascript-jit \
358 $(if $(CONFIG_PACKAGE_qt4-script),-script,-no-script) \
359 $(if $(CONFIG_PACKAGE_qt4-scripttools),-scripttools,-no-scripttools) \
360 -no-accessibility \
361 $(if $(CONFIG_PACKAGE_qt4-declarative),-declarative,-no-declarative) \
362 $(if $(CONFIG_PACKAGE_qt4-openssl),-openssl -I $(STAGING_DIR)/usr/include,-no-openssl) \
363 -no-nis \
364 -no-cups \
365 -iconv \
366 $(if $(CONFIG_PACKAGE_qt4-dbus),-dbus,-no-dbus) \
367 -no-gtkstyle \
368 -no-nas-sound \
369 -no-opengl \
370 -no-openvg \
371 -no-sm \
372 -no-xshape \
373 $(if $(CONFIG_QT4_WS_X11),-no-xsync,-xsync) \
374 -no-xinerama \
375 $(if $(CONFIG_QT4_WS_X11),-no-xcursor,-xcursor) \
376 -no-xfixes \
377 -no-xrandr \
378 -no-xrender \
379 -no-mitshm \
380 $(if $(CONFIG_QT4_WS_X11),-no-fontconfig,-fontconfig) \
381 $(if $(CONFIG_QT4_WS_X11),-no-xinput,-xinput) \
382 $(if $(CONFIG_QT4_WS_X11),-no-xkb,-xkb) \
383 -no-glib \
384 $(if $(CONFIG_PACKAGE_qt4-qt3support),-qt3support,-no-qt3support) \
385 -no-gfx-transformed \
386 -no-gfx-qvfb \
387 $(if $(CONFIG_PACKAGE_qt4-drivers-gfx-vnc),-plugin-gfx-vnc,-no-gfx-vnc) \
388 -no-gfx-multiscreen \
389 -no-gfx-qnx \
390 $(if $(CONFIG_FEATURE_drawing-backend_DirectFB),$(if $(CONFIG_PACKAGE_directfb),-plugin-gfx-directfb)) \
391 -plugin-gfx-linuxfb \
392 -no-mouse-qvfb \
393 -no-mouse-qnx \
394 -qt-mouse-linuxinput \
395 -plugin-mouse-linuxtp \
396 -plugin-mouse-pc \
397 $(if $(CONFIG_PACKAGE_qt4-tslibmousedriver),-plugin-mouse-tslib) \
398 -no-kbd-qvfb \
399 -no-kbd-qnx \
400 -qt-kbd-tty \
401 -qt-kbd-linuxinput \
402 )
403 endef
404
405 define Build/Compile
406 # just passing <make install> results in not building 3rdparty/webkit/JavaScriptCore
407 # unfortunately in this particular case, <make> makes further <qmake> calls, therewith
408 # uses the qmake.conf which needs get the cross-compiling vars passed once again
409 TARGET_CC="$(TARGET_CROSS)gcc" \
410 TARGET_CXX="$(TARGET_CROSS)g++" \
411 TARGET_AR="$(TARGET_CROSS)ar cqs" \
412 TARGET_OBJCOPY="$(TARGET_CROSS)objcopy" \
413 TARGET_RANLIB="$(TARGET_CROSS)ranlib" \
414 TARGET_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
415 TARGET_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
416 TARGET_LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
417 TARGET_INCDIRS="$(TARGET_INCDIRS)" \
418 TARGET_LIBDIRS="$(TARGET_LIBDIRS)" \
419 STAGING_DIR="$(STAGING_DIR)" \
420 STAGING_DIR_HOST="$(STAGING_DIR)/../host" \
421 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
422 INSTALL_ROOT=$(PKG_INSTALL_DIR) \
423 $(MAKE) -C $(PKG_BUILD_DIR) install
424 endef
425
426 define Build/InstallDev
427 $(INSTALL_DIR) \
428 $(STAGING_DIR_HOST)/bin
429
430 # host tools (qmake, moc, rcc, uic)
431 $(CP) \
432 $(PKG_INSTALL_DIR)/usr/bin/{qmake,moc,rcc,uic} \
433 $(STAGING_DIR_HOST)/bin/
434
435 $(INSTALL_DIR) \
436 $(1)/mk \
437 $(1)/usr/share/mkspecs-qt4 \
438 $(1)/usr/lib/pkgconfig \
439 $(1)/usr/lib \
440 $(1)/usr/include \
441 $(1)/usr/lib/Qt/plugins
442
443 $(CP) \
444 ./files/qmake.mk \
445 $(1)/mk/qmake4.mk
446
447 $(CP) \
448 $(PKG_INSTALL_DIR)/usr/share/Qt/mkspecs/* \
449 $(1)/usr/share/mkspecs-qt4/
450
451 $(INSTALL_DATA) \
452 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
453 $(1)/usr/lib/pkgconfig/
454
455 $(CP) \
456 $(PKG_INSTALL_DIR)/usr/include/* \
457 $(1)/usr/include/
458
459 $(CP) \
460 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
461 $(1)/usr/lib/
462
463 #$(CP) \
464 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/* \
465 # $(1)/usr/lib/Qt/plugins/
466 endef
467
468 define Package/qt4/install
469 $(INSTALL_DIR) \
470 $(1)/usr/lib \
471 $(1)/usr/lib/Qt/plugins
472
473 $(CP) \
474 $(PKG_INSTALL_DIR)/usr/lib/libQtCore.so* \
475 $(1)/usr/lib/
476
477 #$(CP) \
478 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/codecs/*.so \
479 # $(1)/usr/lib/Qt/plugins/codecs/
480 endef
481
482 define Package/qt4-gui/install
483 $(INSTALL_DIR) \
484 $(1)/usr/lib \
485 $(1)/usr/lib/Qt/plugins
486
487 $(CP) \
488 $(PKG_INSTALL_DIR)/usr/lib/libQtGui.so* \
489 $(1)/usr/lib/
490
491 #HACK: Qt4 requires having truetype fonts stored in /usr/lib/fonts - no subdirectories allowed, so use the dejavue set by default
492 ln -s \
493 /usr/share/fonts/ttf-dejavu \
494 $(1)/usr/lib/fonts
495
496 # we use the dejavue font package instead
497 #$(INSTALL_DATA) \
498 # $(PKG_INSTALL_DIR)/usr/lib/fonts/*.ttf \
499 # $(1)/usr/lib/fonts/
500
501 #$(CP) \
502 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/accessible \
503 # $(1)/usr/lib/Qt/plugins/
504
505 #$(CP) \
506 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/imageformats \
507 # $(1)/usr/lib/Qt/plugins/
508
509 #$(CP) \
510 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/inputmethods \
511 # $(1)/usr/lib/Qt/plugins/
512 endef
513
514 define Package/qt4-demos/install
515 $(INSTALL_DIR) \
516 $(1)/usr/share/Qt
517
518 $(CP) \
519 $(PKG_INSTALL_DIR)/usr/share/Qt/demos \
520 $(1)/usr/share/Qt/
521
522 $(FIND) \
523 $(1) \
524 -name "*.cpp" -o \
525 -name "*.h" -o \
526 -name "*.pro" \
527 | $(XARGS) rm
528 endef
529
530 define Package/qt4-examples/install
531 $(INSTALL_DIR) \
532 $(1)/usr/share/Qt
533
534 $(CP) \
535 $(PKG_INSTALL_DIR)/usr/share/Qt/examples \
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-network/install
547 $(INSTALL_DIR) \
548 $(1)/usr/lib
549
550 $(CP) \
551 $(PKG_INSTALL_DIR)/usr/lib/libQtNetwork.so* \
552 $(1)/usr/lib/
553 endef
554
555 define Package/qt4-sqlite/install
556 $(INSTALL_DIR) \
557 $(1)/usr/lib/Qt/plugins/sqldrivers
558
559 $(CP) \
560 $(PKG_INSTALL_DIR)/usr/lib/libQtSql.so* \
561 $(1)/usr/lib/
562
563 $(CP) \
564 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/sqldrivers/libqsqlite.so \
565 $(1)/usr/lib/Qt/plugins/sqldrivers/
566 endef
567
568 define Package/qt4-mysql/install
569 $(INSTALL_DIR) \
570 $(1)/usr/lib/Qt/plugins/sqldrivers
571
572 $(CP) \
573 $(PKG_INSTALL_DIR)/usr/lib/libQtSql.so* \
574 $(1)/usr/lib/
575
576 $(CP) \
577 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/sqldrivers/libqsqlmysql.so \
578 $(1)/usr/lib/Qt/plugins/sqldrivers/
579 endef
580
581 define Package/qt4-pgsql/install
582 $(INSTALL_DIR) \
583 $(1)/usr/lib/Qt/plugins/sqldrivers
584
585 $(CP) \
586 $(PKG_INSTALL_DIR)/usr/lib/libQtSql.so* \
587 $(1)/usr/lib/
588
589 $(CP) \
590 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/sqldrivers/libqsqlpsql.so \
591 $(1)/usr/lib/Qt/plugins/sqldrivers/
592 endef
593
594 #define Package/qt4-multimedia/install
595 # $(INSTALL_DIR) \
596 # $(1)/usr/bin
597 #
598 # $(CP) \
599 # $(PKG_INSTALL_DIR)/usr/bin/examples/* \
600 # $(1)/usr/bin/
601 #endef
602
603 define Package/qt4-phonon/install
604 $(INSTALL_DIR) \
605 $(1)/usr/lib
606
607 $(CP) \
608 $(PKG_INSTALL_DIR)/usr/lib/libphonon.so* \
609 $(1)/usr/lib/
610 endef
611
612 define Package/qt4-svg/install
613 $(INSTALL_DIR) \
614 $(1)/usr/lib \
615 $(1)/usr/lib/Qt/plugins
616
617 $(CP) \
618 $(PKG_INSTALL_DIR)/usr/lib/libQtSvg.so* \
619 $(1)/usr/lib/
620
621 #$(CP) \
622 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/iconengines \
623 # $(1)/usr/lib/Qt/plugins/
624
625 #$(CP) \
626 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/imageformats \
627 # $(1)/usr/lib/Qt/plugins/
628 endef
629
630 define Package/qt4-webkit/install
631 $(INSTALL_DIR) \
632 $(1)/usr/lib \
633 $(1)/usr/lib/Qt/plugins
634
635 $(CP) \
636 $(PKG_INSTALL_DIR)/usr/lib/libQtWebKit.so* \
637 $(1)/usr/lib/
638
639 #$(CP) \
640 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/designer \
641 # $(1)/usr/lib/Qt/plugins/
642 endef
643
644 define Package/qt4-script/install
645 $(INSTALL_DIR) \
646 $(1)/usr/lib \
647 $(1)/usr/lib/Qt/plugins
648
649 $(CP) \
650 $(PKG_INSTALL_DIR)/usr/lib/libQtScript.so* \
651 $(1)/usr/lib/
652
653 #$(CP) \
654 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/script \
655 # $(1)/usr/lib/Qt/plugins/
656 endef
657
658 define Package/qt4-scripttools/install
659 $(INSTALL_DIR) \
660 $(1)/usr/lib
661
662 $(CP) \
663 $(PKG_INSTALL_DIR)/usr/lib/libQtScriptTools.so* \
664 $(1)/usr/lib/
665 endef
666
667 define Package/qt4-dbus/install
668 $(INSTALL_DIR) \
669 $(1)/usr/lib
670
671 $(CP) \
672 $(PKG_INSTALL_DIR)/usr/lib/libQtDBus.so* \
673 $(1)/usr/lib/
674
675 #$(CP) \
676 # $(PKG_INSTALL_DIR)/usr/bin/qdbus \
677 # $(1)/usr/bin/
678 endef
679
680 define Package/qt4-qt3-support/install
681 $(INSTALL_DIR) \
682 $(1)/usr/lib \
683 $(1)/usr/lib/Qt/plugins
684
685 $(CP) \
686 $(PKG_INSTALL_DIR)/usr/lib/libQt3Support.so* \
687 $(1)/usr/lib/
688
689 #$(CP) \
690 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/accessible \
691 # $(1)/usr/lib/Qt/plugins/
692 endef
693
694 define Package/qt4-declarative/install
695 $(INSTALL_DIR) \
696 $(1)/usr/lib
697
698 $(CP) \
699 $(PKG_INSTALL_DIR)/usr/lib/libQtDeclarative.so* \
700 $(1)/usr/lib/
701 endef
702
703 define Package/qt4-xml/install
704 $(INSTALL_DIR) \
705 $(1)/usr/lib
706
707 $(CP) \
708 $(PKG_INSTALL_DIR)/usr/lib/libQtXml.so* \
709 $(1)/usr/lib/
710 endef
711
712 define Package/qt4-xmlpatterns/install
713 $(INSTALL_DIR) \
714 $(1)/usr/lib
715
716 $(CP) \
717 $(PKG_INSTALL_DIR)/usr/lib/libQtXmlPatterns.so* \
718 $(1)/usr/lib/
719 endef
720
721 # plugins
722 # mouse drivers
723 define Package/qt4-drivers-mouse-tpmousedriver/install
724 $(INSTALL_DIR) \
725 $(1)/usr/lib/Qt/plugins/mousedrivers
726
727 $(CP) \
728 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/mousedrivers/libqlinuxtpmousedriver.so \
729 $(1)/usr/lib/Qt/plugins/mousedrivers/
730 endef
731
732 define Package/qt4-drivers-mouse-pcmousedriver/install
733 $(INSTALL_DIR) \
734 $(1)/usr/lib/Qt/plugins/mousedrivers
735
736 $(CP) \
737 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/mousedrivers/libqpcmousedriver.so \
738 $(1)/usr/lib/Qt/plugins/mousedrivers/
739 endef
740
741 define Package/qt4-drivers-mouse-tslibmousedriver/install
742 $(INSTALL_DIR) \
743 $(1)/usr/lib/Qt/plugins/mousedrivers
744
745 $(CP) \
746 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/mousedrivers/libqtslibmousedriver.so \
747 $(1)/usr/lib/Qt/plugins/mousedrivers/
748 endef
749
750 # graphics drivers
751 define Package/qt4-drivers-gfx-directfb/install
752 $(INSTALL_DIR) \
753 $(1)/usr/lib/Qt/plugins/gfxdrivers
754
755 $(CP) \
756 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/gfxdrivers/libqdirectfbscreen.so \
757 $(1)/usr/lib/Qt/plugins/gfxdrivers/
758 endef
759
760 define Package/qt4-drivers-gfx-linuxfb/install
761 $(INSTALL_DIR) \
762 $(1)/usr/lib/Qt/plugins/gfxdrivers
763
764 $(CP) \
765 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/gfxdrivers/libqscreenlinuxfb.so \
766 $(1)/usr/lib/Qt/plugins/gfxdrivers/
767 endef
768
769 define Package/qt4-drivers-gfx-vnc/install
770 $(INSTALL_DIR) \
771 $(1)/usr/lib/Qt/plugins/gfxdrivers
772
773 $(CP) \
774 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/gfxdrivers/libqgfxvnc.so \
775 $(1)/usr/lib/Qt/plugins/gfxdrivers/
776 endef
777
778 # keyboard drivers
779
780
781
782 $(eval $(call BuildPackage,qt4))
783 $(eval $(call BuildPackage,qt4-gui))
784 $(eval $(call BuildPackage,qt4-demos))
785 $(eval $(call BuildPackage,qt4-examples))
786 $(eval $(call BuildPackage,qt4-network))
787 $(eval $(call BuildPackage,qt4-sqlite))
788 $(eval $(call BuildPackage,qt4-mysql))
789 $(eval $(call BuildPackage,qt4-pgsql))
790 $(eval $(call BuildPackage,qt4-openssl))
791 #$(eval $(call BuildPackage,qt4-multimedia))
792 #$(eval $(call BuildPackage,qt4-audio-backend))
793 $(eval $(call BuildPackage,qt4-phonon))
794 #$(eval $(call BuildPackage,qt4-phonon-backend))
795 $(eval $(call BuildPackage,qt4-svg))
796 $(eval $(call BuildPackage,qt4-webkit))
797 $(eval $(call BuildPackage,qt4-script))
798 $(eval $(call BuildPackage,qt4-scripttools))
799 #$(eval $(call BuildPackage,qt4-accessibility))
800 #$(eval $(call BuildPackage,qt4-javascript-jit))
801 #$(eval $(call BuildPackage,qt4-cups))
802 $(eval $(call BuildPackage,qt4-dbus))
803 #$(eval $(call BuildPackage,qt4-gtkstyle))
804 #$(eval $(call BuildPackage,qt4-glib))
805 $(eval $(call BuildPackage,qt4-qt3support))
806 $(eval $(call BuildPackage,qt4-declarative))
807 $(eval $(call BuildPackage,qt4-xml))
808 $(eval $(call BuildPackage,qt4-xmlpatterns))
809
810 $(eval $(call BuildPackage,qt4-drivers-mouse-tpmousedriver))
811 $(eval $(call BuildPackage,qt4-drivers-mouse-pcmousedriver))
812 $(eval $(call BuildPackage,qt4-drivers-mouse-tslibmousedriver))
813
814 $(eval $(call BuildPackage,qt4-drivers-gfx-directfb))
815 $(eval $(call BuildPackage,qt4-drivers-gfx-linuxfb))
816 $(eval $(call BuildPackage,qt4-drivers-gfx-vnc))