summaryrefslogtreecommitdiffstats
path: root/src/qt5.mk
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-09-23 04:53:47 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-09-23 04:53:47 (GMT)
commit8a6cf7cab7ab03217fd8e6c305eabc7d2913a4b3 (patch)
tree0070dc54f8abd3794a70887703ff74a93300b0f7 /src/qt5.mk
parent66f96745cf85bca5507995e773fc5f9f53d5c9d9 (diff)
downloadmxe-8a6cf7cab7ab03217fd8e6c305eabc7d2913a4b3.zip
mxe-8a6cf7cab7ab03217fd8e6c305eabc7d2913a4b3.tar.gz
mxe-8a6cf7cab7ab03217fd8e6c305eabc7d2913a4b3.tar.bz2
qt5: try to fix CMake files
See #466. This is one of the worst hacks I've ever seen. If there is a way to fix this better, please mention on #466. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/qt5.mk')
-rw-r--r--src/qt5.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt5.mk b/src/qt5.mk
index 4d001f3..c699764 100644
--- a/src/qt5.mk
+++ b/src/qt5.mk
@@ -16,3 +16,9 @@ $(PKG)_DEPS := $(patsubst $(TOP_DIR)/src/%.mk,%,\
define $(PKG)_UPDATE
echo $(qtbase_VERSION)
endef
+
+define $(PKG)_FIX_CMAKE_FILE
+ $(if $(BUILD_STATIC), \
+ find $(PREFIX)/$(TARGET)/qt5/lib/cmake/ -name '*\.cmake' | \
+ xargs $(SED) -i 's!/\(.*\)\.lib!/lib\1\.a!g')
+endef