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