| @@ -1,28 +1,32 @@ | | | @@ -1,28 +1,32 @@ |
1 | # $NetBSD: Makefile,v 1.168 2023/03/08 13:38:44 bsiegert Exp $ | | 1 | # $NetBSD: Makefile,v 1.169 2023/03/12 14:54:43 wiz Exp $ |
2 | | | 2 | |
3 | # Protocol breaks require tech-pkg@ discussion and MAINTAINER approval. | | 3 | # Protocol breaks require tech-pkg@ discussion and MAINTAINER approval. |
4 | DISTNAME= syncthing-source-v1.23.1 | | 4 | DISTNAME= syncthing-source-v1.23.1 |
5 | PKGNAME= ${DISTNAME:S,source-v,,} | | 5 | PKGNAME= ${DISTNAME:S,source-v,,} |
6 | PKGREVISION= 1 | | 6 | PKGREVISION= 1 |
7 | CATEGORIES= net | | 7 | CATEGORIES= net |
8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=syncthing/} | | 8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=syncthing/} |
9 | GITHUB_RELEASE= v${PKGVERSION_NOREV} | | 9 | GITHUB_RELEASE= v${PKGVERSION_NOREV} |
10 | | | 10 | |
11 | COMMENT= Keeps directories in sync across hosts | | 11 | COMMENT= Keeps directories in sync across hosts |
12 | HOMEPAGE= https://syncthing.net/ | | 12 | HOMEPAGE= https://syncthing.net/ |
13 | MAINTAINER= gdt@NetBSD.org | | 13 | MAINTAINER= gdt@NetBSD.org |
14 | LICENSE= mpl-2.0 | | 14 | LICENSE= mpl-2.0 |
15 | | | 15 | |
| | | 16 | # does not support go 1.20 yet (as of 1.23.1) |
| | | 17 | # vendor/github.com/lucas-clemente/quic-go/internal/qtls/go120.go:5:13: cannot use "The version of quic-go you're using can't be built on Go 1.20 yet. For more details, please see https://github.com/lucas-clemente/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built on Go 1.20 yet. F...) as int value in variable declaration |
| | | 18 | GO_VERSION_DEFAULT= 119 |
| | | 19 | |
16 | # The 'zillode' dependency calls the compiler on certain archs. | | 20 | # The 'zillode' dependency calls the compiler on certain archs. |
17 | USE_LANGUAGES= c | | 21 | USE_LANGUAGES= c |
18 | WRKSRC= ${WRKDIR}/syncthing | | 22 | WRKSRC= ${WRKDIR}/syncthing |
19 | NO_CONFIGURE= yes | | 23 | NO_CONFIGURE= yes |
20 | INSTALLATION_DIRS= bin share/applications | | 24 | INSTALLATION_DIRS= bin share/applications |
21 | | | 25 | |
22 | CHECK_RELRO_SKIP+= bin/syncthing | | 26 | CHECK_RELRO_SKIP+= bin/syncthing |
23 | | | 27 | |
24 | SUBST_CLASSES+= version | | 28 | SUBST_CLASSES+= version |
25 | SUBST_STAGE.version= pre-build | | 29 | SUBST_STAGE.version= pre-build |
26 | SUBST_MESSAGE.version= Fixing version string | | 30 | SUBST_MESSAGE.version= Fixing version string |
27 | SUBST_FILES.version= build.go | | 31 | SUBST_FILES.version= build.go |
28 | SUBST_SED.version= -e 's|runError("git", "describe", "--always", "--dirty")|runError("echo","v${PKGVERSION_NOREV}")|' | | 32 | SUBST_SED.version= -e 's|runError("git", "describe", "--always", "--dirty")|runError("echo","v${PKGVERSION_NOREV}")|' |