summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Malerbo <89956051+georgemalerbo@users.noreply.github.com>2024-02-12 04:07:33 -0500
committerGitHub <noreply@github.com>2024-02-12 10:07:33 +0100
commit2369a8f4e5bbf1350e5fce24d770971222d02949 (patch)
tree9a84746dc9515530750f8a378947a1f4488ad55b /var
parenta6844d26e0eb27afa014a57a33deb8f55690b376 (diff)
downloadspack-2369a8f4e5bbf1350e5fce24d770971222d02949.tar.gz
spack-2369a8f4e5bbf1350e5fce24d770971222d02949.tar.bz2
spack-2369a8f4e5bbf1350e5fce24d770971222d02949.tar.xz
spack-2369a8f4e5bbf1350e5fce24d770971222d02949.zip
raylib: add new package (#42594)
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")