diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/openmoko2/openmoko-icon-theme-standard2-qvga_svn.bb | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/openmoko2/openmoko-icon-theme-standard2-qvga_svn.bb')
-rw-r--r-- | recipes/openmoko2/openmoko-icon-theme-standard2-qvga_svn.bb | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/recipes/openmoko2/openmoko-icon-theme-standard2-qvga_svn.bb b/recipes/openmoko2/openmoko-icon-theme-standard2-qvga_svn.bb new file mode 100644 index 0000000000..e394547fd5 --- /dev/null +++ b/recipes/openmoko2/openmoko-icon-theme-standard2-qvga_svn.bb @@ -0,0 +1,57 @@ +DESCRIPTION = "Standard Gtk+ icon theme for the Openmoko framework, QVGA edition" +SECTION = "openmoko/base" +DEPENDS = "imagemagick-native librsvg-native" +PV = "0.1.0+svnr${SRCREV}" +PR = "r2" + +EXCLUDE_FROM_WORLD = "1" + +inherit openmoko2 + +SRC_URI = "svn://svn.openmoko.org/trunk/src/target/OM-2007.2/artwork/;module=icons;proto=http" +S = "${WORKDIR}/icons" + +pkg_postinst_${PN} () { + if [ "x$D" != "x" ]; then + exit 1 + fi + gtk-update-icon-cache -q /usr/share/icons/openmoko-standard +} + +do_configure_prepend () { + cd ${S} + # + # don't include 36x36 and 128x128 icons, 32x32 and 48x48 stock icons + # + sed -i -e "/\(36\|128\)/d" -e "/\(32\|48\)\/stock/d" configure.ac + cd openmoko-standard + sed -i -e "s/\(36x36\|128x128\) //g" Makefile.am + sed -i "/^SUBDIRS=/s/ stock//" {32x32,48x48}/Makefile.am + # + # rescale stock icons to 22x22 + # + for png in $(ls */stock/*.png | sed "s,.*/,," | sort | uniq); do + svg=scalable/stock/$(basename $png .png).svg + out=22x22/stock/$png + if [ -f $svg ]; then + # + # if there are vector graphics, rerender + # + rsvg -w 22 -h 22 $svg $out + else + # + # otherwise rescale biggest existing bitmap + # + png=$(echo */stock/$png | sed "s/.* //") + convert -scale 22x22 $png $out + fi + done + # + # register the rescaled icons with automake + # + cd 22x22/stock + sed -i "/^icons_DATA/s/=.*/= $(echo *.png)/" Makefile.am + cd ${S} +} + +PACKAGE_ARCH = "all" |