View | Details | Raw Unified | Return to bug 195817
Collapse All | Expand All

(-)Mk/bsd.options.mk (+8 lines)
Lines 99-104 Link Here
99
#				USE_FOO+= bar
99
#				USE_FOO+= bar
100
#				If you need more than one option, you can do
100
#				If you need more than one option, you can do
101
#				FOO=bar,baz and you'll get USE_FOO=bar baz
101
#				FOO=bar,baz and you'll get USE_FOO=bar baz
102
# ${opt}_USE_OFF=	FOO=bar	When option is disabled, it will enable
103
#				USE_FOO+= bar
102
#
104
#
103
# For each of:
105
# For each of:
104
# ALL_TARGET CATEGORIES CFLAGS CONFIGURE_ENV CONFLICTS CONFLICTS_BUILD
106
# ALL_TARGET CATEGORIES CFLAGS CONFIGURE_ENV CONFLICTS CONFLICTS_BUILD
Lines 460-465 Link Here
460
.      endif
462
.      endif
461
.    endfor
463
.    endfor
462
.  else
464
.  else
465
.    if defined(${opt}_USE_OFF)
466
.      for option in ${${opt}_USE_OFF}
467
_u=		${option:C/=.*//g}
468
USE_${_u:tu}+=	${option:C/.*=//g:C/,/ /g}
469
.      endfor
470
.    endif
463
.    if defined(${opt}_CONFIGURE_ENABLE)
471
.    if defined(${opt}_CONFIGURE_ENABLE)
464
.      for iopt in ${${opt}_CONFIGURE_ENABLE}
472
.      for iopt in ${${opt}_CONFIGURE_ENABLE}
465
CONFIGURE_ARGS+=	--disable-${iopt:C/=.*//}
473
CONFIGURE_ARGS+=	--disable-${iopt:C/=.*//}

Return to bug 195817