qt: fix plugin installation and change plugin path
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 3 Apr 2011 15:19:00 +0000 (17:19 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 3 Apr 2011 18:11:25 +0000 (20:11 +0200)
commit9fd85d8168ccc210a03682dff844cca5fbb35349
tree297a2c1d18dc98b5df4a144cb581aa74faac880b
parente37804807e8afdbf0d7aebbb954adc774c6f2d3d
qt: fix plugin installation and change plugin path

Since the conversion of Qt to GENTARGETS in
421cda1fd078f5fa7902f05bd1d2021fd101d9ea, plugin installation could
break in some situations, for example if SQL support was enabled, but
without any SQL driver: the sql plugin directory doesn't exist, but
our qt.mk wanted to copy it.

This patches simplifies the plugin handling a bit, and basically
copies all Qt plugins installed in the $(STAGING_DIR) to the
$(TARGET_DIR), assuming Qt has only built and installed the needed
plugins.

Moreover, instead of installing plugins to usr/plugins, which is a odd
location, we install them in usr/lib/qt/plugins. This requires a small
patch to Qt ./configure script so that even when -hostprefix is used,
the -plugindir option is taken into account.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/qt/qt-4.7.2-configure.patch [new file with mode: 0644]
package/qt/qt.mk