[oe-commits] org.oe.dev fltk-chess: new recipe. Partly closes 429.
mad_soft commit
oe at amethyst.openembedded.net
Mon May 26 14:40:17 UTC 2008
fltk-chess: new recipe. Partly closes 429.
* commit by Laibsch
Author: mad_soft at inbox.ru
Branch: org.openembedded.dev
Revision: b116a050ba36ba3406b3a8b342e36d24bdd70231
ViewMTN: http://monotone.openembedded.org/revision/info/b116a050ba36ba3406b3a8b342e36d24bdd70231
Files:
1
packages/gnuchess/files
packages/gnuchess/files/fix_cast_error_and_gnuchess_exec.patch
packages/gnuchess/files/fltk-chess.desktop
packages/gnuchess/fltk-chess_0.5.bb
Diffs:
#
# mt diff -r0374c8d14173adfe68fcd103e610a07371492b3a -rb116a050ba36ba3406b3a8b342e36d24bdd70231
#
#
#
# add_dir "packages/gnuchess/files"
#
# add_file "packages/gnuchess/files/fix_cast_error_and_gnuchess_exec.patch"
# content [c4ee7d6bc3f59af451b5c84b4cc1f8fc4f13259f]
#
# add_file "packages/gnuchess/files/fltk-chess.desktop"
# content [53530f8f2aabaffce3af6c8d6ca1e8567e00f1c3]
#
# add_file "packages/gnuchess/fltk-chess_0.5.bb"
# content [2e6758f4c15c42675e25ed3abbe4d959ae3a3864]
#
============================================================
--- packages/gnuchess/files/fix_cast_error_and_gnuchess_exec.patch c4ee7d6bc3f59af451b5c84b4cc1f8fc4f13259f
+++ packages/gnuchess/files/fix_cast_error_and_gnuchess_exec.patch c4ee7d6bc3f59af451b5c84b4cc1f8fc4f13259f
@@ -0,0 +1,23 @@
+diff -Naur fltk-chess.orig/fltk-chess.cxx fltk-chess/fltk-chess.cxx
+--- fltk-chess.orig/fltk-chess.cxx 2005-08-25 01:42:28.000000000 +0400
++++ fltk-chess/fltk-chess.cxx 2008-05-17 19:26:57.000000000 +0400
+@@ -705,8 +705,8 @@
+
+ void cb_P(Fl_Widget * ob, void *p)
+ {
+-
+- changeP = (char) p;
++ int temp_p = (int) p;
++ changeP = (char) temp_p;
+ }
+
+
+@@ -881,7 +881,7 @@
+ // close(fdFrom[0]);
+ // close(fdFrom[1]);
+
+- execl("./gnuchess", NULL);
++ execl("/bin/sh", "/bin/sh", "-c", "exec gnuchess", NULL);
+
+ } else {
+
============================================================
--- packages/gnuchess/files/fltk-chess.desktop 53530f8f2aabaffce3af6c8d6ca1e8567e00f1c3
+++ packages/gnuchess/files/fltk-chess.desktop 53530f8f2aabaffce3af6c8d6ca1e8567e00f1c3
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=FLTK Chess
+Comment=FLTK frontend to GNUchess
+Exec=fltk-chess
+Type=Application
+Icon=fltk-chess
+Categories=Game;BoardGame;
============================================================
--- packages/gnuchess/fltk-chess_0.5.bb 2e6758f4c15c42675e25ed3abbe4d959ae3a3864
+++ packages/gnuchess/fltk-chess_0.5.bb 2e6758f4c15c42675e25ed3abbe4d959ae3a3864
@@ -0,0 +1,33 @@
+DESCRIPTION = "fltk-chess is a frontend for the Gnuchess chess playing engine."
+AUTHOR = "Andreas Holzer <a.holzer at cheese.at>"
+SECTION = "x11/games"
+PRIORITY = "optional"
+LICENSE = "GPL"
+DEPENDS = "fltk"
+RDEPENDS = "gnuchess"
+
+
+SRC_URI = "http://members.cheese.at/woody/fltk-chess/fltk-chess-${PV}.tgz \
+ file://fix_cast_error_and_gnuchess_exec.patch;patch=1 \
+ file://fltk-chess.desktop"
+S = "${WORKDIR}/fltk-chess/"
+
+
+do_compile() {
+ `fltk-config --cxx --cxxflags --ldflags --use-images` -o fltk-chess \
+ fltk-chess.cxx
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -d ${D}${datadir}/pixmaps/fltk-chess/
+ install -d ${D}${datadir}/applications/
+ install -m 0755 ${S}/fltk-chess ${D}${bindir}
+ install -m 0644 ${S}/bitmaps/*.pnx ${D}${datadir}/pixmaps/fltk-chess/
+ install -m 0644 ${S}/bitmaps/{user,computer}.png \
+ ${D}${datadir}/pixmaps/fltk-chess/
+ install -m 0644 ${S}/bitmaps/fltk-chess.png ${D}${datadir}/pixmaps/
+ install -m 0644 ${WORKDIR}/fltk-chess.desktop ${D}${datadir}/applications/
+}
+
+
More information about the Openembedded-commits
mailing list