summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-06-01 15:17:51 +0000
committerpav <pav@FreeBSD.org>2007-06-01 15:17:51 +0000
commit1c97e68f1e8c96b2cddfd89e326ff377184152e6 (patch)
tree7ce22be8df1b479bddc85cb35f5757d8aee47818
parentaae93b87b9cddb091b779fdb94404339ddf35476 (diff)
downloadFreeBSD-src-1c97e68f1e8c96b2cddfd89e326ff377184152e6.zip
FreeBSD-src-1c97e68f1e8c96b2cddfd89e326ff377184152e6.tar.gz
Add bsd.port.options.mk, a stub to include parts of bsd.port.mk that handle
OPTIONS resolving. This will allow us to load bsd.port.mk in port Makefiles in three steps (options, pre, post), allowing us to manipulate USE_* flags conditionally on OPTIONS values. With hat: portmgr Reviewed by: ru MFC after: 1 week
-rw-r--r--share/mk/Makefile2
-rw-r--r--share/mk/bsd.port.options.mk8
2 files changed, 9 insertions, 1 deletions
diff --git a/share/mk/Makefile b/share/mk/Makefile
index 50504e9..7910a96 100644
--- a/share/mk/Makefile
+++ b/share/mk/Makefile
@@ -7,7 +7,7 @@ FILES+= bsd.files.mk bsd.incs.mk bsd.info.mk bsd.init.mk
FILES+= bsd.kmod.mk
FILES+= bsd.lib.mk bsd.libnames.mk bsd.links.mk bsd.man.mk bsd.nls.mk
FILES+= bsd.obj.mk bsd.own.mk
-FILES+= bsd.port.mk bsd.port.post.mk bsd.port.pre.mk bsd.port.subdir.mk
+FILES+= bsd.port.mk bsd.port.options.mk bsd.port.post.mk bsd.port.pre.mk bsd.port.subdir.mk
FILES+= bsd.prog.mk bsd.snmpmod.mk bsd.subdir.mk bsd.sys.mk bsd.symver.mk
FILES+= sys.mk version_gen.awk
NO_OBJ=
diff --git a/share/mk/bsd.port.options.mk b/share/mk/bsd.port.options.mk
new file mode 100644
index 0000000..e043cc2
--- /dev/null
+++ b/share/mk/bsd.port.options.mk
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+USEOPTIONSMK= yes
+INOPTIONSMK= yes
+
+.include <bsd.port.mk>
+
+.undef INOPTIONSMK
OpenPOWER on IntegriCloud