aboutsummaryrefslogtreecommitdiffstats
path: root/java/jcommon/Makefile
blob: bf6d25277f8d09030bfe9b0e7a22890e6ec60756 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   jcommon
PORTVERSION=    1.0.23
CATEGORIES= java devel
MASTER_SITES=   SF/jfreechart/3.%20JCommon/${PORTVERSION}

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Collection of useful classes used by JFreeChart and JFreeReport

LICENSE=    LGPL21

USES=       zip
USE_JAVA=   yes
JAVA_VERSION=   1.6+

OPTIONS_DEFINE= COMPILE DOCS
OPTIONS_DEFAULT=COMPILE
COMPILE_DESC=   Build from source

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MCOMPILE}
USE_ANT=    yes
ALL_TARGET= compile-xml
BUILD_WRKSRC=   ${WRKSRC}/ant
.else
NO_BUILD=   yes
.endif

.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MCOMPILE}
ALL_TARGET+=    javadoc
PORTDOCS=   *
.endif

PLIST_FILES=    %%JAVAJARDIR%%/jcommon.jar %%JAVAJARDIR%%/jcommon-xml.jar

do-install:
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-xml-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-xml.jar
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MCOMPILE}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>