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