summaryrefslogtreecommitdiffstats
path: root/package/qt/qt.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/qt/qt.mk')
-rw-r--r--package/qt/qt.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/package/qt/qt.mk b/package/qt/qt.mk
index 3d58f1fac..d69930b4b 100644
--- a/package/qt/qt.mk
+++ b/package/qt/qt.mk
@@ -220,6 +220,14 @@ endif
endif
+QT_FONTS = $(addprefix $(STAGING_DIR)/usr/lib/fonts/, $(addsuffix *.qpf, \
+ $(if $(BR2_PACKAGE_QT_FONT_MICRO),micro) \
+ $(if $(BR2_PACKAGE_QT_FONT_FIXED),fixed) \
+ $(if $(BR2_PACKAGE_QT_FONT_HELVETICA),helvetica) \
+ $(if $(BR2_PACKAGE_QT_FONT_JAPANESE),japanese) \
+ $(if $(BR2_PACKAGE_QT_FONT_UNIFONT),unifont)))
+
+
ifeq ($(BR2_PACKAGE_QT_QTFREETYPE),y)
QT_CONFIGURE+= -qt-freetype
else
@@ -445,7 +453,9 @@ $(STAGING_DIR)/usr/lib/libQtCore.la: $(QT_TARGET_DIR)/.compiled
qt-gui: $(STAGING_DIR)/usr/lib/libQtCore.la
mkdir -p $(TARGET_DIR)/usr/lib/fonts
- cp -dpf $(STAGING_DIR)/usr/lib/fonts/*.qpf $(TARGET_DIR)/usr/lib/fonts
+ifneq ($(QT_FONTS),)
+ cp -dpf $(QT_FONTS) $(TARGET_DIR)/usr/lib/fonts
+endif
ifneq ($(BR2_PACKAGE_QT_NOFREETYPE),y)
cp -dpf $(STAGING_DIR)/usr/lib/fonts/*.ttf $(TARGET_DIR)/usr/lib/fonts
endif