Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/bison.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# handle dependency on the bison port | # handle dependency on the bison port | ||||
# | # | ||||
# Feature: bison | # Feature: bison | ||||
# Usage: USES=bison or USES=bison:ARGS | # Usage: USES=bison or USES=bison:ARGS | ||||
# Valid ARGS: build (default, implicit), run, both | # Valid ARGS: build (default, implicit), run, both | ||||
# | # | ||||
# MAINTAINER: portmgr@FreeBSD.org | # MAINTAINER: portmgr@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_BISON_MK) | .if !defined(_INCLUDE_USES_BISON_MK) | ||||
_INCLUDE_USES_BISON_MK= yes | _INCLUDE_USES_BISON_MK= yes | ||||
_BISON_DEPENDS= bison:${PORTSDIR}/devel/bison | _BISON_DEPENDS= bison:devel/bison | ||||
.if empty(bison_ARGS) | .if empty(bison_ARGS) | ||||
bison_ARGS= build | bison_ARGS= build | ||||
.endif | .endif | ||||
.if ${bison_ARGS} == "build" | .if ${bison_ARGS} == "build" | ||||
BUILD_DEPENDS+= ${_BISON_DEPENDS} | BUILD_DEPENDS+= ${_BISON_DEPENDS} | ||||
.elif ${bison_ARGS} == "run" | .elif ${bison_ARGS} == "run" | ||||
Show All 9 Lines |