freebsd-ports/Mk/Uses/makeinfo.mk
Jung-uk Kim f872930d0e Set MAKEINFO to the full path of makeinfo when USES=makeinfo is set.
PR:		221027
Reviewed by:	mat
Approved by:	portmgr (antoine)
2017-07-28 21:45:20 +00:00

26 lines
463 B
Makefile

# $FreeBSD$
#
# handle dependency on the makeinfo port
#
# Feature: makeinfo
# Usage: USES=makeinfo
# Valid ARGS: none
#
# MAINTAINER: portmgr@FreeBSD.org
.if !defined(_INCLUDE_USES_MAKEINFO_MK)
_INCLUDE_USES_MAKEINFO_MK= yes
.if !empty(makeinfo_ARGS)
IGNORE= USES=makeinfo - expects no arguments
.endif
.if exists(/usr/bin/makeinfo)
MAKEINFO?= /usr/bin/makeinfo
.else
BUILD_DEPENDS+= makeinfo:print/texinfo
MAKEINFO?= ${LOCALBASE}/bin/makeinfo
.endif
.endif