freebsd-ports/Mk/Uses/bison.mk
Baptiste Daroussin 8cea2b0147 Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched
This gives more time for tools to get updated, available in packages etc before
bothering users
2015-10-15 07:36:38 +00:00

31 lines
661 B
Makefile

# $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:${PORTSDIR}/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}
.else
IGNORE= USES=bison - invalid args: [${bison_ARGS}] specified
.endif
.endif