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