diff options
author | Eric BENARD <eric@eukrea.com> | 2013-05-28 13:03:54 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-28 18:20:25 +0200 |
commit | 1fdab229df6000eb52ac721a3ff4cdd218a0c308 (patch) | |
tree | a98033a86b4d6c4d65626bce54c37ca90a72d9c8 | |
parent | 4a82435fff932711146b5c36342556fb8af7003c (diff) | |
download | meta-qt5-1fdab229df6000eb52ac721a3ff4cdd218a0c308.tar.gz |
qtbase: install and split package fonts
- fonts were not installed (at least in qt 5.0.2) so install
them manually.
- split the font package in smaller package as done in qt4 to
save space on the target.
- use OE_QMAKE_PATH_LIBS which corresponds with:
mkspecs/features/qpa/genericunixfontdatabase.prf: fonts.path = $$[QT_INSTALL_LIBS]/fonts
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | recipes-qt/qt5/qtbase.inc | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/recipes-qt/qt5/qtbase.inc b/recipes-qt/qt5/qtbase.inc index 0df3b2a6..2a5e3bc3 100644 --- a/recipes-qt/qt5/qtbase.inc +++ b/recipes-qt/qt5/qtbase.inc | |||
@@ -173,7 +173,35 @@ do_install_append() { | |||
173 | # qemu built on host breaks do_package, remove it here (will be replaces with right qemu when do_compile is fixed | 173 | # qemu built on host breaks do_package, remove it here (will be replaces with right qemu when do_compile is fixed |
174 | # ERROR: objcopy failed with exit code 1 (cmd was 'arm-oe-linux-gnueabi-objcopy' --only-keep-debug '/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/qmake' '/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/.debug/qmake') | 174 | # ERROR: objcopy failed with exit code 1 (cmd was 'arm-oe-linux-gnueabi-objcopy' --only-keep-debug '/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/qmake' '/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/.debug/qmake') |
175 | rm -f ${D}/${bindir}/${QT_DIR_NAME}/qmake | 175 | rm -f ${D}/${bindir}/${QT_DIR_NAME}/qmake |
176 | # install fonts manually if they are missing | ||
177 | if [ ! -d ${D}/${OE_QMAKE_PATH_LIBS}/fonts ]; then | ||
178 | cp -a ${S}/lib/fonts ${D}/${OE_QMAKE_PATH_LIBS} | ||
179 | fi | ||
176 | } | 180 | } |
177 | 181 | ||
178 | PACKAGES =. "${PN}-fonts " | 182 | PACKAGES =. " \ |
179 | FILES_${PN}-fonts = "${libdir}/${QT_DIR_NAME}/fonts ${libdir}/fonts" | 183 | ${PN}-fonts \ |
184 | ${PN}-fonts-ttf-vera \ | ||
185 | ${PN}-fonts-ttf-dejavu \ | ||
186 | ${PN}-fonts-pfa \ | ||
187 | ${PN}-fonts-pfb \ | ||
188 | ${PN}-fonts-qpf \ | ||
189 | " | ||
190 | |||
191 | RRECOMMENDS_${PN}-fonts = " \ | ||
192 | ${PN}-fonts-ttf-vera \ | ||
193 | ${PN}-fonts-ttf-dejavu \ | ||
194 | ${PN}-fonts-pfa \ | ||
195 | ${PN}-fonts-pfb \ | ||
196 | ${PN}-fonts-qpf \ | ||
197 | " | ||
198 | |||
199 | ALLOW_EMPTY_${PN}-fonts = "1" | ||
200 | |||
201 | FILES_${PN}-fonts-ttf-vera = "${OE_QMAKE_PATH_LIBS}/fonts/Vera*.ttf" | ||
202 | FILES_${PN}-fonts-ttf-dejavu = "${OE_QMAKE_PATH_LIBS}/fonts/DejaVu*.ttf" | ||
203 | FILES_${PN}-fonts-pfa = "${OE_QMAKE_PATH_LIBS}/fonts/*.pfa" | ||
204 | FILES_${PN}-fonts-pfb = "${OE_QMAKE_PATH_LIBS}/fonts/*.pfb" | ||
205 | FILES_${PN}-fonts-qpf = "${OE_QMAKE_PATH_LIBS}/fonts/*.qpf*" | ||
206 | FILES_${PN}-fonts = "${OE_QMAKE_PATH_LIBS}/fonts/README \ | ||
207 | ${OE_QMAKE_PATH_LIBS}/fonts/fontdir" | ||