BSD Ports

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

SystemPortVersion
MidnightBSDgraphics/shaderc2026.1
FreeBSDgraphics/shaderc2026.4_1
OpenBSDgraphics/shaderc2025.5p0
NetBSDgraphics/shaderc2026.3nb2
DragonFlygraphics/shaderc2025.1
HardenedBSDgraphics/shaderc2026.4
GhostBSDgraphics/shaderc2026.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

Test 1

Build dependencies 2
Required by 1

Configuration

Options name: graphics_shaderc

OptionDefaultDescription
DOCSoff
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
FileSizeSHA256
google-shaderc-v2026.1_GH0.tar.gz229148245002feccbe7f8361b223545a5654cea69780745886872d7efff50a38d96c66
KhronosGroup-SPIRV-Headers-1.5.4.raytracing.fixed-461-g04f10f6_GH0.tar.gz561518e80ea5fb765506024dc9d7dbdd797acbdcd19ba2f6c2845d7b099a03282026a3