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