summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/raylib/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/raylib/package.py b/var/spack/repos/builtin/packages/raylib/package.py
new file mode 100644
index 0000000000..3c1543676b
--- /dev/null
+++ b/var/spack/repos/builtin/packages/raylib/package.py
@@ -0,0 +1,31 @@
+# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class Raylib(CMakePackage):
+ """Simple and easy-to-use library for game development and multimedia applications"""
+
+ homepage = "https://www.raylib.com/"
+ url = "https://github.com/raysan5/raylib/archive/refs/tags/5.0.tar.gz"
+ git = "https://github.com/raysan5/raylib.git"
+
+ maintainers("georgemalerbo")
+
+ license("Zlib", checked_by="georgemalerbo")
+
+ version("5.0", sha256="98f049b9ea2a9c40a14e4e543eeea1a7ec3090ebdcd329c4ca2cf98bc9793482")
+
+ # The package includes an llvm variant, which is disabled by default to simplify the build.
+ # If enabled, allows Mesa to utilize software-based OpenGL rendering on systems without a GPU.
+ variant("llvm", default=False, description="Enables LLVM support in Mesa")
+
+ depends_on("cmake@3.11:", type="build")
+ depends_on("glfw", when="platform=linux")
+ depends_on("glfw", when="platform=darwin")
+ depends_on("mesa", when="platform=linux +llvm")
+ depends_on("mesa~llvm", when="platform=linux ~llvm")
+ depends_on("mesa-glu", when="platform=linux")