forked from opnsense/ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 1.04 KB
/
Makefile
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
# Created by: ijliao
# $FreeBSD$
PORTNAME= jfreechart
PORTVERSION= 1.0.17
CATEGORIES= java graphics
MASTER_SITES= SF/${PORTNAME}/1.%20JFreeChart/${PORTVERSION}
MAINTAINER= [email protected]
COMMENT= Free Java class library for generating charts
LICENSE= LGPL21
RUN_DEPENDS= ${JAVALIBDIR}/jcommon.jar:${PORTSDIR}/java/jcommon
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
BUILD_WRKSRC= ${WRKSRC}/ant
MAKE_ENV= LANG=en_US.UTF-8
.else
NO_BUILD= yes
.endif
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MCOMPILE}
ALL_TARGET+= javadoc
PORTDOCS= *
.endif
PLIST_FILES= %%JAVAJARDIR%%/jfreechart.jar
do-install:
${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MCOMPILE}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>