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/groff.mk
Normal file
31
Mk/Uses/groff.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
# $FreeBSD: head/Mk/Uses/groff.mk 441689 2017-05-25 14:04:48Z bapt $
|
||||
#
|
||||
# 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:text/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
|
||||
Reference in New Issue
Block a user