summaryrefslogtreecommitdiffstats
path: root/Mk/bsd.options.mk
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2013-08-01 12:32:52 +0000
committermat <mat@FreeBSD.org>2013-08-01 12:32:52 +0000
commitef2e327e4236be8023b39c5a29c70b211fc3d338 (patch)
treedef37df31979b42e16ee7be7aab3916b508103c7 /Mk/bsd.options.mk
parentdd0c112b55fe91f4dc5f0dd609f733913a97af2f (diff)
downloadFreeBSD-ports-ef2e327e4236be8023b39c5a29c70b211fc3d338.zip
FreeBSD-ports-ef2e327e4236be8023b39c5a29c70b211fc3d338.tar.gz
Document the new bsd.options.mk knobs.
PR: ports/180949 Submitted by: mat Approved by: bapt
Diffstat (limited to 'Mk/bsd.options.mk')
-rw-r--r--Mk/bsd.options.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk
index 43fc865..55778a7 100644
--- a/Mk/bsd.options.mk
+++ b/Mk/bsd.options.mk
@@ -68,6 +68,38 @@
#
# WITH - Set options from the command line
# WITHOUT - Unset options from the command line
+#
+#
+# The following knobs are there to simplfy the handling of OPTIONS in simple
+# cases :
+#
+# OPTIONS_SUB When defined it will add to PLIST_SUB:
+# Option enabled ${opt}=""
+# Option disabled ${opt}="@comment "
+#
+# ${opt}_CONFIGURE_ON When option is enabled, it will add its content to
+# the CONFIGURE_ARGS.
+# ${opt}_CONFIGURE_OFF When option is disabled, it will add its content to
+# the CONFIGURE_ARGS.
+# ${opt}_CONFIGURE_ENABLE Will add to CONFIGURE_ARGS:
+# Option enabled --enable-${content}
+# Option disabled --disable-${content}
+# ${opt}_CONFIGURE_WITH Will add to CONFIGURE_ARGS:
+# Option enabled --with-${content}
+# Option disabled --without-${content}
+#
+# ${opt}_CMAKE_ON When option is enabled, it will add its content to
+# the CMAKE_ARGS.
+# ${opt}_CMAKE_OFF When option is disabled, it will add its content to
+# the CMAKE_ARGS.
+#
+# For each of CFLAGS CXXFLAGS LDFLAGS CONFIGURE_ENV MAKE_ENV USES DISTFILES,
+# defining ${opt}_${variable} will add it to the actual variable when the
+# option is enabled.
+#
+# For each of the depends target PKG EXTRACT PATCH FETCH BUILD LIB RUN,
+# defining ${opt}_${deptype}_DEPENDS will add it to the actual dependency when
+# the option is enabled.
##
# Set all the options available for the ports, beginning with the
OpenPOWER on IntegriCloud