2012-05-29 09:54:27 +00:00
|
|
|
#-*- tab-width: 4; -*-
|
2013-06-14 13:04:32 +00:00
|
|
|
# ex:ts=4
|
|
|
|
#
|
2012-05-29 09:54:27 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2013-06-14 13:04:32 +00:00
|
|
|
# These variables are used in port makefiles to define the options for a port.
|
|
|
|
#
|
|
|
|
# OPTIONS_DEFINE - List of options this ports accept
|
2012-07-16 11:38:36 +00:00
|
|
|
# OPTIONS_DEFINE_${ARCH} - List of options this ports accept and are
|
2013-06-14 13:04:32 +00:00
|
|
|
# specific to ${ARCH}
|
|
|
|
# OPTIONS_DEFAULT - List of options activated by default
|
2012-07-16 11:38:36 +00:00
|
|
|
# OPTIONS_DEFAULT_${ARCH} - List of options activated by default for a
|
2013-06-14 13:04:32 +00:00
|
|
|
# given arch
|
2012-07-16 11:38:36 +00:00
|
|
|
#
|
2013-06-14 13:04:32 +00:00
|
|
|
# ${OPTION}_DESC - Description of the ${OPTION}
|
2012-07-16 11:38:36 +00:00
|
|
|
#
|
2013-06-14 13:04:32 +00:00
|
|
|
# OPTIONS_SINGLE - List of single-choice grouped options: 1 and
|
|
|
|
# only 1 among N
|
|
|
|
# OPTIONS_RADIO - List of radio-choice grouped options: 0 or 1
|
|
|
|
# among N
|
|
|
|
# OPTIONS_MULTI - List of multiple-choice grouped options: at
|
|
|
|
# least 1 among N
|
|
|
|
# OPTIONS_GROUP - List of group-choice grouped options: 0 or
|
|
|
|
# more among N
|
2012-07-16 11:38:36 +00:00
|
|
|
#
|
2012-12-10 10:14:05 +00:00
|
|
|
# OPTIONS_SINGLE_${NAME} - List of OPTIONS grouped as single choice (for
|
2013-06-14 13:04:32 +00:00
|
|
|
# the single named as ${NAME} as defined in
|
|
|
|
# OPTIONS_SINGLE)
|
2012-12-10 10:14:05 +00:00
|
|
|
# OPTIONS_RADIO_${NAME} - List of OPTIONS grouped as radio choice (for
|
2013-06-14 13:04:32 +00:00
|
|
|
# the radio named as ${NAME} as defined in
|
|
|
|
# OPTIONS_RADIO)
|
2012-12-10 10:14:05 +00:00
|
|
|
# OPTIONS_MULTI_${NAME} - List of OPTIONS grouped as multiple-choice
|
2013-06-14 13:04:32 +00:00
|
|
|
# (for the multi named as ${NAME} as defined in
|
|
|
|
# OPTIONS_MULTI)
|
2012-12-10 10:14:05 +00:00
|
|
|
# OPTIONS_GROUP_${NAME} - List of OPTIONS grouped as group-choice (for
|
2013-06-14 13:04:32 +00:00
|
|
|
# the group named as ${NAME} as defined in
|
|
|
|
# OPTIONS_GROUP)
|
|
|
|
#
|
|
|
|
# OPTIONS_EXCLUDE - List of options unsupported (useful for slave ports)
|
|
|
|
# OPTIONS_EXCLUDE_${ARCH} - List of options unsupported on a given ${ARCH}
|
|
|
|
# OPTIONS_SLAVE - This is designed for slave ports, it removes an
|
|
|
|
# option from the options list inherited from the
|
|
|
|
# master port and it always adds it to PORT_OPTIONS
|
|
|
|
# meaning activated
|
|
|
|
#
|
|
|
|
# These variables can be used in make.conf to configure options. They are
|
|
|
|
# processed in the order listed below, i.e. later variables override the effects
|
|
|
|
# of previous variables. Options saved using the options dialog are processed
|
|
|
|
# right before OPTIONS_SET_FORCE. When building a port a dialog to configure
|
|
|
|
# options will only appear if there are new options, i.e. options which have not
|
|
|
|
# been configured before either using the option dialog in a previous build or
|
|
|
|
# using the variables below. You can force the dialog to appear by running
|
|
|
|
# "make config".
|
|
|
|
#
|
|
|
|
# OPTIONS_SET - List of options to enable for all ports.
|
|
|
|
# OPTIONS_UNSET - List of options to disable for all ports.
|
|
|
|
# ${UNIQUENAME}_SET - List of options to enable for a specific port.
|
|
|
|
# ${UNIQUENAME}_UNSET - List of options to disable for a specific port.
|
|
|
|
#
|
|
|
|
# OPTIONS_SET_FORCE - List of options to enable for all ports.
|
|
|
|
# OPTIONS_UNSET_FORCE - List of options to disable for all ports.
|
|
|
|
# ${UNIQUENAME}_SET_FORCE - List of options to enable for a specific port.
|
|
|
|
# ${UNIQUENAME}_UNSET_FORCE - List of options to disable for a specific port.
|
2012-12-10 10:14:05 +00:00
|
|
|
#
|
2013-06-14 13:04:32 +00:00
|
|
|
# These variables can be used on the command line. They override the effects of
|
|
|
|
# the make.conf variables above.
|
2013-04-29 14:49:18 +00:00
|
|
|
#
|
2013-06-14 13:04:32 +00:00
|
|
|
# WITH - Set options from the command line
|
|
|
|
# WITHOUT - Unset options from the command line
|
2012-05-29 09:54:27 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# Set all the options available for the ports, beginning with the
|
|
|
|
# global ones and ending with the ones decided by the maintainer.
|
2013-06-14 12:59:02 +00:00
|
|
|
|
2012-12-10 10:14:05 +00:00
|
|
|
.if !defined(OPTIONSMKINCLUDED)
|
|
|
|
OPTIONSMKINCLUDED= bsd.options.mk
|
2012-05-29 09:54:27 +00:00
|
|
|
|
2013-06-26 07:22:06 +00:00
|
|
|
OPTIONS_NAME?= ${PKGORIGIN:S/\//_/}
|
2012-05-29 09:54:27 +00:00
|
|
|
OPTIONSFILE?= ${PORT_DBDIR}/${UNIQUENAME}/options
|
2013-06-26 07:22:06 +00:00
|
|
|
OPTIONS_FILE?= ${PORT_DBDIR}/${OPTIONS_NAME}/options
|
2012-05-29 09:54:27 +00:00
|
|
|
|
|
|
|
# Set the default values for the global options, as defined by portmgr
|
2012-05-29 14:46:38 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORT_OPTIONS+= DOCS
|
|
|
|
.endif
|
2012-06-04 10:23:42 +00:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_NLS)
|
2012-05-29 14:46:38 +00:00
|
|
|
PORT_OPTIONS+= NLS
|
2012-06-04 10:23:42 +00:00
|
|
|
.endif
|
2012-05-29 09:54:27 +00:00
|
|
|
|
2012-05-29 15:19:59 +00:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
PORT_OPTIONS+= EXAMPLES
|
|
|
|
.endif
|
|
|
|
|
2012-10-10 08:48:47 +00:00
|
|
|
PORT_OPTIONS+= IPV6
|
|
|
|
|
2012-07-16 11:38:36 +00:00
|
|
|
# Add per arch options
|
|
|
|
.for opt in ${OPTIONS_DEFINE_${ARCH}}
|
|
|
|
.if empty(OPTIONS_DEFINE:M${opt})
|
|
|
|
OPTIONS_DEFINE+= ${opt}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
# Add per arch defaults
|
2013-06-10 08:39:14 +00:00
|
|
|
OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${ARCH}}
|
2012-07-16 11:38:36 +00:00
|
|
|
|
2013-06-09 16:02:03 +00:00
|
|
|
# Remove options the port maintainer doesn't want
|
|
|
|
.for opt in ${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE} ${OPTIONS_SLAVE}
|
2013-04-29 14:49:18 +00:00
|
|
|
OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:N${opt}}
|
2013-06-10 08:37:14 +00:00
|
|
|
OPTIONS_DEFINE:= ${OPTIONS_DEFINE:N${opt}}
|
2013-06-07 05:49:44 +00:00
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
|
2013-06-10 09:19:38 +00:00
|
|
|
. for otype in SINGLE RADIO MULTI GROUP
|
|
|
|
. for m in ${OPTIONS_${otype}}
|
|
|
|
OPTIONS_${otype}_${m}:= ${OPTIONS_${otype}_${m}:N${opt}}
|
|
|
|
. endfor
|
2013-04-29 14:49:18 +00:00
|
|
|
. endfor
|
|
|
|
.endfor
|
2012-05-29 09:54:27 +00:00
|
|
|
|
2013-06-05 17:21:32 +00:00
|
|
|
# Remove empty SINGLE/GROUP/RADIO/MULTI
|
|
|
|
# Can be empty because of exclude/slaves
|
2013-06-10 09:19:38 +00:00
|
|
|
.for otype in SINGLE RADIO MULTI GROUP
|
|
|
|
. for m in ${OPTIONS_${otype}}
|
|
|
|
. if empty(OPTIONS_${otype}_${m})
|
|
|
|
OPTIONS_${otype}:= ${OPTIONS_${otype}:N${m}}
|
|
|
|
. endif
|
|
|
|
. endfor
|
2013-06-05 17:21:32 +00:00
|
|
|
.endfor
|
|
|
|
|
2013-06-10 08:37:14 +00:00
|
|
|
# Sort options
|
|
|
|
ALL_OPTIONS:= ${OPTIONS_DEFINE:O:u}
|
|
|
|
OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:O:u}
|
|
|
|
|
2012-07-16 22:36:44 +00:00
|
|
|
# complete list
|
|
|
|
COMPLETE_OPTIONS_LIST= ${ALL_OPTIONS}
|
2013-06-10 09:27:19 +00:00
|
|
|
.for otype in SINGLE RADIO MULTI GROUP
|
|
|
|
. for m in ${OPTIONS_${otype}}
|
|
|
|
COMPLETE_OPTIONS_LIST+= ${OPTIONS_${otype}_${m}}
|
|
|
|
. endfor
|
2012-12-10 10:14:05 +00:00
|
|
|
.endfor
|
2012-07-16 22:36:44 +00:00
|
|
|
|
2012-05-29 09:54:27 +00:00
|
|
|
## Now create the list of activated options
|
|
|
|
.if defined(OPTIONS_OVERRIDE)
|
|
|
|
# Special case $OPTIONS_OVERRIDE; if it is defined forget about anything done
|
|
|
|
# before
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS=
|
2012-05-29 09:54:27 +00:00
|
|
|
PORT_OPTIONS:= ${OPTIONS_OVERRIDE}
|
|
|
|
.else
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS= ${COMPLETE_OPTIONS_LIST}
|
2012-05-29 09:54:27 +00:00
|
|
|
|
|
|
|
## Set default options defined by the port maintainer
|
2013-06-14 13:00:48 +00:00
|
|
|
PORT_OPTIONS+= ${OPTIONS_DEFAULT}
|
2012-05-29 09:54:27 +00:00
|
|
|
|
|
|
|
## Set system-wide defined options (set by user in make.conf)
|
|
|
|
. for opt in ${OPTIONS_SET}
|
2012-07-16 22:36:44 +00:00
|
|
|
. if !empty(COMPLETE_OPTIONS_LIST:M${opt})
|
2012-05-29 09:54:27 +00:00
|
|
|
PORT_OPTIONS+= ${opt}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2012-07-16 11:38:36 +00:00
|
|
|
. endif
|
2012-05-29 09:54:27 +00:00
|
|
|
. endfor
|
|
|
|
|
|
|
|
## Remove the options excluded system-wide (set by user in make.conf)
|
|
|
|
. for opt in ${OPTIONS_UNSET}
|
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2012-05-29 09:54:27 +00:00
|
|
|
. endfor
|
|
|
|
|
2013-06-26 07:22:06 +00:00
|
|
|
# XXX To remove once UNIQUENAME will be removed
|
2012-05-29 09:54:27 +00:00
|
|
|
## Set the options specified per-port (set by user in make.conf)
|
2012-06-06 11:47:29 +00:00
|
|
|
. for opt in ${${UNIQUENAME}_SET}
|
2012-07-16 22:36:44 +00:00
|
|
|
. if !empty(COMPLETE_OPTIONS_LIST:M${opt})
|
2012-05-29 09:54:27 +00:00
|
|
|
PORT_OPTIONS+= ${opt}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2012-07-16 11:38:36 +00:00
|
|
|
. endif
|
2012-05-29 09:54:27 +00:00
|
|
|
. endfor
|
|
|
|
|
|
|
|
## Unset the options excluded per-port (set by user in make.conf)
|
2012-06-06 11:47:29 +00:00
|
|
|
. for opt in ${${UNIQUENAME}_UNSET}
|
2012-05-29 09:54:27 +00:00
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2012-05-29 09:54:27 +00:00
|
|
|
. endfor
|
2013-06-26 07:22:06 +00:00
|
|
|
# XXX To remove once UNIQUENAME will be removed
|
2012-05-29 09:54:27 +00:00
|
|
|
|
2013-06-26 07:22:06 +00:00
|
|
|
## Set the options specified per-port (set by user in make.conf)
|
|
|
|
. for opt in ${${OPTIONS_NAME}_SET}
|
|
|
|
. if !empty(COMPLETE_OPTIONS_LIST:M${opt})
|
|
|
|
PORT_OPTIONS+= ${opt}
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:O:u}
|
|
|
|
|
|
|
|
## Unset the options excluded per-port (set by user in make.conf)
|
|
|
|
. for opt in ${${OPTIONS_NAME}_UNSET}
|
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
|
|
|
|
. endfor
|
|
|
|
|
|
|
|
# XXX to remove once UNIQUENAME is removed
|
2012-05-29 09:54:27 +00:00
|
|
|
## options files (from dialog)
|
|
|
|
. if exists(${OPTIONSFILE}) && !make(rmconfig)
|
|
|
|
. include "${OPTIONSFILE}"
|
|
|
|
. endif
|
|
|
|
. if exists(${OPTIONSFILE}.local)
|
|
|
|
. include "${OPTIONSFILE}.local"
|
|
|
|
. endif
|
2013-06-26 07:22:06 +00:00
|
|
|
# XXX to remove once UNIQUENAME is removed
|
|
|
|
|
|
|
|
## options files (from dialog)
|
|
|
|
. if exists(${OPTIONS_FILE}) && !make(rmconfig)
|
|
|
|
. include "${OPTIONS_FILE}"
|
|
|
|
. endif
|
|
|
|
. if exists(${OPTIONS_FILE}.local)
|
|
|
|
. include "${OPTIONS_FILE}.local"
|
|
|
|
. endif
|
2012-05-29 09:54:27 +00:00
|
|
|
|
2012-06-04 10:23:42 +00:00
|
|
|
### convert WITH and WITHOUT found in make.conf or reloaded from old optionsfile
|
|
|
|
.for opt in ${ALL_OPTIONS}
|
|
|
|
.if defined(WITH_${opt})
|
|
|
|
PORT_OPTIONS+= ${opt}
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_${opt})
|
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
|
|
|
|
.endif
|
|
|
|
.endfor
|
2012-05-29 09:54:27 +00:00
|
|
|
|
|
|
|
## Finish by using the options set by the port config dialog, if any
|
|
|
|
. for opt in ${OPTIONS_FILE_SET}
|
2012-07-16 22:36:44 +00:00
|
|
|
. if !empty(COMPLETE_OPTIONS_LIST:M${opt})
|
2012-05-29 09:54:27 +00:00
|
|
|
PORT_OPTIONS+= ${opt}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2012-07-16 11:38:36 +00:00
|
|
|
. endif
|
2012-05-29 09:54:27 +00:00
|
|
|
. endfor
|
|
|
|
|
|
|
|
.for opt in ${OPTIONS_FILE_UNSET}
|
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2012-05-29 09:54:27 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2013-04-29 14:49:18 +00:00
|
|
|
## FORCE
|
|
|
|
## Set system-wide defined options (set by user in make.conf)
|
|
|
|
. for opt in ${OPTIONS_SET_FORCE}
|
|
|
|
. if !empty(COMPLETE_OPTIONS_LIST:M${opt})
|
|
|
|
PORT_OPTIONS+= ${opt}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2013-04-29 14:49:18 +00:00
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
|
|
|
|
## Remove the options excluded system-wide (set by user in make.conf)
|
|
|
|
. for opt in ${OPTIONS_UNSET_FORCE}
|
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2013-04-29 14:49:18 +00:00
|
|
|
. endfor
|
|
|
|
|
|
|
|
## Set the options specified per-port (set by user in make.conf)
|
|
|
|
. for opt in ${${UNIQUENAME}_SET_FORCE}
|
|
|
|
. if !empty(COMPLETE_OPTIONS_LIST:M${opt})
|
|
|
|
PORT_OPTIONS+= ${opt}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2013-04-29 14:49:18 +00:00
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
|
|
|
|
## Unset the options excluded per-port (set by user in make.conf)
|
|
|
|
. for opt in ${${UNIQUENAME}_UNSET_FORCE}
|
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2013-04-29 14:49:18 +00:00
|
|
|
. endfor
|
|
|
|
|
|
|
|
|
2012-10-05 13:43:45 +00:00
|
|
|
## Cmdline always win over the rest
|
|
|
|
.for opt in ${WITH}
|
|
|
|
. if !empty(COMPLETE_OPTIONS_LIST:M${opt})
|
|
|
|
PORT_OPTIONS+= ${opt}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2012-10-05 13:43:45 +00:00
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.for opt in ${WITHOUT}
|
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}
|
2013-06-14 12:59:02 +00:00
|
|
|
NEW_OPTIONS:= ${NEW_OPTIONS:N${opt}}
|
2012-10-05 13:43:45 +00:00
|
|
|
.endfor
|
2013-04-29 14:49:18 +00:00
|
|
|
|
2013-06-14 13:00:48 +00:00
|
|
|
# Finally, add options required by slave ports
|
|
|
|
PORT_OPTIONS+= ${OPTIONS_SLAVE}
|
|
|
|
|
|
|
|
# Sort options and eliminate duplicates
|
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:O:u}
|
2012-10-05 13:43:45 +00:00
|
|
|
|
2012-05-29 09:54:27 +00:00
|
|
|
## Now some compatibility
|
|
|
|
.if empty(PORT_OPTIONS:MDOCS)
|
|
|
|
NOPORTDOCS= yes
|
|
|
|
.endif
|
|
|
|
|
2012-05-29 15:35:30 +00:00
|
|
|
.if empty(PORT_OPTIONS:MEXAMPLES)
|
|
|
|
NOPORTEXAMPLES= yes
|
|
|
|
.endif
|
|
|
|
|
2012-05-29 09:54:27 +00:00
|
|
|
.if empty(PORT_OPTIONS:MNLS)
|
|
|
|
WITHOUT_NLS= yes
|
|
|
|
.endif
|
|
|
|
|
2012-06-01 09:06:15 +00:00
|
|
|
.if defined(NO_OPTIONS_SORT)
|
2013-06-10 08:37:14 +00:00
|
|
|
ALL_OPTIONS= ${OPTIONS_DEFINE}
|
2012-06-01 09:06:15 +00:00
|
|
|
.endif
|
|
|
|
|
2012-05-29 11:49:10 +00:00
|
|
|
### to be removed once old OPTIONS disappear
|
2012-05-29 13:30:56 +00:00
|
|
|
.for opt in ${ALL_OPTIONS}
|
|
|
|
.if empty(PORT_OPTIONS:M${opt})
|
|
|
|
. if !defined(WITH_${opt}) && !defined(WITHOUT_${opt})
|
|
|
|
WITHOUT_${opt}:= true
|
2012-05-29 11:49:10 +00:00
|
|
|
. endif
|
2012-05-29 13:30:56 +00:00
|
|
|
.else
|
|
|
|
. if !defined(WITH_${opt}) && !defined(WITHOUT_${opt})
|
|
|
|
WITH_${opt}:= true
|
2012-05-29 11:49:10 +00:00
|
|
|
. endif
|
|
|
|
.endif
|
2012-05-29 13:30:56 +00:00
|
|
|
.endfor
|
2012-05-29 11:49:10 +00:00
|
|
|
###
|
2013-06-14 13:41:37 +00:00
|
|
|
|
|
|
|
.for opt in ${COMPLETE_OPTIONS_LIST}
|
|
|
|
# PLIST_SUB
|
|
|
|
PLIST_SUB?=
|
|
|
|
. if defined(OPTIONS_SUB)
|
|
|
|
. if ! ${PLIST_SUB:M${opt}=*}
|
|
|
|
. if ${PORT_OPTIONS:M${opt}}
|
|
|
|
PLIST_SUB:= ${PLIST_SUB} ${opt}=""
|
|
|
|
. else
|
|
|
|
PLIST_SUB:= ${PLIST_SUB} ${opt}="@comment "
|
|
|
|
. endif
|
|
|
|
. endif
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${PORT_OPTIONS:M${opt}}
|
|
|
|
. if defined(${opt}_CONFIGURE_ENABLE)
|
|
|
|
CONFIGURE_ARGS+= --enable-${${opt}_CONFIGURE_ENABLE}
|
|
|
|
. endif
|
|
|
|
. if defined(${opt}_CONFIGURE_ON)
|
|
|
|
CONFIGURE_ARGS+= ${${opt}_CONFIGURE_ON}
|
|
|
|
. endif
|
2013-06-14 14:18:45 +00:00
|
|
|
. if defined(${opt}_CMAKE_ON)
|
|
|
|
CMAKE_ARGS+= ${${opt}_CMAKE_ON}
|
|
|
|
. endif
|
2013-06-14 13:41:37 +00:00
|
|
|
. for flags in CFLAGS CXXFLAGS LDFLAGS CONFIGURE_ENV MAKE_ENV USES DISTFILES
|
|
|
|
. if defined(${opt}_${flags})
|
|
|
|
${flags}+= ${${opt}_${flags}}
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
. for deptype in PKG EXTRACT PATCH FETCH BUILD LIB RUN
|
|
|
|
. if defined(${opt}_${deptype}_DEPENDS)
|
|
|
|
${deptype}_DEPENDS+= ${${opt}_${deptype}_DEPENDS}
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
. else
|
|
|
|
. if defined(${opt}_CONFIGURE_ENABLE)
|
|
|
|
CONFIGURE_ARGS+= --disable-${${opt}_CONFIGURE_ENABLE}
|
|
|
|
. endif
|
|
|
|
. if defined(${opt}_CONFIGURE_OFF)
|
|
|
|
CONFIGURE_ARGS+= ${${opt}_CONFIGURE_OFF}
|
|
|
|
. endif
|
2013-06-14 14:18:45 +00:00
|
|
|
. if defined(${opt}_CMAKE_OFF)
|
|
|
|
CMAKE_ARGS+= ${${opt}_CMAKE_OFF}
|
|
|
|
. endif
|
2013-06-14 13:41:37 +00:00
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
|
|
|
|
.endif
|