disko: update to version 1.7.0
authorHenning Heinold <heinold@inf.fu-berlin.de>
Thu, 14 Oct 2010 20:53:18 +0000 (22:53 +0200)
committerHenning Heinold <heinold@inf.fu-berlin.de>
Thu, 14 Oct 2010 20:54:43 +0000 (22:54 +0200)
recipes/disko/disko_1.7.0.bb [new file with mode: 0644]
recipes/disko/files/mmsfiletransfer.patch [new file with mode: 0644]

diff --git a/recipes/disko/disko_1.7.0.bb b/recipes/disko/disko_1.7.0.bb
new file mode 100644 (file)
index 0000000..7907d7a
--- /dev/null
@@ -0,0 +1,27 @@
+DESCRIPTION = "Disko is an application framework, that can be used to develop GUI applications for embedded devices. It is closely connected to the DirectFB"
+LICENSE = "LGPL"
+PR = "r0"
+
+require disko.inc
+
+DEPENDS += "taglib directfb virtual/libx11 hal libxv libxxf86vm"
+
+SRC_URI = "http://www.diskohq.com/repository/ubuntu/pool/${PN}_${PV}.tar.gz \
+           file://mmsfiletransfer.patch \
+         "
+
+do_compile() {
+    if [ "${SCONS_FIX_ENV}" = "1" ] ; then
+        if grep "toolchain-from-env" ${S}/SConstruct ; then
+            echo "Toolchain overrides already applied"
+        else
+           cat ${STAGING_DATADIR_NATIVE}/scons/toolchain-from-env.SConscript >> ${S}/SConstruct
+        fi
+    fi
+
+    ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} CXX="${CXX}" PREFIX=${prefix} prefix=${prefix} graphics=all || \
+    oefatal "scons build execution failed."
+}
+
+SRC_URI[md5sum] = "23162e567fd980c20ba40b574afd9276"
+SRC_URI[sha256sum] = "9ec9f5c4c03716cc1d24cc8bce252f4d44ce56837e37f1b9cb6ddc44639dedfc"
diff --git a/recipes/disko/files/mmsfiletransfer.patch b/recipes/disko/files/mmsfiletransfer.patch
new file mode 100644 (file)
index 0000000..9e2876d
--- /dev/null
@@ -0,0 +1,13 @@
+Index: disko-1.7.0/src/mmstools/mmsfiletransfer.cpp
+===================================================================
+--- disko-1.7.0.orig/src/mmstools/mmsfiletransfer.cpp  2010-10-14 22:41:29.902763049 +0200
++++ disko-1.7.0/src/mmstools/mmsfiletransfer.cpp       2010-10-14 22:42:12.168591440 +0200
+@@ -92,7 +92,7 @@
+ int progress_callback(void *pclient, double dltotal, double dlnow, double ultotal, double ulnow) {
+-      ((MMSFiletransfer::MMSFiletransfer*) pclient)->progress.emit(dltotal != 0 ? (int) (.5 + 100* dlnow / dltotal) : (int) (.5 + 100* ulnow / ultotal));
++      ((MMSFiletransfer*) pclient)->progress.emit(dltotal != 0 ? (int) (.5 + 100* dlnow / dltotal) : (int) (.5 + 100* ulnow / ultotal));
+       return 0;
+ }