diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-14 13:41:37 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-14 13:41:37 +0000 |
commit | 67cfdf9034f9ee7b936adaf1be0cc08a4e538f60 (patch) | |
tree | 36b000a218f2de0d60ae75e8e03a7ad2e6956074 /CHANGES | |
parent | 2123bfe614188a1b6d6698fdd5dd1c9702857777 (diff) |
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=<aname> will automatically add:
CONFIGURE_ARGS+=--enable-<aname> in case OPT is activated
CONFIGURE_ARGS+=--disable-<aname> in case OPT is deactivated
${OPT}_CONFIGURE_ON=<something> will automatically add:
CONFIGURE_ARGS+=<something> in case OPT is activated
${OPT_CONFIGURE_OFF=<something> will automatically add:
CONFIGURE_ARGS+=<something> 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
Notes
Notes:
svn path=/head/; revision=320916
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -11,6 +11,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=<aname> will automatically add: + CONFIGURE_ARGS+=--enable-<aname> in case OPT is activated + CONFIGURE_ARGS+=--disable-<aname> in case OPT is deactivated + + ${OPT}_CONFIGURE_ON=<something> will automatically add: + CONFIGURE_ARGS+=<something> in case OPT is activated + + ${OPT_CONFIGURE_OFF=<something> will automatically add: + CONFIGURE_ARGS+=<something> 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 * New 'display' USES macro to handle building ports that may require a |