Bug 280470

Summary: [new port] devel/librashader: preprocessor, compiler and runtime for RetroArch 'slang' shaders, rewritten in pure Rust
Product: Ports & Packages Reporter: Stefan Schlosser <bsdcode>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Closed FIXED    
Severity: Affects Only Me CC: yuri
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/SnowflakePowered/librashader
Attachments:
Description Flags
port
none
new port devel/librashader
none
new port devel/librashader
none
new port devel/librashader
bsdcode: maintainer-approval+
new port devel/librashader none

Description Stefan Schlosser 2024-07-27 16:27:03 UTC
Created attachment 252322 [details]
port

RetroArch shaders for all

librashader is a preprocessor, compiler and runtime for RetroArch 'slang'
shaders, rewritten in pure Rust. It supports all modern graphics runtimes,
including wgpu, Vulkan, OpenGL 3.3+ and 4.6 (with DSA), Direct3D 11,
Direct3D 12, and Metal.

librashader implements the entire RetroArch shader pipeline and is highly
compatible with existing shaders, e.g. the slang-shaders from libretro.

https://github.com/SnowflakePowered/librashader
Comment 1 Stefan Schlosser 2024-08-09 18:09:08 UTC
Created attachment 252636 [details]
new port devel/librashader

- update to tagged release 0.3.0
- track tagged releases from now on
- remove PLIST_FILES and PORTDOCS from Makefile, keep them listed in pkg-plist instead
- reworked DEBUG and LTO options
- drop -e option from REINPLACE_CMD
- merge post-build target into do-build target
- remove upstreamed patch
- pet portclippy, portfmt, portlint
Comment 2 Stefan Schlosser 2024-08-10 22:57:00 UTC
Created attachment 252671 [details]
new port devel/librashader

Reworked DEBUG and LTO options again ... hopefully the last time. LTO is now solely controlled by the standard ports framework, i.e. it compiles with LTO unless WITHOUT_LTO is defined, see Mk/Uses/cargo.mk.
Comment 3 Stefan Schlosser 2024-08-18 07:11:20 UTC
Created attachment 252867 [details]
new port devel/librashader

add pkg-message
Comment 4 Stefan Schlosser 2024-08-24 08:27:33 UTC
Created attachment 253048 [details]
new port devel/librashader

* update to 0.3.3
* reword pkg-message
* place include/README.md in ${EXAMPLESDIR} instead of ${DOCSDIR}
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2024-08-26 08:20:11 UTC
Committed, thanks!
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-08-26 08:20:55 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5dbd4779453e2f388e6e82e0971f328cf16cd1e2

commit 5dbd4779453e2f388e6e82e0971f328cf16cd1e2
Author:     Stefan Schlosser <bsdcode@disroot.org>
AuthorDate: 2024-08-26 07:38:12 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-08-26 08:20:18 +0000

    devel/librashader: New port: RetroArch shaders for all

    PR:             280470

 devel/Makefile                          |   1 +
 devel/librashader/Makefile (new)        |  76 +++
 devel/librashader/Makefile.crates (new) | 428 ++++++++++++++++
 devel/librashader/distinfo (new)        | 859 ++++++++++++++++++++++++++++++++
 devel/librashader/pkg-descr (new)       |   7 +
 devel/librashader/pkg-message (new)     |  11 +
 devel/librashader/pkg-plist (new)       |   9 +
 7 files changed, 1391 insertions(+)