Add raylib 5.0.0

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc
2024-01-13 22:08:03 +01:00
parent 0cba40d5fa
commit 553beabe23
2 changed files with 88 additions and 0 deletions

View File

@@ -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 = "5.0.0"
#PN = "raylib-cpp"
PR = "r0"
# Last commit for raylib-cpp 5.0.0
SRCREV = "34748ebbecdeaa1868eb2985e8679ba11df84b96"
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"

View File

@@ -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 5.0.0
SRCREV = "ae50bfa2cc569c0f8d5bc4315d39db64005b1b08"
#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 = ""