pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/unit



Module Name:    pkgsrc
Committed By:   osa
Date:           Wed May 17 17:39:44 UTC 2023

Modified Files:
        pkgsrc/www/unit: Makefile options.mk

Log Message:
www/unit: add NGINX JavaScript as an optional functionality

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/www/unit/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/unit/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/unit/Makefile
diff -u pkgsrc/www/unit/Makefile:1.9 pkgsrc/www/unit/Makefile:1.10
--- pkgsrc/www/unit/Makefile:1.9        Wed Sep 14 05:31:41 2022
+++ pkgsrc/www/unit/Makefile    Wed May 17 17:39:43 2023
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.9 2022/09/14 05:31:41 osa Exp $
+# $NetBSD: Makefile,v 1.10 2023/05/17 17:39:43 osa Exp $
 
 .include "../../www/unit/version.mk"
 
 DISTNAME=      unit-${UNIT_VERSION}
+PKGREVISION=   1
 
 COMMENT=       Dynamic web application server
 

Index: pkgsrc/www/unit/options.mk
diff -u pkgsrc/www/unit/options.mk:1.1 pkgsrc/www/unit/options.mk:1.2
--- pkgsrc/www/unit/options.mk:1.1      Sun Feb 14 11:56:57 2021
+++ pkgsrc/www/unit/options.mk  Wed May 17 17:39:43 2023
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.1 2021/02/14 11:56:57 otis Exp $
+# $NetBSD: options.mk,v 1.2 2023/05/17 17:39:43 osa Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.unit
-PKG_SUPPORTED_OPTIONS= debug inet6 pcre pcre2 ssl
+PKG_SUPPORTED_OPTIONS= debug inet6 njs pcre pcre2 ssl
 PKG_SUGGESTED_OPTIONS= inet6 pcre2 ssl
 
 .include "../../mk/bsd.options.mk"
@@ -14,6 +14,14 @@ CONFIGURE_ARGS+=     --debug
 CONFIGURE_ARGS+=       --no-ipv6
 .endif
 
+.if !empty(PKG_OPTIONS:Mnjs)
+USE_TOOLS+=            pkg-config
+CONFIGURE_ARGS+=       --njs
+CONFIGURE_ARGS+=       --cc-opt="-I${PREFIX}/include"
+CONFIGURE_ARGS+=       --ld-opt="-I${PREFIX}/lib"
+.include "../../devel/libnjs/buildlink3.mk"
+.endif
+
 .if empty(PKG_OPTIONS:Mpcre) && empty(PKG_OPTIONS:Mpcre2)
 CONFIGURE_ARGS+=       --no-regex
 .endif



Home | Main Index | Thread Index | Old Index