# $FreeBSD: head/Mk/Uses/makeinfo.mk 446854 2017-07-28 21:45:20Z jkim $
#
# 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:system/texinfo
MAKEINFO?=	${LOCALBASE}/bin/makeinfo
.endif

.endif
