Add files
Add raylib files Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
4b742bc7c1
commit
0cba40d5fa
17
COPYING.MIT
Executable file
17
COPYING.MIT
Executable file
|
@ -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.
|
15
conf/layer.conf
Executable file
15
conf/layer.conf
Executable file
|
@ -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"
|
34
recipes-raylib/raylib-cpp/raylib-cpp_4.5.2.bb
Normal file
34
recipes-raylib/raylib-cpp/raylib-cpp_4.5.2.bb
Normal 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 = "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"
|
54
recipes-raylib/raylib/raylib_4.5.0.bb
Normal file
54
recipes-raylib/raylib/raylib_4.5.0.bb
Normal 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 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 = ""
|
Loading…
Reference in New Issue
Block a user