mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
57bea98035
- Add missing colon Approved by: bapt@ (portmgr@)
33 lines
666 B
Makefile
33 lines
666 B
Makefile
# $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_USES_BISON_MK)
|
|
_INCLUDE_USES_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
|