mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
30 lines
836 B
Makefile
30 lines
836 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= zig
|
|
DISTVERSION= 0.6.0
|
|
CATEGORIES= lang
|
|
MASTER_SITES= https://ziglang.org/download/${DISTVERSION}/
|
|
|
|
MAINTAINER= tobik@FreeBSD.org
|
|
COMMENT= Language designed for robustness, optimality, and maintainability
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BROKEN_i386= static_assert failed "static_assert(sizeof(ZigClangAPValue) == sizeof(clang::APValue), "")"
|
|
IGNORE_FreeBSD_11= expects getrandom(2) which is unavailable on FreeBSD < 12.0
|
|
|
|
_LLVM_VER= 10
|
|
BUILD_DEPENDS= llvm${_LLVM_VER}>=0:devel/llvm${_LLVM_VER}
|
|
|
|
USES= cmake compiler:c++11-lang shebangfix tar:xz
|
|
SHEBANG_FILES= lib/libcxxabi/src/demangle/cp-to-llvm.sh
|
|
|
|
OPTIONS_DEFINE= STATIC
|
|
OPTIONS_DEFAULT= STATIC
|
|
|
|
STATIC_RUN_DEPENDS_OFF= llvm${_LLVM_VER}>=0:devel/llvm${_LLVM_VER}
|
|
STATIC_CMAKE_BOOL= CMAKE_SKIP_INSTALL_RPATH ZIG_STATIC
|
|
|
|
.include <bsd.port.mk>
|