aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses/bison.mk
blob: 57e491fb5528c54eefdb38a72c1e92d7ef3be0ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $FreeBSD$
#
# handle dependency on the bison port
#
# MAINTAINER: portmgr@FreeBSD.org
#
# Feature:  bison
# Usage:    USES=bison or USES=bison:ARGS
# Valid ARGS    build (default, implicit), run, both
#
#
.if !defined(_INCLUDE_BISON_MK)
_INCLUDE_BISON_MK=  yes

_BISON_DEPENDS= bison:${PORTSDIR}/devel/bison

.if !defined(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}] specifed
.endif

.endif