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