diff options
Diffstat (limited to 'Mk/Uses/bison.mk')
-rw-r--r-- | Mk/Uses/bison.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Mk/Uses/bison.mk b/Mk/Uses/bison.mk new file mode 100644 index 000000000000..a11b76e63b62 --- /dev/null +++ b/Mk/Uses/bison.mk @@ -0,0 +1,27 @@ +# $FreeBSD$ +# +# handle dependency on the bison port +# +# MAINTAINER: portmgr@FreeBSD.org +# +.if !defined(_INCLUDE_BISON_MK) +_INCLUDE_BISON_MK= yes + +_BISON_DEPENDS= bison:${PORTSDIR}/devel/bison + +.if !defined(bison_ARGS) +BUILD_DEPENDS+= ${_BISON_DEPENDS} +.else +.if ${bison_ARGS} == "build" +BUILD_DEPENDS+= ${_BUILD_DEPENDS} +.elif ${bison_ARGS} == "run" +RUN_DEPENDS+= ${_BUILD_DEPENDS} +.elif ${bison_ARGS} == "both" +BUILD_DEPENDS+= ${_BISON_DEPENDS} +RUN_DEPENDS+= ${_BUILD_DEPENDS} +.else +IGNORE= Bad usage of USES= bison +.endif +.endif + +.endif |