git: 1bfd8f025069 - main - devel/libnjs: fix NGINX JavaScript library exposion (+)

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Wed, 12 Jul 2023 02:31:42 UTC
The branch main has been updated by osa:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1bfd8f025069b06f89e348ac797d34d9301ec45a

commit 1bfd8f025069b06f89e348ac797d34d9301ec45a
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2023-07-12 02:29:44 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2023-07-12 02:31:31 +0000

    devel/libnjs: fix NGINX JavaScript library exposion (+)
    
    Bump PORTREVISION.
---
 devel/libnjs/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/devel/libnjs/Makefile b/devel/libnjs/Makefile
index a6ede4df4804..202e6e82c975 100644
--- a/devel/libnjs/Makefile
+++ b/devel/libnjs/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libnjs
 DISTVERSION=	0.8.0
+PORTREVISION=	1
 CATEGORIES=	devel www
 
 MAINTAINER=	osa@FreeBSD.org
@@ -94,6 +95,10 @@ PLIST_FILES=	include/njs_addr2line.h \
 		lib/libnjs.a \
 		libdata/pkgconfig/njs.pc
 
+post-patch:
+	@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+		${WRKSRC}/nginx/config
+
 do-build:
 	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} libnjs