aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.options.mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-06-05 14:03:36 +0800
committerbapt <bapt@FreeBSD.org>2012-06-05 14:03:36 +0800
commitb8636259736cdcd5ea225b3ef572e841d89092f2 (patch)
tree71d24d044894054f63b478677f74d29642c8abf7 /Mk/bsd.options.mk
parent58a90df4a99f4c50b929d1ffeed6e63bd9d4652f (diff)
downloadfreebsd-ports-gnome-b8636259736cdcd5ea225b3ef572e841d89092f2.tar.gz
freebsd-ports-gnome-b8636259736cdcd5ea225b3ef572e841d89092f2.tar.zst
freebsd-ports-gnome-b8636259736cdcd5ea225b3ef572e841d89092f2.zip
Allow NO_OPTIONS_SORT to work with old OPTIONS
Requested by: dougb@
Diffstat (limited to 'Mk/bsd.options.mk')
-rw-r--r--Mk/bsd.options.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk
index cad2f00ade4c..a43603f02c7b 100644
--- a/Mk/bsd.options.mk
+++ b/Mk/bsd.options.mk
@@ -47,6 +47,9 @@ opt:= ${O}
. if !defined(optname)
optname:= ${O}
ALL_OPTIONS+= ${O}
+.if !defined(OPTIONS_DEFINE) || empty(OPTIONS_DEFINE:M${O})
+OPTIONS_DEFINE+= ${O}
+.endif
PORT_OPTIONS+= ${O}
. elif !defined(optdesc)
optdesc:= ${opt}