Index: head/Mk/Uses/bison.mk =================================================================== --- head/Mk/Uses/bison.mk (revision 528171) +++ head/Mk/Uses/bison.mk (revision 528172) @@ -1,33 +1,35 @@ # $FreeBSD$ # # handle dependency on the bison port # # Feature: bison # Usage: USES=bison or USES=bison:ARGS # Valid ARGS: build (default, implicit), run, both # # MAINTAINER: portmgr@FreeBSD.org .if !defined(_INCLUDE_USES_BISON_MK) _INCLUDE_USES_BISON_MK= yes _BISON_DEPENDS= bison:devel/bison .if empty(bison_ARGS) bison_ARGS= build .endif .if ${bison_ARGS} == "build" BUILD_DEPENDS+= ${_BISON_DEPENDS} .elif ${bison_ARGS} == "run" RUN_DEPENDS+= ${_BISON_DEPENDS} .elif ${bison_ARGS} == "both" BUILD_DEPENDS+= ${_BISON_DEPENDS} RUN_DEPENDS+= ${_BISON_DEPENDS} .elif ${bison_ARGS} == "alias" BINARY_ALIAS+= bison=byacc +.elif ${bison_ARGS} == "wrapper" +BINARY_WRAPPERS+= bison .else IGNORE= USES=bison - invalid args: [${bison_ARGS}] specified .endif .endif Index: head/Mk/Wrappers/bison =================================================================== --- head/Mk/Wrappers/bison (nonexistent) +++ head/Mk/Wrappers/bison (revision 528172) @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ + +# This wrappers allows to deals build system calling bison with certain long option +# and messing with arguments orders + +case " $@ " in +*" --version "*) echo "bison (GNU bison 3.5.2)" ; exit 0 ;; +esac + +for arg; do + case "$arg" in + *.y) inputfile="$arg" ;; + --verbose|-v) ;; # ignore + *) args="$args $arg" ;; + esac +done +exec byacc -L $args $inputfile Property changes on: head/Mk/Wrappers/bison ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property