diff options
author | Ade Lovett <ade@FreeBSD.org> | 2007-10-17 10:13:01 +0000 |
---|---|---|
committer | Ade Lovett <ade@FreeBSD.org> | 2007-10-17 10:13:01 +0000 |
commit | dbd39ca660cafa3d1f2acebf05c86bf17a035ff8 (patch) | |
tree | 5d14b5c3a50461b8a6096fcc383dc2181cb624b7 /ports-mgmt/portmk | |
parent | - Mark Broken does not work with irc/irssi-0.8.12 (diff) |
Migration from bison 1.x to 2.x
PR: 117086
Tested by: -exp runs
Notes
Notes:
svn path=/head/; revision=201613
Diffstat (limited to 'ports-mgmt/portmk')
-rw-r--r-- | ports-mgmt/portmk/Mk/bsd.port.mk | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/ports-mgmt/portmk/Mk/bsd.port.mk b/ports-mgmt/portmk/Mk/bsd.port.mk index c3b9574cdd11..5fa34b6df8d5 100644 --- a/ports-mgmt/portmk/Mk/bsd.port.mk +++ b/ports-mgmt/portmk/Mk/bsd.port.mk @@ -361,7 +361,10 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # - If set, this port uses the GNU version of the ghostscript # software instead of the GPL version, which is used otherwise. ## -# USE_BISON - If set, this port uses bison for building. +# USE_BISON - Implies that the port uses bison in one way or another: +# 'yes' (backwards compatibility) - use bison for building +# new features: 'build', 'run', 'both', implying build, +# runtime, and both build/run dependencies ## # USE_IMAKE - If set, this port uses imake. Implies USE_X_PREFIX. # XMKMF - Set to path of `xmkmf' if not in $PATH @@ -2039,7 +2042,26 @@ RUN_DEPENDS+= ${_GL_${_component}_RUN_DEPENDS} .endif .if defined(USE_BISON) -BUILD_DEPENDS+= bison:${PORTSDIR}/devel/bison +_BISON_DEPENDS= bison:${PORTSDIR}/devel/bison + +# XXX: backwards compatibility +. if ${USE_BISON:L} == "yes" +BUILD_DEPENDS+= ${_BISON_DEPENDS} +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(_PERL_REFACTORING_COMPLETE) |