1 DESCRIPTION= "Tools to update the Qt fontdir"
2 MAINTAINER = "M&N Solutions <info@mn-solutions.de>"
8 SRC_URI = "ftp://ftp.trolltech.com/pub/qt/source/qt-embedded-free-${PV}.tar.bz2"
9 SRC_URI += "file://update-qtfontdir"
10 S = "${WORKDIR}/qt-embedded-free-${PV}"
17 mkdir -p ${D}${sbindir}
18 install -m 755 ${WORKDIR}/update-qtfontdir ${D}${sbindir}
19 mkdir -p ${D}${palmtopdir}/lib/fonts
20 cp -pPR lib/fonts/* ${D}${palmtopdir}/lib/fonts
21 # Delete all other font formats, Qt/E would have a dead slow
22 # application start time if it had to use any other font format
24 find ${D}${palmtopdir}/lib/fonts \
28 -o -name "*.pfb" | xargs rm
31 PACKAGES = "qte-fonts-common"
32 FILES_${PN} = "${sbindir}"
35 PACKAGES += "qte-font-fixed"
36 PROVIDES += "qte-font-fixed"
37 FILES_qte-font-fixed = "${palmtopdir}/lib/fonts/fixed*"
38 RDEPENDS_qte-font-fixed = "qte-fonts-common"
39 pkg_postinst_qte-font-fixed() {
41 if [ -n "$D" ]; then exit 1; fi
44 ${sbindir}/update-qtfontdir
46 pkg_postrm_qte-font-fixed() {
48 if [ -n "$D" ]; then exit 1; fi
51 ${sbindir}/update-qtfontdir -f
54 PACKAGES += "qte-font-helvetica-small"
55 PROVIDES += "qte-font-helvetica-small"
56 FILES_qte-font-helvetica-small = "${palmtopdir}/lib/fonts/helvetica_80*.qpf \
57 ${palmtopdir}/lib/fonts/helvetica_100*.qpf ${palmtopdir}/lib/fonts/helvetica_120*.qpf"
58 RDEPENDS_qte-font-helvetica-small = "qte-fonts-common"
59 pkg_postinst_qte-font-helvetica-small() {
61 if [ -n "$D" ]; then exit 1; fi
64 ${sbindir}/update-qtfontdir
66 pkg_postrm_qte-font-helvetica-small() {
68 if [ -n "$D" ]; then exit 1; fi
71 ${sbindir}/update-qtfontdir -f
74 PACKAGES += "qte-font-helvetica-large"
75 PROVIDES += "qte-font-helvetica-large"
76 FILES_qte-font-helvetica-large = "${palmtopdir}/lib/fonts/helvetica_140*.qpf \
77 ${palmtopdir}/lib/fonts/helvetica_180*.qpf ${palmtopdir}/lib/fonts/helvetica_240*.qpf"
78 RDEPENDS_qte-font-helvetica-large = "qte-fonts-common"
79 pkg_postinst_qte-font-helvetica-large() {
81 if [ -n "$D" ]; then exit 1; fi
84 ${sbindir}/update-qtfontdir
86 pkg_postrm_qte-font-helvetica-large() {
88 if [ -n "$D" ]; then exit 1; fi
91 ${sbindir}/update-qtfontdir -f
94 PACKAGES += "qte-font-smoothtimes"
95 PROVIDES += "qte-font-smoothtimes"
96 FILES_qte-font-smoothtimes = "${palmtopdir}/lib/fonts/smoothtimes*"
97 RDEPENDS_qte-font-smoothtimes = "qte-fonts-common"
98 pkg_postinst_qte-font-smoothtimes() {
100 if [ -n "$D" ]; then exit 1; fi
103 ${sbindir}/update-qtfontdir
105 pkg_postrm_qte-font-smoothtimes() {
107 if [ -n "$D" ]; then exit 1; fi
110 ${sbindir}/update-qtfontdir -f
113 PACKAGES += "qte-font-smallsmooth"
114 PROVIDES += "qte-font-smallsmooth"
115 FILES_qte-font-smallsmooth = "${palmtopdir}/lib/fonts/smallsmooth*"
116 RDEPENDS_qte-smallsmooth = "qte-fonts-common"
117 pkg_postinst_qte-font-smallsmooth() {
119 if [ -n "$D" ]; then exit 1; fi
122 ${sbindir}/update-qtfontdir
124 pkg_postrm_qte-font-smallsmooth() {
126 if [ -n "$D" ]; then exit 1; fi
129 ${sbindir}/update-qtfontdir -f
132 PACKAGES += "qte-font-unicode"
133 PROVIDES += "qte-font-unicode"
134 FILES_qte-font-unicode = "${palmtopdir}/lib/fonts/unifont*.qpf"
135 RDEPENDS_qte-font-unicode = "qte-fonts-common"
136 pkg_postinst_qte-font-unicode() {
138 if [ -n "$D" ]; then exit 1; fi
141 ${sbindir}/update-qtfontdir
143 pkg_postrm_qte-font-unicode() {
145 if [ -n "$D" ]; then exit 1; fi
148 ${sbindir}/update-qtfontdir -f
151 PACKAGES += "qte-font-micro"
152 PROVIDES += "qte-font-micro"
153 FILES_qte-font-micro = "${palmtopdir}/lib/fonts/micro*.qpf"
154 #RDEPENDS_qte-font-micro = "qte-fonts-common"
155 pkg_postinst_qte-font-micro() {
157 if [ -n "$D" ]; then exit 1; fi
160 ${sbindir}/update-qtfontdir
162 pkg_postrm_qte-font-micro() {
164 if [ -n "$D" ]; then exit 1; fi
167 ${sbindir}/update-qtfontdir -f
170 # Not in the QtE/3 tar file:
171 #PACKAGES += "qte-font-lcd"
172 #PROVIDES += "qte-font-lcd"
173 #RDEPENDS_qte-font-lcd = "qte-fonts-common"
174 #FILES_qte-font-lcd = "${palmtopdir}/lib/fonts/lcd*"
175 #pkg_postinst_qte-font-lcd () {
177 #if [ -n "$D" ]; then exit 1; fi
180 #${sbindir}/update-qtfontdir
182 #pkg_postrm_qte-font-lcd() {
184 #if [ -n "$D" ]; then exit 1; fi
187 #${sbindir}/update-qtfontdir -f
190 # Not in the QtE/3 tar file:
191 #PACKAGES += "qte-font-japanese"
192 #PROVIDES += "qte-font-japanese"
193 #FILES_qte-font-japanese = "${palmtopdir}/lib/fonts/japanese*"
194 #RDEPENDS_qte-font-japanese = "qte-fonts-common"
195 #pkg_postinst_qte-font-japanese() {
197 #if [ -n "$D" ]; then exit 1; fi
200 #${sbindir}/update-qtfontdir
202 #pkg_postrm_qte-font-japanese() {
204 #if [ -n "$D" ]; then exit 1; fi
207 #${sbindir}/update-qtfontdir -f
210 # Not in the QtE/3 tar file:
211 #PACKAGES += "qte-font-courier"
212 #PROVIDES += "qte-font-courier"
213 #FILES_qte-font-courier = "${palmtopdir}/lib/fonts/cour*"
214 #RDEPENDS_qte-font-courier = "qte-fonts-common"
215 #pkg_postinst_qte-font-courier() {
217 #if [ -n "$D" ]; then exit 1; fi
220 #${sbindir}/update-qtfontdir
222 #pkg_postrm_qte-font-courier() {
224 #if [ -n "$D" ]; then exit 1; fi
227 #${sbindir}/update-qtfontdir -f