# Created by: Matthias Andree <mandree@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_0_0/ports-mgmt/pkgs_which/Makefile 335075 2013-11-28 01:09:09Z mandree $

PORTNAME=	pkgs_which
PORTVERSION=	0.4.0
CATEGORIES=	ports-mgmt perl5
MASTER_SITES=	# none
DISTFILES=	# none

MAINTAINER=	mandree@FreeBSD.org
COMMENT=	Quickly find out which ports contributed to a file tree

LICENSE=	GPLv3

USES=		perl5
NO_BUILD=	yes
PLIST_FILES=	bin/${PORTNAME}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
PLIST_FILES+=	man/man1/${PORTNAME}.1.gz
.endif

do-install:
		${MKDIR} ${STAGEDIR}${PREFIX}/bin
		${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
		${MKDIR} ${STAGEDIR}${PREFIX}/man/man1
		${LOCALBASE}/bin/pod2man ${FILESDIR}/${PORTNAME} >${STAGEDIR}${PREFIX}/man/man1/${PORTNAME}.1
.endif

.include <bsd.port.mk>
