From 67cfdf9034f9ee7b936adaf1be0cc08a4e538f60 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 14 Jun 2013 13:41:37 +0000 Subject: New macros to help dealing with ports that have options: OPTIONS_SUB=yes when set in a port, all the option names are automatically added to the PLIST_SUB with "@comment " value in case the option is off and empty value in case the options is on. ${OPT}_CONFIGURE_ENABLE= will automatically add: CONFIGURE_ARGS+=--enable- in case OPT is activated CONFIGURE_ARGS+=--disable- in case OPT is deactivated ${OPT}_CONFIGURE_ON= will automatically add: CONFIGURE_ARGS+= in case OPT is activated ${OPT_CONFIGURE_OFF= will automatically add: CONFIGURE_ARGS+= in case OPT is deactivated ${OPT}_CFLAGS will append the specified new flags to CFLAGS if OPT is 'on' ${OPT}_CXXFLAGS will append the specified new flags to CXXFLAGS if OPT is 'on' ${OPT}_LDFLAGS will append the specified new flags to LDFLAGS if OPT is 'on' ${OPT}_CONFIGURE_ENV will append the specified variables to CONFIGURE_ENV if OPT is 'on' ${OPT}_MAKE_ENV will append the specified variables to MAKE_ENV if OPT is 'on' ${OPT}_USES will append the speficied uses to USES if OPT is 'on' ${OPT}_DISTFILES will append the specified distiles to DISTFILES if OPT in 'on' Reviewed and tested by: bdrewery --- CHANGES | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'CHANGES') diff --git a/CHANGES b/CHANGES index a075b72c99e4..9ad17a5f4a5d 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,37 @@ in the release notes and/or placed into UPDATING. All ports committers are allowed to commit to this file. +20130614: +AUTHOR: bapt@FreeBSD.org + + * New macros to help dealing with ports that have options: + + OPTIONS_SUB=yes when set in a port, all the option names are automatically + added to the PLIST_SUB with "@comment " value in case the option is off and + empty value in case the options is on. + + ${OPT}_CONFIGURE_ENABLE= will automatically add: + CONFIGURE_ARGS+=--enable- in case OPT is activated + CONFIGURE_ARGS+=--disable- in case OPT is deactivated + + ${OPT}_CONFIGURE_ON= will automatically add: + CONFIGURE_ARGS+= in case OPT is activated + + ${OPT_CONFIGURE_OFF= will automatically add: + CONFIGURE_ARGS+= in case OPT is deactivated + + ${OPT}_CFLAGS will append the specified new flags to CFLAGS if OPT is 'on' + ${OPT}_CXXFLAGS will append the specified new flags to CXXFLAGS if OPT is 'on' + ${OPT}_LDFLAGS will append the specified new flags to LDFLAGS if OPT is 'on' + + ${OPT}_CONFIGURE_ENV will append the specified variables to CONFIGURE_ENV if + OPT is 'on' + ${OPT}_MAKE_ENV will append the specified variables to MAKE_ENV if OPT is 'on' + + ${OPT}_USES will append the speficied uses to USES if OPT is 'on' + + ${OPT}_DISTFILES will append the specified distiles to DISTFILES if OPT in 'on' + 20130614: AUTHOR: bapt@FreeBSD.org -- cgit v1.2.3