pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/nginx-devel nginx-devel: Simplify pcre/pcre2 optio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0bcb63837a05
branches:  trunk
changeset: 375703:0bcb63837a05
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sun Mar 20 20:49:35 2022 +0000

description:
nginx-devel: Simplify pcre/pcre2 option logics

nginx-devel has 'pcre' option for pcre support and 'pcre and pcre2'
option for pcre2 support. No need to use raw nginx option framework.
Convert pcre and pcre2 for optional option.

diffstat:

 www/nginx-devel/options.mk |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (54 lines):

diff -r d173111b5135 -r 0bcb63837a05 www/nginx-devel/options.mk
--- a/www/nginx-devel/options.mk        Sun Mar 20 20:27:22 2022 +0000
+++ b/www/nginx-devel/options.mk        Sun Mar 20 20:49:35 2022 +0000
@@ -1,17 +1,20 @@
-# $NetBSD: options.mk,v 1.1 2022/03/17 03:03:14 osa Exp $
+# $NetBSD: options.mk,v 1.2 2022/03/20 20:49:35 ryoon Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.nginx-devel
 PKG_SUPPORTED_OPTIONS= array-var auth-request cache-purge dav debug
 PKG_SUPPORTED_OPTIONS+=        dso echo encrypted-session flv form-input
 PKG_SUPPORTED_OPTIONS+=        geoip geoip2 gtools gzip headers-more http2
 PKG_SUPPORTED_OPTIONS+=        image-filter luajit mail-proxy memcache
-PKG_SUPPORTED_OPTIONS+=        naxsi njs pcre pcre2 perl push realip rtmp
+PKG_SUPPORTED_OPTIONS+=        naxsi njs perl push realip rtmp
 PKG_SUPPORTED_OPTIONS+=        secure-link set-misc slice ssl status
 PKG_SUPPORTED_OPTIONS+=        stream-ssl-preread sub uwsgi
 PKG_SUGGESTED_OPTIONS= pcre ssl
 
 PKG_OPTIONS_LEGACY_OPTS+=      v2:http2
 
+PKG_OPTIONS_OPTIONAL_GROUPS=   pcre
+PKG_OPTIONS_GROUP.pcre=                pcre pcre2
+
 PLIST_VARS+=           arrayvar cprg dav dso echo encses forminput geoip2
 PLIST_VARS+=           headmore imagefilter lua mail naxsi nchan ndk njs
 PLIST_VARS+=           perl rtmp setmisc stream uwsgi
@@ -54,8 +57,9 @@
 SUBST_NOOP_OK.fix-ssl= yes
 .endif
 
-.if !empty(PKG_OPTIONS:Mpcre) && empty(PKG_OPTIONS:Mpcre2)
+.if !empty(PKG_OPTIONS:Mpcre)
 .include "../../devel/pcre/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-pcre
 CONFIGURE_ARGS+=       --without-pcre2
 SUBST_CLASSES+=                fix-pcre
 SUBST_STAGE.fix-pcre=  pre-configure
@@ -66,6 +70,7 @@
 
 .if !empty(PKG_OPTIONS:Mpcre2)
 .include "../../devel/pcre2/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-pcre
 SUBST_CLASSES+=                fix-pcre2
 SUBST_STAGE.fix-pcre2= pre-configure
 SUBST_FILES.fix-pcre2= auto/lib/pcre/conf
@@ -73,7 +78,7 @@
 SUBST_NOOP_OK.fix-pcre2=yes
 .endif
 
-.if empty(PKG_OPTIONS:Mpcre) || empty(PKG_OPTIONS:Mpcre2)
+.if empty(PKG_OPTIONS:Mpcre) && empty(PKG_OPTIONS:Mpcre2)
 CONFIGURE_ARGS+=       --without-pcre
 CONFIGURE_ARGS+=       --without-http_rewrite_module
 .endif



Home | Main Index | Thread Index | Old Index