| @@ -1,40 +1,40 @@ | | | @@ -1,40 +1,40 @@ |
1 | # $NetBSD: Makefile,v 1.78 2024/05/06 06:22:09 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.79 2024/05/10 19:08:43 pho Exp $ |
2 | | | 2 | |
3 | DISTNAME= libgit2-1.8.0 | | 3 | DISTNAME= libgit2-1.8.0 |
4 | CATEGORIES= devel | | 4 | CATEGORIES= devel |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=libgit2/} | | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=libgit2/} |
6 | GITHUB_TAG= v${PKGVERSION_NOREV} | | 6 | GITHUB_TAG= v${PKGVERSION_NOREV} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://libgit2.org/ | | 9 | HOMEPAGE= https://libgit2.org/ |
10 | COMMENT= Portable, pure C implementation of the Git core methods | | 10 | COMMENT= Portable, pure C implementation of the Git core methods |
11 | LICENSE= gnu-gpl-v2 # linking exception (linking allowed in more ways) | | 11 | LICENSE= gnu-gpl-v2 # linking exception (linking allowed in more ways) |
12 | | | 12 | |
13 | USE_LANGUAGES= c | | 13 | USE_LANGUAGES= c |
14 | USE_TOOLS+= pkg-config | | 14 | USE_TOOLS+= pkg-config |
15 | | | 15 | |
16 | USE_CC_FEATURES+= c99 | | 16 | USE_CC_FEATURES+= c99 |
17 | FORCE_C_STD= c99 | | 17 | FORCE_C_STD= gnu99 # src/cli/opt.c uses alloca(3) |
18 | | | 18 | |
19 | CMAKE_ARGS+= -DREGEX_BACKEND="pcre2" | | 19 | CMAKE_ARGS+= -DREGEX_BACKEND="pcre2" |
20 | | | 20 | |
21 | PKGCONFIG_OVERRIDE+= ${CMAKE_BUILD_DIR}/libgit2.pc | | 21 | PKGCONFIG_OVERRIDE+= ${CMAKE_BUILD_DIR}/libgit2.pc |
22 | PKGCONFIG_OVERRIDE_STAGE= pre-install | | 22 | PKGCONFIG_OVERRIDE_STAGE= pre-install |
23 | | | 23 | |
24 | BUILDLINK_TRANSFORM+= rm:-Werror | | 24 | BUILDLINK_TRANSFORM+= rm:-Werror |
25 | | | 25 | |
26 | # In some environments, two tests might fail with permission problems | | 26 | # In some environments, two tests might fail with permission problems |
27 | # https://github.com/libgit2/libgit2/issues/6647 | | 27 | # https://github.com/libgit2/libgit2/issues/6647 |
28 | do-test: | | 28 | do-test: |
29 | cd ${WRKSRC}/${CMAKE_BUILD_DIR} && ctest | | 29 | cd ${WRKSRC}/${CMAKE_BUILD_DIR} && ctest |
30 | | | 30 | |
31 | .include "../../devel/cmake/build.mk" | | 31 | .include "../../devel/cmake/build.mk" |
32 | .include "../../devel/zlib/buildlink3.mk" | | 32 | .include "../../devel/zlib/buildlink3.mk" |
33 | .include "../../devel/pcre2/buildlink3.mk" | | 33 | .include "../../devel/pcre2/buildlink3.mk" |
34 | .include "../../security/libssh2/buildlink3.mk" | | 34 | .include "../../security/libssh2/buildlink3.mk" |
35 | .include "../../security/openssl/buildlink3.mk" | | 35 | .include "../../security/openssl/buildlink3.mk" |
36 | # for tests | | 36 | # for tests |
37 | .include "../../lang/python/pyversion.mk" | | 37 | .include "../../lang/python/pyversion.mk" |
38 | .include "../../www/curl/buildlink3.mk" | | 38 | .include "../../www/curl/buildlink3.mk" |
39 | .include "../../www/http-parser/buildlink3.mk" | | 39 | .include "../../www/http-parser/buildlink3.mk" |
40 | .include "../../mk/bsd.pkg.mk" | | 40 | .include "../../mk/bsd.pkg.mk" |