aboutsummaryrefslogtreecommitdiff
path: root/devel/java-findbugs/Makefile
blob: 5945059b814a29e9a09a11060975508c0e3ac3a0 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# New ports collection makefile for:   findbugs
# Date created:        19 December 2010
# Whom:                glewis
#
# $FreeBSD$
#

PORTNAME=	findbugs
PORTVERSION=	1.3.9
CATEGORIES=	devel java
MASTER_SITES=	SF
PKGNAMEPREFIX=	java-

MAINTAINER=	glewis@FreeBSD.org
COMMENT=	Find Bugs in Java Programs

RUN_DEPENDS=	java:${PORTSDIR}/java/javavmwrapper

LICENSE=	LGPL21
USE_JAVA=	yes
NO_BUILD=	yes

JAR_FILES=	annotations.jar \
		ant.jar \
		asm-3.1.jar \
		asm-analysis-3.1.jar \
		asm-commons-3.1.jar \
		asm-tree-3.1.jar \
		asm-util-3.1.jar \
		asm-xml-3.1.jar \
		bcel.jar \
		commons-lang-2.4.jar \
		dom4j-1.6.1.jar \
		${PORTNAME}.jar \
		${PORTNAME}-ant.jar \
		jFormatString.jar \
		jaxen-1.1.1.jar \
		jdepend-2.9.jar \
		jsr305.jar \
		mysql-connector-java-5.1.7-bin.jar

.for f in ${JAR_FILES}
PLIST_FILES+=		%%DATADIR%%/lib/${f}
.endfor
PLIST_FILES+=		%%DATADIR%%/bin/${PORTNAME} \
			bin/${PORTNAME}
PLIST_DIRS+=		%%DATADIR%%/lib \
			%%DATADIR%%/bin \
			%%DATADIR%%

.if !defined(NOPORTDOCS)
PORTDOCS=	*
.endif

.if !defined(NOPORTEXAMPLES)
PORTEXAMPLES=	*
.endif

do-install:
	@-${MKDIR} ${DATADIR}/lib
.for f in ${JAR_FILES}
	@${INSTALL_DATA} ${WRKSRC}/lib/${f} ${DATADIR}/lib/
.endfor
	@-${MKDIR} ${DATADIR}/bin
	@${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" \
		-e "s:%%JAVAJARDIR%%:${JAVAJARDIR}:" ${WRKSRC}/bin/${PORTNAME}2
	${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME}2 ${DATADIR}/bin/${PORTNAME}
	${LN} -sf ${DATADIR}/bin/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
.if !defined(NOPORTDOCS)
	@-${MKDIR} ${DOCSDIR}
.for f in LICENSE* README*
	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
	@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}/
.endif
.if !defined(NOPORTEXAMPLES)
	@-${MKDIR} ${EXAMPLESDIR}
	@cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${EXAMPLESDIR}/
	@cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${EXAMPLESDIR}/
.endif

.include <bsd.port.mk>