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