zig-binary
Declared Dependencies
None
Probed Makefile variables (Linux zig 64-bit)
| Variable (in eval order) | Evaluated setting |
PATH | /bin |
PKGNAME | zig |
PKGVER | 0.16.0 |
PKGBLD | +officialbinary |
OSTYPE | linux |
_DETPLAT_STR | Linux |
MACHINE | x86_64 |
HB_ZIG_TARGET | x86_64-linux-musl |
PACKAGE | /zig-0.16.0+officialbinary.hbpk |
SRCURL | https://ziglang.org/download/0.16.0 |
WORKDIR | zig-x86_64-linux-0.16.0 |
SOURCES | zig-x86_64-linux-0.16.0.tar.xz |
_MKLINK | cd ../dest/bin && ln -f -s ../usr/share/zig/zig |
PROVIDES | zig |
Probed Makefile variables (Windows zig 64-bit)
| Variable (in eval order) | Evaluated setting |
PATH | /bin:/usr/share/zig |
MSYSTEM | MINGW64 |
PKGNAME | zig |
PKGVER | 0.16.0 |
PKGBLD | +officialbinary |
OSTYPE | windows |
_DETPLAT_STR | Msys |
HBPK_CC_FAMILY | CC=clang CXX=clang++ |
MACHINE | x86_64 |
HB_ZIG_TARGET | x86_64-windows-gnu |
HBPK_VCPKG_TARGET | x64-windows |
PACKAGE | /zig-0.16.0+officialbinary.hbpk |
SRCURL | https://ziglang.org/download/0.16.0 |
WORKDIR | zig-x86_64-windows-0.16.0 |
SOURCES | zig-x86_64-windows-0.16.0.zip |
_MKLINK | cd .. && cp zig dest/bin |
PROVIDES | zig |
Makefile Header Source
PKGNAME = zig
PKGVER = 0.16.0
PKGBLD = +officialbinary
TOPDIR = ../..
OSTYPE = $(shell uname -o | sed --e 's/GNU\///' --e 's/Linux/linux/' --e 's/Msys/windows/')
ifneq ($(findstring Darwin,$(shell uname)),)
OSTYPE = macos
endif
# SRCURL = https://ziglang.org/builds
# PKGVER = 0.16.0-dev.2261+d6b3dd25a
# updated version needed for CommonCrypto headers (minimum build for macOS)
include $(TOPDIR)/common.mk
ifeq ($(OSTYPE),windows)
ifeq ($(MACHINE),i686)
MACHINE = x86
endif
ifeq ($(MACHINE),aarch64)
PKGVER = 0.15.2
endif
endif
# include pmgr.mk after all PKG* vars
include $(TOPDIR)/pmgr.mk
SRCURL = https://ziglang.org/download/$(PKGVER)
WORKDIR = $(PKGNAME)-$(MACHINE)-$(OSTYPE)-$(PKGVER)
ifeq ($(OSTYPE),windows)
SOURCES = $(WORKDIR).zip
_MKLINK = cd .. && cp zig dest/bin
else
SOURCES = $(WORKDIR).tar.xz
_MKLINK = cd ../dest/bin && ln -f -s ../usr/share/zig/zig
endif
do-fetch: std-fetch
do-extract: std-extract
do-patch: #fix-configure
do-config:
do-build:
do-pkginst:
mkdir -p dest/bin && mkdir -p dest/usr/share/zig
cp ar cc clang clang++ cxx c++ objcopy ranlib rc ar.bat ranlib.bat windres-rc dest/bin
cd $(WORKDIR) && cp -r * ../dest/usr/share/zig && $(_MKLINK)