Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 2024 08:31:31 GMT
From:      Matthias Fechner <mfechner@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 625a51d7a3db - main - net/gotify-server: fix build for FreeBSD < 14
Message-ID:  <202410260831.49Q8VVJw072498@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mfechner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=625a51d7a3dbeb96dd15c935020f1e974d8f3ca6

commit 625a51d7a3dbeb96dd15c935020f1e974d8f3ca6
Author:     Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2024-10-26 07:55:12 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2024-10-26 07:55:12 +0000

    net/gotify-server: fix build for FreeBSD < 14
---
 net/gotify-server/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/net/gotify-server/Makefile b/net/gotify-server/Makefile
index cb216cc8653f..69ab9b7ff48e 100644
--- a/net/gotify-server/Makefile
+++ b/net/gotify-server/Makefile
@@ -15,6 +15,7 @@ LICENSE=	MIT
 BUILD_DEPENDS=	yarn${NODEJS_SUFFIX}>=1.10.0:www/yarn${NODEJS_SUFFIX} \
 		
 USES=		go:modules,1.22 nodejs:build
+USE_RC_SUBR=	gotify_server
 GO_MODULE=	github.com/gotify/server/v2
 
 _BUILD_DATE=	$$(date -u "+%Y-%m-%d-%H%M UTC")
@@ -26,7 +27,9 @@ GO_BUILDFLAGS=	-buildmode=pie -modcacherw \
 		-X 'main.BuildDate=${_BUILD_DATE}' \
 		-X 'main.Mode=prod'"
 
-USE_RC_SUBR=	gotify_server
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400000
+MAKE_ENV+=	 NODE_OPTIONS=--openssl-legacy-provider
+.endif
 
 USERS=		gotify
 GROUPS=		gotify
@@ -39,7 +42,7 @@ post-patch:
 	
 pre-build:
 	@cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} HOME=${WRKDIR} PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn install --offline
-	@cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} NODE_OPTIONS=--openssl-legacy-provider yarn build
+	@cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} yarn build
 	#${RM} -r ${STAGEDIR}${PREFIX}/share/.cache
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410260831.49Q8VVJw072498>