svn commit: r265330 - projects/bmake/pkgs/pseudo/toolchain

Simon J. Gerraty sjg at FreeBSD.org
Sun May 4 16:39:19 UTC 2014


Author: sjg
Date: Sun May  4 16:39:18 2014
New Revision: 265330
URL: http://svnweb.freebsd.org/changeset/base/265330

Log:
  We can now leverage bsd.opts.mk to use MK_* to control what we build.

Modified:
  projects/bmake/pkgs/pseudo/toolchain/Makefile.depend

Modified: projects/bmake/pkgs/pseudo/toolchain/Makefile.depend
==============================================================================
--- projects/bmake/pkgs/pseudo/toolchain/Makefile.depend	Sun May  4 16:38:21 2014	(r265329)
+++ projects/bmake/pkgs/pseudo/toolchain/Makefile.depend	Sun May  4 16:39:18 2014	(r265330)
@@ -4,9 +4,16 @@
 
 DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,}
 
-DIRDEPS = \
-	pkgs/pseudo/clang \
-	pkgs/pseudo/gcc \
-	usr.bin/xinstall \
+.if !defined(MK_CLANG)
+.include "${SRCTOP}/share/mk/bsd.opts.mk"
+.endif
+
+DIRDEPS= usr.bin/xinstall 
+.if ${MK_CLANG} == "yes"
+DIRDEPS+= pkgs/pseudo/clang
+.endif
+.if ${MK_GCC} == "yes"
+DIRDEPS+= pkgs/pseudo/gcc
+.endif
 
 .include <dirdeps.mk>


More information about the svn-src-projects mailing list