1 DESCRIPTION
= "Standard Gtk+ icon theme for the Openmoko framework, QVGA edition"
2 SECTION
= "openmoko/base"
3 DEPENDS
= "imagemagick-native librsvg-native"
5 PV
= "0.1.0+svnr${SRCPV}"
8 EXCLUDE_FROM_WORLD
= "1"
12 SRC_URI
= "svn://svn.openmoko.org/trunk/src/target/OM-2007.2/artwork/;module=icons;proto=http"
13 S
= "${WORKDIR}/icons"
15 pkg_postinst_$
{PN
} () {
16 if [ "x$D" != "x" ]; then
19 gtk
-update
-icon
-cache
-q
/usr
/share
/icons
/openmoko
-standard
22 do_configure_prepend
() {
25 # don't
include 36x36
and 128x128 icons
, 32x32
and 48x48 stock icons
27 sed
-i
-e
"/\(36\|128\)/d" -e
"/\(32\|48\)\/stock/d" configure.ac
29 sed
-i
-e
"s/\(36x36\|128x128\) //g" Makefile.am
30 sed
-i
"/^SUBDIRS=/s/ stock//" {32x32
,48x48
}/Makefile.am
32 # rescale stock icons
to 22x22
34 for png in $
(ls
*/stock
/*.png | sed
"s,.*/,," | sort | uniq
); do
35 svg
=scalable
/stock
/$
(basename $png .png
).svg
39 #
if there are vector
graphics, rerender
41 rsvg
-w
22 -h
22 $svg $out
44 # otherwise rescale biggest existing bitmap
46 png
=$
(echo
*/stock
/$png | sed
"s/.* //")
47 convert
-scale
22x22 $png $out
51 # register the rescaled icons with automake
54 sed
-i
"/^icons_DATA/s/=.*/= $(echo *.png)/" Makefile.am