fd9dd1242c6484ce98dfa1c8eae8c86d7ef0bf3d
[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
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
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 STAGING_DIR="$(STAGING_DIR)" \
304 STAGING_DIR_HOST="$(STAGING_DIR)/../host" \
305 ./configure \
306 -arch $(ARCH) \
307 -prefix $(CONFIGURE_PREFIX) \
308 -bindir $(CONFIGURE_PREFIX)/bin \
309 -libdir $(CONFIGURE_PREFIX)/lib \
310 -datadir $(CONFIGURE_PREFIX)/share/Qt \
311 -plugindir $(CONFIGURE_PREFIX)/lib/Qt/plugins \
312 -demosdir $(CONFIGURE_PREFIX)/share/Qt/demos \
313 -examplesdir $(CONFIGURE_PREFIX)/share/Qt/examples \
314 -sysconfdir /etc/Qt \
315 -no-rpath \
316 -force-pkg-config \
317 -nomake tools \
318 $(if $(CONFIG_PACKAGE_qt4-demos),-make,-nomake) demos \
319 $(if $(CONFIG_PACKAGE_qt4-examples),-make,-nomake) examples \
320 -nomake docs \
321 -nomake translations \
322 -xplatform $(QMAKE_PLATFORM_PREFIX)linux-openwrt-g++ \
323 -platform linux-g++ \
324 $(if $(CONFIG_QT4_WS_X11),-x11,-embedded) \
325 -release \
326 -confirm-license \
327 -opensource \
328 -no-mmx \
329 -no-3dnow \
330 -no-sse \
331 -no-sse2 \
332 -system-zlib \
333 -system-libtiff \
334 -system-libpng \
335 -system-libjpeg \
336 -system-freetype \
337 -system-sqlite \
338 $(if $(CONFIG_PACKAGE_qt4-sqlite),-plugin-sql-sqlite) \
339 $(if $(CONFIG_PACKAGE_qt4-mysql),-plugin-sql-mysql) \
340 -no-decoration-styled \
341 -no-decoration-windows \
342 -no-decoration-default \
343 -verbose \
344 -no-multimedia \
345 -no-audio-backend \
346 $(if $(CONFIG_PACKAGE_qt4-phonon),-phonon,-no-phonon) \
347 -no-phonon-backend \
348 $(if $(CONFIG_PACKAGE_qt4-svg),-svg,-no-svg) \
349 $(if $(CONFIG_PACKAGE_qt4-webkit),-webkit,-no-webkit) \
350 -no-javascript-jit \
351 $(if $(CONFIG_PACKAGE_qt4-script),-script,-no-script) \
352 $(if $(CONFIG_PACKAGE_qt4-scripttools),-scripttools,-no-scripttools) \
353 -no-accessibility \
354 $(if $(CONFIG_PACKAGE_qt4-declarative),-declarative,-no-declarative) \
355 $(if $(CONFIG_PACKAGE_qt4-openssl),-openssl -I $(STAGING_DIR)/usr/include,-no-openssl) \
356 -no-nis \
357 -no-cups \
358 -iconv \
359 $(if $(CONFIG_PACKAGE_qt4-dbus),-dbus,-no-dbus) \
360 -no-gtkstyle \
361 -no-nas-sound \
362 -no-opengl \
363 -no-openvg \
364 -no-sm \
365 -no-xshape \
366 $(if $(CONFIG_QT4_WS_X11),-no-xsync,-xsync) \
367 -no-xinerama \
368 $(if $(CONFIG_QT4_WS_X11),-no-xcursor,-xcursor) \
369 -no-xfixes \
370 -no-xrandr \
371 -no-xrender \
372 -no-mitshm \
373 $(if $(CONFIG_QT4_WS_X11),-no-fontconfig,-fontconfig) \
374 $(if $(CONFIG_QT4_WS_X11),-no-xinput,-xinput) \
375 $(if $(CONFIG_QT4_WS_X11),-no-xkb,-xkb) \
376 -no-glib \
377 $(if $(CONFIG_PACKAGE_qt4-qt3support),-qt3support,-no-qt3support) \
378 -no-gfx-transformed \
379 -no-gfx-qvfb \
380 $(if $(CONFIG_PACKAGE_qt4-drivers-gfx-vnc),-plugin-gfx-vnc,-no-gfx-vnc) \
381 -no-gfx-multiscreen \
382 -no-gfx-qnx \
383 $(if $(CONFIG_PACKAGE_directfb),-plugin-gfx-directfb) \
384 -plugin-gfx-linuxfb \
385 -no-mouse-qvfb \
386 -no-mouse-qnx \
387 -qt-mouse-linuxinput \
388 -plugin-mouse-linuxtp \
389 -plugin-mouse-pc \
390 -plugin-mouse-tslib \
391 -no-kbd-qvfb \
392 -no-kbd-qnx \
393 -qt-kbd-tty \
394 -qt-kbd-linuxinput \
395 )
396 endef
397
398 define Build/Compile
399 # just passing <make install> results in not building 3rdparty/webkit/JavaScriptCore
400 # unfortunately in this particular case, <make> makes further <qmake> calls, therewith
401 # uses the qmake.conf which needs get the cross-compiling vars passed once again
402 TARGET_CC="$(TARGET_CROSS)gcc" \
403 TARGET_CXX="$(TARGET_CROSS)g++" \
404 TARGET_AR="$(TARGET_CROSS)ar cqs" \
405 TARGET_OBJCOPY="$(TARGET_CROSS)objcopy" \
406 TARGET_RANLIB="$(TARGET_CROSS)ranlib" \
407 TARGET_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
408 TARGET_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
409 TARGET_LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
410 TARGET_INCDIRS="$(TARGET_INCDIRS)" \
411 TARGET_LIBDIRS="$(TARGET_LIBDIRS)" \
412 STAGING_DIR="$(STAGING_DIR)" \
413 STAGING_DIR_HOST="$(STAGING_DIR)/../host" \
414 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
415 INSTALL_ROOT=$(PKG_INSTALL_DIR) \
416 $(MAKE) -C $(PKG_BUILD_DIR) install
417 endef
418
419 define Build/InstallDev
420 $(INSTALL_DIR) \
421 $(STAGING_DIR_HOST)/bin
422
423 # host tools (qmake, moc, rcc, uic)
424 $(CP) \
425 $(PKG_INSTALL_DIR)/usr/bin/{qmake,moc,rcc,uic} \
426 $(STAGING_DIR_HOST)/bin/
427
428 $(INSTALL_DIR) \
429 $(1)/mk \
430 $(1)/usr/share/mkspecs \
431 $(1)/usr/lib/pkgconfig \
432 $(1)/usr/lib \
433 $(1)/usr/include \
434 $(1)/usr/lib/Qt/plugins
435
436 $(CP) \
437 ./files/qmake.mk \
438 $(1)/mk/
439
440 $(CP) \
441 $(PKG_INSTALL_DIR)/usr/share/Qt/mkspecs/* \
442 $(1)/usr/share/mkspecs/
443
444 $(INSTALL_DATA) \
445 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
446 $(1)/usr/lib/pkgconfig/
447
448 $(CP) \
449 $(PKG_INSTALL_DIR)/usr/include/* \
450 $(1)/usr/include/
451
452 $(CP) \
453 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
454 $(1)/usr/lib/
455
456 #$(CP) \
457 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/* \
458 # $(1)/usr/lib/Qt/plugins/
459 endef
460
461 define Package/qt4/install
462 $(INSTALL_DIR) \
463 $(1)/usr/lib \
464 $(1)/usr/lib/Qt/plugins
465
466 $(CP) \
467 $(PKG_INSTALL_DIR)/usr/lib/libQtCore.so* \
468 $(1)/usr/lib/
469
470 #$(CP) \
471 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/codecs/*.so \
472 # $(1)/usr/lib/Qt/plugins/codecs/
473 endef
474
475 define Package/qt4-gui/install
476 $(INSTALL_DIR) \
477 $(1)/usr/lib \
478 $(1)/usr/lib/Qt/plugins
479
480 $(CP) \
481 $(PKG_INSTALL_DIR)/usr/lib/libQtGui.so* \
482 $(1)/usr/lib/
483
484 #HACK: Qt4 requires having truetype fonts stored in /usr/lib/fonts - no subdirectories allowed, so use the dejavue set by default
485 ln -s \
486 /usr/share/fonts/ttf-dejavu \
487 $(1)/usr/lib/fonts
488
489 # we use the dejavue font package instead
490 #$(INSTALL_DATA) \
491 # $(PKG_INSTALL_DIR)/usr/lib/fonts/*.ttf \
492 # $(1)/usr/lib/fonts/
493
494 #$(CP) \
495 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/accessible \
496 # $(1)/usr/lib/Qt/plugins/
497
498 #$(CP) \
499 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/imageformats \
500 # $(1)/usr/lib/Qt/plugins/
501
502 #$(CP) \
503 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/inputmethods \
504 # $(1)/usr/lib/Qt/plugins/
505 endef
506
507 define Package/qt4-demos/install
508 $(INSTALL_DIR) \
509 $(1)/usr/share/Qt
510
511 $(CP) \
512 $(PKG_INSTALL_DIR)/usr/share/Qt/demos \
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-examples/install
524 $(INSTALL_DIR) \
525 $(1)/usr/share/Qt
526
527 $(CP) \
528 $(PKG_INSTALL_DIR)/usr/share/Qt/examples \
529 $(1)/usr/share/Qt/
530
531 $(FIND) \
532 $(1) \
533 -name "*.cpp" -o \
534 -name "*.h" -o \
535 -name "*.pro" \
536 | $(XARGS) rm
537 endef
538
539 define Package/qt4-network/install
540 $(INSTALL_DIR) \
541 $(1)/usr/lib
542
543 $(CP) \
544 $(PKG_INSTALL_DIR)/usr/lib/libQtNetwork.so* \
545 $(1)/usr/lib/
546 endef
547
548 define Package/qt4-sqlite/install
549 $(INSTALL_DIR) \
550 $(1)/usr/lib/Qt/plugins/sqldrivers
551
552 $(CP) \
553 $(PKG_INSTALL_DIR)/usr/lib/libQtSql.so* \
554 $(1)/usr/lib/
555
556 $(CP) \
557 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/sqldrivers/libqsqlite.so \
558 $(1)/usr/lib/Qt/plugins/sqldrivers/
559 endef
560
561 define Package/qt4-mysql/install
562 $(INSTALL_DIR) \
563 $(1)/usr/lib/Qt/plugins/sqldrivers
564
565 $(CP) \
566 $(PKG_INSTALL_DIR)/usr/lib/libQtSql.so* \
567 $(1)/usr/lib/
568
569 $(CP) \
570 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/sqldrivers/libqsqlmysql.so \
571 $(1)/usr/lib/Qt/plugins/sqldrivers/
572 endef
573
574 #define Package/qt4-multimedia/install
575 # $(INSTALL_DIR) \
576 # $(1)/usr/bin
577 #
578 # $(CP) \
579 # $(PKG_INSTALL_DIR)/usr/bin/examples/* \
580 # $(1)/usr/bin/
581 #endef
582
583 define Package/qt4-phonon/install
584 $(INSTALL_DIR) \
585 $(1)/usr/lib
586
587 $(CP) \
588 $(PKG_INSTALL_DIR)/usr/lib/libphonon.so* \
589 $(1)/usr/lib/
590 endef
591
592 define Package/qt4-svg/install
593 $(INSTALL_DIR) \
594 $(1)/usr/lib \
595 $(1)/usr/lib/Qt/plugins
596
597 $(CP) \
598 $(PKG_INSTALL_DIR)/usr/lib/libQtSvg.so* \
599 $(1)/usr/lib/
600
601 #$(CP) \
602 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/iconengines \
603 # $(1)/usr/lib/Qt/plugins/
604
605 #$(CP) \
606 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/imageformats \
607 # $(1)/usr/lib/Qt/plugins/
608 endef
609
610 define Package/qt4-webkit/install
611 $(INSTALL_DIR) \
612 $(1)/usr/lib \
613 $(1)/usr/lib/Qt/plugins
614
615 $(CP) \
616 $(PKG_INSTALL_DIR)/usr/lib/libQtWebKit.so* \
617 $(1)/usr/lib/
618
619 #$(CP) \
620 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/designer \
621 # $(1)/usr/lib/Qt/plugins/
622 endef
623
624 define Package/qt4-script/install
625 $(INSTALL_DIR) \
626 $(1)/usr/lib \
627 $(1)/usr/lib/Qt/plugins
628
629 $(CP) \
630 $(PKG_INSTALL_DIR)/usr/lib/libQtScript.so* \
631 $(1)/usr/lib/
632
633 #$(CP) \
634 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/script \
635 # $(1)/usr/lib/Qt/plugins/
636 endef
637
638 define Package/qt4-scripttools/install
639 $(INSTALL_DIR) \
640 $(1)/usr/lib
641
642 $(CP) \
643 $(PKG_INSTALL_DIR)/usr/lib/libQtScriptTools.so* \
644 $(1)/usr/lib/
645 endef
646
647 define Package/qt4-dbus/install
648 $(INSTALL_DIR) \
649 $(1)/usr/lib
650
651 $(CP) \
652 $(PKG_INSTALL_DIR)/usr/lib/libQtDBus.so* \
653 $(1)/usr/lib/
654
655 #$(CP) \
656 # $(PKG_INSTALL_DIR)/usr/bin/qdbus \
657 # $(1)/usr/bin/
658 endef
659
660 define Package/qt4-qt3-support/install
661 $(INSTALL_DIR) \
662 $(1)/usr/lib \
663 $(1)/usr/lib/Qt/plugins
664
665 $(CP) \
666 $(PKG_INSTALL_DIR)/usr/lib/libQt3Support.so* \
667 $(1)/usr/lib/
668
669 #$(CP) \
670 # $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/accessible \
671 # $(1)/usr/lib/Qt/plugins/
672 endef
673
674 define Package/qt4-declarative/install
675 $(INSTALL_DIR) \
676 $(1)/usr/lib
677
678 $(CP) \
679 $(PKG_INSTALL_DIR)/usr/lib/libQtDeclarative.so* \
680 $(1)/usr/lib/
681 endef
682
683 define Package/qt4-xml/install
684 $(INSTALL_DIR) \
685 $(1)/usr/lib
686
687 $(CP) \
688 $(PKG_INSTALL_DIR)/usr/lib/libQtXml.so* \
689 $(1)/usr/lib/
690 endef
691
692 # plugins
693 # mouse drivers
694 define Package/qt4-drivers-mouse-tpmousedriver/install
695 $(INSTALL_DIR) \
696 $(1)/usr/lib/Qt/plugins/mousedrivers
697
698 $(CP) \
699 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/mousedrivers/libqlinuxtpmousedriver.so \
700 $(1)/usr/lib/Qt/plugins/mousedrivers/
701 endef
702
703 define Package/qt4-drivers-mouse-pcmousedriver/install
704 $(INSTALL_DIR) \
705 $(1)/usr/lib/Qt/plugins/mousedrivers
706
707 $(CP) \
708 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/mousedrivers/libqpcmousedriver.so \
709 $(1)/usr/lib/Qt/plugins/mousedrivers/
710 endef
711
712 define Package/qt4-drivers-mouse-tslibmousedriver/install
713 $(INSTALL_DIR) \
714 $(1)/usr/lib/Qt/plugins/mousedrivers
715
716 $(CP) \
717 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/mousedrivers/libqtslibmousedriver.so \
718 $(1)/usr/lib/Qt/plugins/mousedrivers/
719 endef
720
721 # graphics drivers
722 define Package/qt4-drivers-gfx-directfb/install
723 $(INSTALL_DIR) \
724 $(1)/usr/lib/Qt/plugins/gfxdrivers
725
726 $(CP) \
727 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/gfxdrivers/libqdirectfbscreen.so \
728 $(1)/usr/lib/Qt/plugins/gfxdrivers/
729 endef
730
731 define Package/qt4-drivers-gfx-linuxfb/install
732 $(INSTALL_DIR) \
733 $(1)/usr/lib/Qt/plugins/gfxdrivers
734
735 $(CP) \
736 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/gfxdrivers/libqscreenlinuxfb.so \
737 $(1)/usr/lib/Qt/plugins/gfxdrivers/
738 endef
739
740 define Package/qt4-drivers-gfx-vnc/install
741 $(INSTALL_DIR) \
742 $(1)/usr/lib/Qt/plugins/gfxdrivers
743
744 $(CP) \
745 $(PKG_INSTALL_DIR)/usr/lib/Qt/plugins/gfxdrivers/libqgfxvnc.so \
746 $(1)/usr/lib/Qt/plugins/gfxdrivers/
747 endef
748
749 # keyboard drivers
750
751
752
753 $(eval $(call BuildPackage,qt4))
754 $(eval $(call BuildPackage,qt4-gui))
755 $(eval $(call BuildPackage,qt4-demos))
756 $(eval $(call BuildPackage,qt4-examples))
757 $(eval $(call BuildPackage,qt4-network))
758 $(eval $(call BuildPackage,qt4-sqlite))
759 $(eval $(call BuildPackage,qt4-mysql))
760 $(eval $(call BuildPackage,qt4-openssl))
761 #$(eval $(call BuildPackage,qt4-multimedia))
762 #$(eval $(call BuildPackage,qt4-audio-backend))
763 $(eval $(call BuildPackage,qt4-phonon))
764 #$(eval $(call BuildPackage,qt4-phonon-backend))
765 $(eval $(call BuildPackage,qt4-svg))
766 $(eval $(call BuildPackage,qt4-webkit))
767 $(eval $(call BuildPackage,qt4-script))
768 $(eval $(call BuildPackage,qt4-scripttools))
769 #$(eval $(call BuildPackage,qt4-accessibility))
770 #$(eval $(call BuildPackage,qt4-javascript-jit))
771 #$(eval $(call BuildPackage,qt4-cups))
772 $(eval $(call BuildPackage,qt4-dbus))
773 #$(eval $(call BuildPackage,qt4-gtkstyle))
774 #$(eval $(call BuildPackage,qt4-glib))
775 $(eval $(call BuildPackage,qt4-qt3support))
776 $(eval $(call BuildPackage,qt4-declarative))
777 $(eval $(call BuildPackage,qt4-xml))
778
779 $(eval $(call BuildPackage,qt4-drivers-mouse-tpmousedriver))
780 $(eval $(call BuildPackage,qt4-drivers-mouse-pcmousedriver))
781 $(eval $(call BuildPackage,qt4-drivers-mouse-tslibmousedriver))
782
783 $(eval $(call BuildPackage,qt4-drivers-gfx-directfb))
784 $(eval $(call BuildPackage,qt4-drivers-gfx-linuxfb))
785 $(eval $(call BuildPackage,qt4-drivers-gfx-vnc))