BSD Ports

lang/zig 0.16.0 MidnightBSD

Language designed for robustness, optimality, and maintainability

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
7f33ab59d5
License
mit
Categories
lang

Description

Zig is a general purpose programming language designed for robustness, optimality, and maintainability.

In the other systems

The newest version among them is 0.17.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDlang/zig0.16.0 behind since 2026-10-11no data-[email protected]2026-11-05
FreeBSDlang/zig0.17.0 newestnone known-[email protected]2026-11-14
OpenBSDlang/zig0.16.0 behind since 2026-10-11no data-Brandon Mercer <[email protected]>-
NetBSDlang/zig0.16.0 behind since 2026-10-11none known-[email protected]2026-11-11
DragonFlylang/zig0.16.0 behind since 2026-10-11none known-[email protected]-
HardenedBSDlang/zig0.16.0 behind since 2026-10-11no data-[email protected]-
GhostBSDlang/zig0.16.0 behind since 2026-10-11no data-[email protected]-

Compare across BSDs

Version history 1

  1. 0.16.0 7f33ab59d5

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install zig

From mports:

cd /usr/mports/lang/zig && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	zig>0:lang/zig

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Library 1

Build dependencies 1
Run dependencies 1
Required by 1

Configuration

Options name: lang_zig

OptionDefaultDescription
DOCSon
STATICoffsets ZIG_STATIC to avoid 800MiB LLVM runtime dependency
USES
cmake compiler:c++11-lang localbase:ldflags tar:xz
Service scripts
none
Conflicts with
zig0*

Files

distinfo 1
FileSizeSHA256
zig-0.16.0.tar.xz2.250326e+0743186959edc87d5c7a1be7b7d2a25efffd22ce5807c7af99067f86f99641bfdf
Master sites 2
  • https://ziglang.org/download/0.16.0/
  • https://ziglang.org/builds/

Commit history 1

DateCommitCreditsLog message
7f33ab59d5 Lucas Holt lang/zig: add Zig 0.16.0 with MidnightBSD fixes (#2285)
Imports Zig 0.16.0 from the local FreeBSD port and adapts MidnightBSD host detection, compatible FreeBSD version mapping, LLVM tool discovery and staging. Native amd64 static binaries now use FreeBSD ELF emulation. Missing foreign BSD ELF interpreters reach Zig's existing executor fallback instead of aborting the child process. Validated checksums, patch, native compiler build, staging, package contents and the complete unfiltered `test-behavior` target. Native dynamic/static execution passes, while unsupported OpenBSD/NetBSD executions follow the expected skip path. Portlint has no fatal errors. Validation used MidnightBSD 4.2 amd64; stable-release execution remains unverified. ## Summary by Sourcery Add Zig 0.16.0 support with MidnightBSD compatibility and foreign BSD …