summaryrefslogtreecommitdiff
path: root/Mk/Uses/groff.mk
blob: f62db7ee212950df63b25492388f891e30a4f37a (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
# handle dependency on groff
#
# Feature:	groff
# Usage:	USES=groff
# Valid ARGS:	build (default, implicit), run, both

.if !defined(_INCLUDE_USES_GROFF_MK)
_INCLUDE_USES_GROFF_MK=	yes

.  if !exists(/usr/bin/groff)
.    if empty(groff_ARGS)
groff_ARGS=	build
.    endif

_GROFF_DEPENDS=	groff:textproc/groff

.    if ${groff_ARGS} == "build"
BUILD_DEPENDS+=	${_GROFF_DEPENDS}
.    elif ${groff_ARGS} == "run"
RUN_DEPENDS+=	${_GROFF_DEPENDS}
.    elif ${groff_ARGS} == "both"
BUILD_DEPENDS+=	${_GROFF_DEPENDS}
RUN_DEPENDS+=	${_GROFF_DEPENDS}
.    else
IGNORE=	USES=groff - invalid args: [${groff_ARGS}] specified
.    endif
.  endif

.endif