Tweak ports-mgmt/porttree version 1.1.r114_1
[dports.git] / ports-mgmt / pkgs_which / Makefile
1 PORTNAME=       pkgs_which
2 PORTVERSION=    0.4.1
3 CATEGORIES=     ports-mgmt perl5
4 MASTER_SITES=   # none
5 DISTFILES=      # none
6
7 MAINTAINER=     mandree@FreeBSD.org
8 COMMENT=        Quickly find out which ports contributed to a file tree
9
10 LICENSE=        GPLv3
11
12 USES=           perl5
13 NO_BUILD=       yes
14 PLIST_FILES=    bin/${PORTNAME}
15
16 OPTIONS_DEFINE= DOCS
17
18 .include <bsd.port.options.mk>
19
20 .if ${PORT_OPTIONS:MDOCS}
21 PLIST_FILES+=   man/man1/${PORTNAME}.1.gz
22 .endif
23
24 do-install:
25                 ${MKDIR} ${STAGEDIR}${PREFIX}/bin
26                 ${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
27 .if ${PORT_OPTIONS:MDOCS}
28                 ${MKDIR} ${STAGEDIR}${PREFIX}/man/man1
29                 ${LOCALBASE}/bin/pod2man ${FILESDIR}/${PORTNAME} >${STAGEDIR}${PREFIX}/man/man1/${PORTNAME}.1
30 .endif
31
32 .include <bsd.port.mk>