| @@ -1,33 +1,33 @@ | | | @@ -1,33 +1,33 @@ |
1 | # $NetBSD: Makefile,v 1.27 2023/05/01 15:49:01 nikita Exp $ | | 1 | # $NetBSD: Makefile,v 1.28 2023/05/02 06:44:21 nikita Exp $ |
2 | | | 2 | |
3 | DISTNAME= zig-0.10.1 | | 3 | DISTNAME= zig-0.10.1 |
4 | PKGREVISION= 2 | | 4 | PKGREVISION= 2 |
5 | CATEGORIES= lang | | 5 | CATEGORIES= lang |
6 | MASTER_SITES= https://ziglang.org/download/${PKGVERSION_NOREV}/ | | 6 | MASTER_SITES= https://ziglang.org/download/${PKGVERSION_NOREV}/ |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://ziglang.org/ | | 10 | HOMEPAGE= https://ziglang.org/ |
11 | COMMENT= Programming language designed for robustness and clarity | | 11 | COMMENT= Programming language designed for robustness and clarity |
12 | LICENSE= mit | | 12 | LICENSE= mit |
13 | | | 13 | |
14 | USE_CMAKE= yes | | 14 | USE_CMAKE= yes |
15 | USE_TOOLS+= bash:run | | 15 | USE_TOOLS+= bash:run |
16 | USE_LANGUAGES= c c++14 | | 16 | USE_LANGUAGES= c c++14 |
17 | | | 17 | |
18 | DEPENDS+= llvm-15.[0-9]*:../../lang/llvm | | 18 | DEPENDS+= llvm>=15<16:../../lang/llvm |
19 | DEPENDS+= lld-15.[0-9]*:../../devel/lld | | 19 | DEPENDS+= lld>=15<16:../../devel/lld |
20 | DEPENDS+= clang-15.[0-9]*:../../lang/clang | | 20 | DEPENDS+= clang>=15<16:../../lang/clang |
21 | | | 21 | |
22 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release | | 22 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release |
23 | CMAKE_ARGS+= -DDESTDIR=${DESTDIR} | | 23 | CMAKE_ARGS+= -DDESTDIR=${DESTDIR} |
24 | # avoid full-cu-features available to build host, | | 24 | # avoid full-cu-features available to build host, |
25 | # in other words ensure that we run everywhere | | 25 | # in other words ensure that we run everywhere |
26 | CMAKE_ARGS+= -DZIG_TARGET_MCPU=baseline | | 26 | CMAKE_ARGS+= -DZIG_TARGET_MCPU=baseline |
27 | | | 27 | |
28 | CHECK_PORTABILITY_SKIP+= ci/azure/macos_script | | 28 | CHECK_PORTABILITY_SKIP+= ci/azure/macos_script |
29 | BUILDLINK_TRANSFORM+= rm:-Werror | | 29 | BUILDLINK_TRANSFORM+= rm:-Werror |
30 | | | 30 | |
31 | UNLIMIT_RESOURCES= stacksize | | 31 | UNLIMIT_RESOURCES= stacksize |
32 | | | 32 | |
33 | # \todo: There is currently an issue building this as a PIE | | 33 | # \todo: There is currently an issue building this as a PIE |