aboutsummaryrefslogtreecommitdiffstats
path: root/java/jlint/Makefile
blob: d5c1e5fe8ff1d10cd434ac6a13936aa365ead14b (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
35
36
37
# New ports collection makefile for:    jlint
# Date created:     June 2, 2001
# Whom:         Ernst de Haan <znerd@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   jlint
PORTVERSION=    2.3
PORTREVISION=   1
CATEGORIES= java
MASTER_SITES=   http://artho.com/jlint/

MAINTAINER= znerd@FreeBSD.org
COMMENT=    Java program analyzer and checker

USE_REINPLACE=  YES

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502126
BROKEN=     "Does not compile on FreeBSD >= 5.x"
.endif

post-patch:
    @${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' ${WRKSRC}/jlint.sh

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/jlint ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/antic ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/jlint.sh ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/manual.pdf ${WRKSRC}/manual.html ${DOCSDIR}
.endif

.include <bsd.port.post.mk>