mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
create bsd12 branch
This commit is contained in:
31
Mk/Uses/bison.mk
Normal file
31
Mk/Uses/bison.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
# $FreeBSD: head/Mk/Uses/bison.mk 411970 2016-03-27 01:23:25Z bapt $
|
||||
#
|
||||
# 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}
|
||||
.else
|
||||
IGNORE= USES=bison - invalid args: [${bison_ARGS}] specified
|
||||
.endif
|
||||
|
||||
.endif
|
||||
Reference in New Issue
Block a user