aboutsummaryrefslogtreecommitdiffstats
path: root/misc/sloccount/Makefile
blob: a910118f6e2b22612302c80b4051745949c221f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Created by: ijliao
# $FreeBSD$

PORTNAME=   sloccount
PORTVERSION=    2.26
CATEGORIES= misc
MASTER_SITES=   http://www.dwheeler.com/sloccount/

MAINTAINER= freaky@aagh.net
COMMENT=    Counts physical Source Lines of Code (SLOC)

USES=       perl5

MAKEFILE=   makefile
INSTALL_TARGET= install_programs install_man

PORTDOCS=   ChangeLog README TODO sloccount.html

MAN1=       sloccount.1
MANCOMPRESSED=  yes

NO_STAGE=   yes
post-install:
.for file in lexcount1 c_count java_count php_count
    @${STRIP_CMD} ${PREFIX}/bin/${file}
.endfor
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for docs in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>