Tricky part was to figure out where to put it.  I won't change the
old CONFIGURE_STYLE stuff because it's unlikely to be needed anymore,
but putting the check inside modules.port.mk means that other modules
can just define GH_TUPLE* and everything should work like a charm

Okay ?

Index: modules.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/modules.port.mk,v
retrieving revision 1.14
diff -u -p -r1.14 modules.port.mk
--- modules.port.mk     22 Aug 2017 10:27:33 -0000      1.14
+++ modules.port.mk     2 Sep 2023 17:57:19 -0000
@@ -37,6 +37,10 @@ COMPILER_LANGS ?= c c++
 _COMPILER=compiler
 .endif
 
+.if defined(DIST_TUPLE) || defined(DIST_TUPLE_MV) && empty(MODULES:Mdist-tuple)
+MODULES += dist-tuple
+.endif
+
 .for _m in ${_COMPILER} ${MODULES:L}
 .  if "${_m:M*/*}" != ""
 .    for _d in ${PORTSDIR_PATH:S/:/ /g}

Reply via email to