graphics/shaderc 2026.1 MidnightBSD
GLSL/HLSL to SPIR-V shader compiler
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- Apache-2.0
- Categories
- graphics, devel
Description
A library and command line tool for compiling GLSL/HLSL to SPIR-V, Vulkan's shader language.
Based on the reference glslang compiler, Shaderc aims to provide a more convenient command-line compiler with GCC/clang-like usage and a library with a more stable API.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | graphics/shaderc | 2026.1 |
| FreeBSD | graphics/shaderc | 2026.4_1 |
| OpenBSD | graphics/shaderc | 2025.5p0 |
| NetBSD | graphics/shaderc | 2026.3nb2 |
| DragonFly | graphics/shaderc | 2025.1 |
| HardenedBSD | graphics/shaderc | 2026.4 |
| GhostBSD | graphics/shaderc | 2026.4 |
Install
Binary package:
mport install shaderc
From mports:
cd /usr/mports/graphics/shaderc && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= shaderc>0:graphics/shaderc
LIB_DEPENDS= libshaderc_shared.so:graphics/shaderc
Dependencies
As this port's Makefile names them.
Build 2
glslang>0: graphics/glslangspirv-tools>0: graphics/spirv-tools
Test 1
googletest>0: devel/googletest
Build dependencies 2
Required by 1
Configuration
Options name: graphics_shaderc
| Option | Default | Description |
|---|---|---|
| DOCS | off |
- USES
- cmake:testing compiler:c++11-lib localbase:ldflags python:build shebangfix
- Service scripts
- none
Files
pkg-plist 13
- bin/glslc
- include/shaderc/env.h
- include/shaderc/shaderc.h
- include/shaderc/shaderc.hpp
- include/shaderc/status.h
- include/shaderc/visibility.h
- lib/libshaderc.a
- lib/libshaderc_combined.a
- lib/libshaderc_shared.so
- lib/libshaderc_shared.so.1
- libdata/pkgconfig/shaderc.pc
- libdata/pkgconfig/shaderc_combined.pc
- libdata/pkgconfig/shaderc_static.pc
distinfo 2
| File | Size | SHA256 |
|---|---|---|
| google-shaderc-v2026.1_GH0.tar.gz | 229148 | 245002feccbe7f8361b223545a5654cea69780745886872d7efff50a38d96c66 |
| KhronosGroup-SPIRV-Headers-1.5.4.raytracing.fixed-461-g04f10f6_GH0.tar.gz | 561518 | e80ea5fb765506024dc9d7dbdd797acbdcd19ba2f6c2845d7b099a03282026a3 |