diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-08-17 23:04:38 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-08-22 19:43:32 +0300 |
commit | b48b7b4109868a8c0ddda090992e936e821c7ea6 (patch) | |
tree | 696be8ea782f2548c0f63bb0188f4c8d3eeed681 /import-layers/meta-openembedded/meta-oe/recipes-navigation/orrery | |
parent | d849ec78de728ef9a2d383b92ccfeabf40f8f1d0 (diff) | |
download | openbmc-b48b7b4109868a8c0ddda090992e936e821c7ea6.tar.xz |
Squashed 'import-layers/meta-openembedded/' content from commit 247b126
Change-Id: I40827e9ce5fba63f1cca2a0be44976ae8383b4c0
git-subtree-dir: import-layers/meta-openembedded
git-subtree-split: 247b1267bbe95719cd4877d2d3cfbaf2a2f4865a
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'import-layers/meta-openembedded/meta-oe/recipes-navigation/orrery')
3 files changed, 91 insertions, 0 deletions
diff --git a/import-layers/meta-openembedded/meta-oe/recipes-navigation/orrery/orrery/orrery.png b/import-layers/meta-openembedded/meta-oe/recipes-navigation/orrery/orrery/orrery.png Binary files differnew file mode 100644 index 000000000..d9865b70c --- /dev/null +++ b/import-layers/meta-openembedded/meta-oe/recipes-navigation/orrery/orrery/orrery.png diff --git a/import-layers/meta-openembedded/meta-oe/recipes-navigation/orrery/orrery/use.GdkPixbuf.patch b/import-layers/meta-openembedded/meta-oe/recipes-navigation/orrery/orrery/use.GdkPixbuf.patch new file mode 100644 index 000000000..92d194de0 --- /dev/null +++ b/import-layers/meta-openembedded/meta-oe/recipes-navigation/orrery/orrery/use.GdkPixbuf.patch @@ -0,0 +1,59 @@ +From: Benjamin Deering +Subject: orrery crashing X +Date: Thursday, September 2, 2010 - 5:25 pm +Link: http://kerneltrap.org/mailarchive/openmoko-community/2010/9/3/13218 + +diff -uNr orrery.orig//orrery.c orrery/orrery.c +--- orrery.orig//orrery.c 2009-11-30 06:59:44.000000000 +0100 ++++ orrery/orrery.c 2010-11-15 22:33:17.000000000 +0100 +@@ -1238,12 +1238,44 @@ + } + currentEntry = currentEntry->forwardPointer; + } +- if (nDarkGreyPoints > 0) +- gdk_draw_points(pixmap, darkGreyGC, darkGreyPoints, nDarkGreyPoints); +- if (nGreyPoints > 0) +- gdk_draw_points(pixmap, greyGC, greyPoints, nGreyPoints); +- if (nWhitePoints > 0) +- gdk_draw_points(pixmap, whiteGC, whitePoints, nWhitePoints); ++ GdkPixbuf* starDrawingBuf = gdk_pixbuf_get_from_drawable( NULL, ++ pixmap, ++ gdk_colormap_get_system() ++ , 0, 0, 0, 0, displayWidth, displayHeight); ++ g_assert (gdk_pixbuf_get_bits_per_sample (starDrawingBuf) == 8); ++ guchar* p; ++ int rowstride = gdk_pixbuf_get_rowstride (starDrawingBuf); ++ guchar* pixels = gdk_pixbuf_get_pixels (starDrawingBuf); ++ int n_channels = gdk_pixbuf_get_n_channels (starDrawingBuf); ++ GdkGCValues starGCval; ++ GdkColor starColor; ++ int pointNum; ++ gdk_gc_get_values(darkGreyGC, &starGCval); ++ gdk_colormap_query_color( gdk_gc_get_colormap(darkGreyGC),starGCval.foreground.pixel, &starColor ); ++ for( pointNum = 0; pointNum < nDarkGreyPoints; pointNum++) { ++ p = pixels + darkGreyPoints[pointNum].y * rowstride + darkGreyPoints[pointNum].x * n_channels; ++ p[0] = starColor.red & 0xff; ++ p[1] = starColor.green & 0xff; ++ p[2] = starColor.blue & 0xff; ++ } ++ gdk_gc_get_values(greyGC, &starGCval); ++ gdk_colormap_query_color( gdk_gc_get_colormap(greyGC), starGCval.foreground.pixel, &starColor ); ++ for( pointNum = 0; pointNum < nGreyPoints; pointNum++) { ++ p = pixels + greyPoints[pointNum].y * rowstride + greyPoints[pointNum].x * n_channels; ++ p[0] = starColor.red & 0xff; ++ p[1] = starColor.green & 0xff; ++ p[2] = starColor.blue & 0xff; ++ } ++ gdk_gc_get_values(whiteGC, &starGCval); ++ gdk_colormap_query_color( gdk_gc_get_colormap(whiteGC), starGCval.foreground.pixel, &starColor ); ++ for( pointNum = 0; pointNum < nWhitePoints; pointNum++) { ++ p = pixels + whitePoints[pointNum].y * rowstride + whitePoints[pointNum].x * n_channels; ++ p[0] = starColor.red & 0xff; ++ p[1] = starColor.green & 0xff; ++ p[2] = starColor.blue & 0xff; ++ } ++ gdk_draw_pixbuf ( pixmap , NULL , starDrawingBuf, ++ 0, 0, 0, 0, displayWidth, displayHeight, GDK_RGB_DITHER_NORMAL, 0, 0 ) ; + } + + void makeTimeString(char *string) diff --git a/import-layers/meta-openembedded/meta-oe/recipes-navigation/orrery/orrery_2.7.bb b/import-layers/meta-openembedded/meta-oe/recipes-navigation/orrery/orrery_2.7.bb new file mode 100644 index 000000000..40a6df3c9 --- /dev/null +++ b/import-layers/meta-openembedded/meta-oe/recipes-navigation/orrery/orrery_2.7.bb @@ -0,0 +1,32 @@ +SUMMARY = "Astronomical application which displays the night sky" +HOMEPAGE = "http://projects.openmoko.org/projects/orrery/" +SECTION = "x11/scientific" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://orrery.c;endline=25;md5=d792bdf2b591972da175aecc38d88cfe" +DEPENDS = "gtk+" + +inherit autotools-brokensep pkgconfig + +SRC_URI = "http://projects.openmoko.org/frs/download.php/923/orrery_2.7_clean.tar.gz \ + file://orrery.png \ + file://use.GdkPixbuf.patch \ +" + +SRC_URI[md5sum] = "bd62a33e7554ee1030313dfcdefcda8b" +SRC_URI[sha256sum] = "645166a5e05b2064ab630534a514697fc47b681951e7fe1d635c259cbdf7a5e6" + +S = "${WORKDIR}/${BPN}" + +do_configure_prepend() { + # fix DSO issue with binutils-2.22 + sed -i 's/ -lrt/ -lrt -lm/g' ${S}/Makefile.am +} +do_install_append() { + install -d ${D}${datadir}/orrery + cp -R --no-dereference --preserve=mode,links -v ${S}/data/* ${D}${datadir}/orrery + chown -R root:root ${D}${datadir}/orrery + install -d ${D}${datadir}/icons + install -m 0755 ${WORKDIR}/orrery.png ${D}${datadir}/icons +} + +FILES_${PN} += "${datadir}/icons/orrery.png" |