On 7/5/26 1:52 AM, Daniil Ryvkin wrote:
ZLS 0.16.0, a language server for the Zig programming language.
Tested on openbsd-current amd64.
Looks largely really good to me.
I would suggest
* Add -Dcpu so that the resulting binary runs on more than the CPU of the
ports builder :-)
* Add "--verbose" and "--color off" to make the build log more palatable
* Add -j${MAKE_JOBS}
* I believe ONLY_FOR_ARCHS isn't needed, because those are the zig archs
and if it should be needed, it should go to the top of the Makefile
I built and tested your port with the attached diff, and from what I can
tell, it does what it's supposed to do - with those changes, ok volker@--- Makefile.orig Tue Jul 7 20:47:38 2026
+++ Makefile Tue Jul 7 20:52:19 2026
@@ -19,24 +19,27 @@
# MIT
PERMIT_PACKAGE = Yes
-ONLY_FOR_ARCHS = amd64 arm64 powerpc64
+WANTLIB += c pthread
-WANTLIB += c
-
BUILD_DEPENDS = lang/zig
-KF_HASH = known_folders-0.0.0-Fy-PJk3KAACzUg2us_0JvQQmod1ZA8jBt7MuoKCihq88
-DIFFZ_HASH = diffz-0.0.1-G2tlISzNAQCldmOcINavGmF1zdt20NFPXeM8d07jp_68
-LSP_KIT_HASH = lsp_kit-0.1.0-bi_PL3IyDACfp1xdTnkiOHEok2YpPCCCJHuuOcNzjl1D
+KF_HASH = known_folders-0.0.0-Fy-PJk3KAACzUg2us_0JvQQmod1ZA8jBt7MuoKCihq88
+DIFFZ_HASH = diffz-0.0.1-G2tlISzNAQCldmOcINavGmF1zdt20NFPXeM8d07jp_68
+LSP_KIT_HASH = lsp_kit-0.1.0-bi_PL3IyDACfp1xdTnkiOHEok2YpPCCCJHuuOcNzjl1D
ZIG_PKGDIR = ${WRKBUILD}/zig-packages
MAKE_ENV += ZIG_GLOBAL_CACHE_DIR=${WRKBUILD}/zig-global-cache \
ZIG_LOCAL_CACHE_DIR=${WRKBUILD}/zig-local-cache
+ZIG_CPU = ${ARCH:S/amd64/x86_64/:S/arm64/generic/}
ZIG_FLAGS = --system ${ZIG_PKGDIR} \
--global-cache-dir ${WRKBUILD}/zig-global-cache \
--cache-dir ${WRKBUILD}/zig-local-cache \
+ --color off \
+ --verbose \
+ -j${MAKE_JOBS} \
+ -Dcpu=${ZIG_CPU} \
-Doptimize=ReleaseSafe
post-extract: