Raylib is a programming library to learn videogames programming.
It doesn't have a fancy interface, has no visual helpers, and no auto-debugging.
It is created based on the believe that just coding is the best way to learn.
Raylib is highly inspired by Borland BGI graphics lib and by XNA framework.
Allegro and SDL have also been used as reference.
devel/raylib: Switch to SDL backend, Fix high audio latency on FreeBSD (OSS
backend)
SDL has better Gamepad Support.
On FreeBSD, raylib (via miniaudio) defaults to a massive buffer size
when using the OSS backend. My logs show a "Periods size" of 32768
samples, which creates a latency of ~680ms at 48kHz. This makes the
library unusable for real-time applications and games on FreeBSD.
Patch the bundled src/external/miniaudio.h to force a lower latency
specifically for the OSS driver. By setting the default period size to
10ms and the period count to 2, the latency is reduced to ~10ms without
audio dropouts.
PR: 294647294627
Tested by: Chédotal Julien <rjdi@wanadoo.fr>
Sponsored by: UNIS Labs
Co-authored-by: Chédotal Julien <rjdi@wanadoo.fr>
Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
MFH: 2026Q2
devel/raylib: mark as broken on arm7
In file included from
/wrkdirs/usr/ports/devel/raylib/work/raylib-5.0/src/rtextures.c:216:
/wrkdirs/usr/ports/devel/raylib/work/raylib-5.0/src/external/stb_image_resize2.h:2422:22:
error: implicit declaration of function 'vld1q_f16' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
float16x8_t in = vld1q_f16(input);
^
Upstream bug report: https://github.com/nothings/stb/issues/1650
PR: 279369
MFH: 2024Q3
devel/raylib: Update to 5.0
While here,
- pet Q/A check by using opengl instead of gl in USE_GL
- avoid unnecessary removal of bundled glfw as USE_EXTERNAL_GLFW is ON
ChangeLog: https://github.com/raysan5/raylib/blob/master/CHANGELOG
PR: 277282
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.
PR: 246767
Reviewed by: manu, bapt
Approved by: x11
Differential Revision: https://reviews.freebsd.org/D30824
devel/raylib: Package right .so version (3.5.0)
It turned out that the version raylib 3.7.0 produces .so
version 3.5.0 (as submitted in original PR)
This will be discussed with upstream, but for now, fix the
build by using the version(s) produced by the build.
PR: 256428
devel/raylib: Update to 3.7.0
Committing slightly modified version, providing for less
work in future updates, in line with what was introduced
in update to 3.5.0.
PR: 256428
devel/raylib: Update to 3.5.0
Changelog at https://github.com/raysan5/raylib/blob/3.5.0/CHANGELOG
And while here, also move PLIST_FILES to pkg-plist and reformat
Makefile according to portfmt and portclippy.
PR: 252382
Submitted by: Martin Filla <freebsd@sysctl.cz> (maintainer)
Reviewed by: swills (mentor)
Approved by: swills (mentor)
Differential Revision: https://reviews.freebsd.org/D28029
devel/raylib: Install missing header files
The header files:
- raymath.h
- rlgl.h
- physac.h
were missing from the installation and pkg-plist.
Also, while here, cleanup some style nits and bump PORTREVISION.
PR: 251819
Submitted by: Martin Filla <freebsd@sysctl.cz> (maintainer)
Reported by: Mattias Wikstrom <burke@yagrebu.net>
Reviewed by: osa (mentor)
Approved by: osa (mentor)
Differential Revision: https://reviews.freebsd.org/D27776
Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".
I tried to only set insource where explictely needed.
PR: 232038
Exp-run by: antoine