From cc5832d4bee6a22c4563bb00f82d1b52d9040ace Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Tue, 26 Jul 2016 16:13:53 -0400 Subject: [PATCH] Add recipes for sdl2-rs --- recipes-graphics/sdl2/sdl2-rs_0.21.0.bb | 12 ++++++++++++ recipes-graphics/sdl2/sdl2-sys_0.21.0.bb | 8 ++++++++ recipes-graphics/sdl2/sdl2.inc | 21 +++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 recipes-graphics/sdl2/sdl2-rs_0.21.0.bb create mode 100644 recipes-graphics/sdl2/sdl2-sys_0.21.0.bb create mode 100644 recipes-graphics/sdl2/sdl2.inc diff --git a/recipes-graphics/sdl2/sdl2-rs_0.21.0.bb b/recipes-graphics/sdl2/sdl2-rs_0.21.0.bb new file mode 100644 index 0000000..8578dd3 --- /dev/null +++ b/recipes-graphics/sdl2/sdl2-rs_0.21.0.bb @@ -0,0 +1,12 @@ +require sdl2.inc + +DEPENDS += "\ + libc-rs \ + lazy-static \ + bitflags \ + rand-rs \ + num \ + sdl2-sys \ + " + +LIB_SRC = "${S}/src/sdl2/lib.rs" diff --git a/recipes-graphics/sdl2/sdl2-sys_0.21.0.bb b/recipes-graphics/sdl2/sdl2-sys_0.21.0.bb new file mode 100644 index 0000000..8e99cce --- /dev/null +++ b/recipes-graphics/sdl2/sdl2-sys_0.21.0.bb @@ -0,0 +1,8 @@ +require sdl2.inc + +DEPENDS += "\ + libc-rs \ + libsdl2 \ + " + +LIB_SRC = "${S}/sdl2-sys/src/lib.rs" diff --git a/recipes-graphics/sdl2/sdl2.inc b/recipes-graphics/sdl2/sdl2.inc new file mode 100644 index 0000000..36f4444 --- /dev/null +++ b/recipes-graphics/sdl2/sdl2.inc @@ -0,0 +1,21 @@ +DESCRIPTION = "SDL2 bindings for Rust" +HOMEPAGE = "https://github.com/AngryLawyer/rust-sdl2" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "\ + file://LICENSE;md5=efab06594070f714e6e655a25c330fcd \ +" + +inherit rust-bin + +SRC_URI = "git://github.com/AngryLawyer/rust-sdl2.git;protocol=https" +SRCREV = "ffdfe48bd90d8c141f1f8a6f38a88243ad78508f" + +S = "${WORKDIR}/git" + +do_compile () { + oe_compile_rust_lib +} + +do_install () { + oe_install_rust_lib +}