[Midnightbsd-cvs] mports: bsd.mport.mk: Switch to Bison 2.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Apr 14 01:57:37 EDT 2008


Log Message:
-----------
Switch to Bison 2.  This gives us build, run and both (for build depends, run depends and both)

Use this instead of yes.  yes currently implies build.

Modified Files:
--------------
    mports/Mk:
        bsd.mport.mk (r1.91 -> r1.92)

-------------- next part --------------
Index: bsd.mport.mk
===================================================================
RCS file: /home/cvs/mports/Mk/bsd.mport.mk,v
retrieving revision 1.91
retrieving revision 1.92
diff -L Mk/bsd.mport.mk -L Mk/bsd.mport.mk -u -r1.91 -r1.92
--- Mk/bsd.mport.mk
+++ Mk/bsd.mport.mk
@@ -1823,7 +1823,26 @@
 
 
 .if defined(USE_BISON)
-BUILD_DEPENDS+=	bison:${PORTSDIR}/devel/bison
+_BUILD_DEPENDS+=	bison:${PORTSDIR}/devel/bison
+
+# XXX: backwards compatibility
+.	if ${USE_BISON:L} == "yes"
+USE_BISON=	build
+pre-everything::
+	@${ECHO_MSG} "WARNING: USE_BISON=yes deprecated, use build/run/both"
+.	endif
+  	 
+.	if ${USE_BISON:L} == "build"
+BUILD_DEPENDS+=	${_BISON_DEPENDS}
+.	elif ${USE_BISON:L} == "run"
+RUN_DEPENDS+=	${_BISON_DEPENDS}
+.	elif ${USE_BISON:L} == "both"
+BUILD_DEPENDS+=	${_BISON_DEPENDS}
+RUN_DEPENDS+=	${_BISON_DEPENDS}
+.	else
+IGNORE=	uses unknown USE_BISON construct
+.	endif
+
 .endif
 
 .if defined(USE_LOCAL_MK)


More information about the Midnightbsd-cvs mailing list