From 0cba40d5fa62c343d4e5655c6161c0f6bb09c66b Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Sat, 4 Nov 2023 18:16:37 +0100 Subject: [PATCH] Add files Add raylib files Signed-off-by: Bensuperpc --- COPYING.MIT | 17 ++++++ LICENSE | 0 conf/layer.conf | 15 ++++++ recipes-raylib/raylib-cpp/raylib-cpp_4.5.2.bb | 34 ++++++++++++ recipes-raylib/raylib/raylib_4.5.0.bb | 54 +++++++++++++++++++ 5 files changed, 120 insertions(+) create mode 100755 COPYING.MIT mode change 100644 => 100755 LICENSE create mode 100755 conf/layer.conf create mode 100644 recipes-raylib/raylib-cpp/raylib-cpp_4.5.2.bb create mode 100644 recipes-raylib/raylib/raylib_4.5.0.bb diff --git a/COPYING.MIT b/COPYING.MIT new file mode 100755 index 0000000..fb950dc --- /dev/null +++ b/COPYING.MIT @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/conf/layer.conf b/conf/layer.conf new file mode 100755 index 0000000..d56da32 --- /dev/null +++ b/conf/layer.conf @@ -0,0 +1,15 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "meta-raylib" +BBFILE_PATTERN_meta-raylib = "^${LAYERDIR}/" +BBFILE_PRIORITY_meta-raylib = "12" + +LAYERDEPENDS_meta-raylib = "core" +LAYERSERIES_COMPAT_meta-raylib = "dunfell kirkstone scarthgap mickledore" +LAYERVERSION_meta-raylib = "1" +# LICENSE_PATH += "${LAYERDIR}/licenses" diff --git a/recipes-raylib/raylib-cpp/raylib-cpp_4.5.2.bb b/recipes-raylib/raylib-cpp/raylib-cpp_4.5.2.bb new file mode 100644 index 0000000..4b92d90 --- /dev/null +++ b/recipes-raylib/raylib-cpp/raylib-cpp_4.5.2.bb @@ -0,0 +1,34 @@ +SUMMARY = "raylib-cpp" +DESCRIPTION = "raylib-cpp" +AUTHOR = "RobLoach" +SECTION = "graphics" +HOMEPAGE = "https://github.com/RobLoach/raylib-cpp" + +LICENSE = "Zlib" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Zlib;md5=87f239f408daca8a157858e192597633" +#PV = "4.5.2" +#PN = "raylib-cpp" +PR = "r0" + +# Last commit for raylib-cpp 4.5.2 +SRCREV = "7d2ce8fc565ed2023521fad34351633bbf66dec4" +SRCBRANCH = "master" + +SRC_URI = "git://github.com/RobLoach/raylib-cpp.git;branch=${SRCBRANCH};protocol=https \ + " +S = "${WORKDIR}/git" + +DEPENDS += " \ + raylib \ +" + +# Header only library +ALLOW_EMPTY:${PN} = "1" + +RPROVIDES:${PN} += "raylib-cpp-${PV}" +PROVIDES += "raylib-cpp-${PV}" + +inherit cmake + +# -DCMAKE_INSTALL_PREFIX=/usr +EXTRA_OECMAKE += "-DBUILD_RAYLIB_CPP_EXAMPLES=OFF" diff --git a/recipes-raylib/raylib/raylib_4.5.0.bb b/recipes-raylib/raylib/raylib_4.5.0.bb new file mode 100644 index 0000000..2172b4b --- /dev/null +++ b/recipes-raylib/raylib/raylib_4.5.0.bb @@ -0,0 +1,54 @@ +SUMMARY = "raylib" +DESCRIPTION = "raylib" +AUTHOR = "raysan5" +SECTION = "graphics" +HOMEPAGE = "https://www.raylib.com/" + +LICENSE = "Zlib" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Zlib;md5=87f239f408daca8a157858e192597633" +#PV = "4.5.0" +#PN = "raylib" +PR = "r0" + +# Last commit for raylib 4.5.0 +SRCREV = "fec96137e8d10ee6c88914fbe5e5429c13ee1dac" +#SRCREV = "${AUTOREV}" +SRCBRANCH = "master" + +SRC_URI = "git://github.com/raysan5/raylib.git;branch=${SRCBRANCH};protocol=https \ + " +S = "${WORKDIR}/git" + +DEPENDS += " \ + libxinerama \ + libxrandr \ + libxcursor \ + xinput \ + freeglut \ + libglu \ + alsa-lib \ +" + +RDEPENDS:${PN} += " \ + libxinerama \ + libxrandr \ + libxcursor \ + xinput \ + freeglut \ + libglu \ + alsa-lib \ +" +# RRECOMMENDS:${PN} = + +RPROVIDES:${PN} += "raylib-${PV}" +PROVIDES += "raylib-${PV}" + +#COMPATIBLE_HOST = "(i.86|x86_64).*-linux" + +inherit features_check +REQUIRED_DISTRO_FEATURES = "opengl" + +inherit cmake + +EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -DWITH_PIC=ON" +#EXTRA_OECMAKE:append:riscv64 = ""