blob: d11d8ea75f0492b649d2fc99b5004936b1a3de21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
DESCRIPTION = "Meta-package for Opie TTF support"
SECTION = "opie/fonts"
DEPENDS = "freetype"
PR = "r3"
SRC_URI = "file://update-qtttffontdir.c"
S = "${WORKDIR}"
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} -I${STAGING_INCDIR}/freetype2 -lfreetype -o update-qtttffontdir update-qtttffontdir.c
}
do_install() {
install -d ${D}${sbindir}
install -d ${D}${sysconfdir}/update-fonts-common.d/
install -m 0755 update-qtttffontdir ${D}${sbindir}
echo "
#!/bin/sh
# Author: Rolf Leggewie
${sbindir}/update-qtttffontdir ${datadir}/fonts/truetype > ${palmtopdir}/lib/fonts/fontdir
" > ${D}${sysconfdir}/update-fonts-common.d/02qtttffont-update
}
|