Skip to content

Commit 6c86c33

Browse files
authored
Add mojo-raylib bindings (#260)
* Add mojo-raylib bindings * Update git rev * Recipe syntax fix * Missing X11 deps * Limit deps to linux
1 parent 8a2b892 commit 6c86c33

2 files changed

Lines changed: 74 additions & 0 deletions

File tree

recipes/mojo_raylib/image.png

42.9 KB
Loading

recipes/mojo_raylib/recipe.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
2+
context:
3+
version: "0.1.0"
4+
mojo_version: "=0.26.2"
5+
rev: "60aca7901fe2a87dc7da94afb70ea11bb218803e"
6+
7+
package:
8+
name: "mojo_raylib"
9+
version: ${{ version }}
10+
11+
source:
12+
- git: https://github.com/kivicode/mojo-raylib.git
13+
rev: ${{ rev }}
14+
15+
build:
16+
number: 0
17+
script:
18+
interpreter: bash
19+
content:
20+
- |
21+
set -euo pipefail
22+
bash shim/build.sh
23+
mkdir -p "${PREFIX}/lib/mojo"
24+
mojo package mojo_raylib -o "${PREFIX}/lib/mojo/mojo_raylib.mojopkg"
25+
26+
requirements:
27+
build:
28+
- ${{ compiler('c') }}
29+
- cmake
30+
- ninja
31+
host:
32+
- mojo-compiler ${{ mojo_version }}
33+
- if: linux
34+
then:
35+
- xorg-xorgproto
36+
- xorg-libx11
37+
- xorg-libxrandr
38+
- xorg-libxinerama
39+
- xorg-libxcursor
40+
- xorg-libxi
41+
- xorg-libxext
42+
- libgl-devel
43+
run:
44+
- mojo-compiler ${{ mojo_version }}
45+
- if: linux
46+
then:
47+
- xorg-libx11
48+
- xorg-libxrandr
49+
- xorg-libxinerama
50+
- xorg-libxcursor
51+
- xorg-libxi
52+
- xorg-libxext
53+
- libgl
54+
55+
tests:
56+
- script:
57+
- if: unix
58+
then:
59+
- mojo --version
60+
requirements:
61+
run:
62+
- mojo ${{ mojo_version }}
63+
64+
about:
65+
homepage: https://github.com/kivicode/mojo-raylib
66+
license: Zlib
67+
summary: |
68+
Auto-generated Mojo bindings for raylib (2D/3D graphics library)
69+
repository: https://github.com/kivicode/mojo-raylib
70+
71+
extra:
72+
maintainers:
73+
- kivicode
74+
project_name: mojo_raylib

0 commit comments

Comments
 (0)