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

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

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

USE_JAVA=   yes
JAVA_VERSION=   1.6+

.if !defined(WITHOUT_COMPILE)
USE_ANT=    yes
ALL_TARGET= compile-xml
BUILD_WRKSRC=   ${WRKSRC}/ant
.else
NO_BUILD=   yes
.endif

.if !defined(NOPORTDOCS) && !defined(WITHOUT_COMPILE)
ALL_TARGET+=    javadoc
PORTDOCS=   *
.endif

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

pre-fetch:
    @${ECHO_MSG} ""
    @${ECHO_MSG} "You may use the following build options:"
    @${ECHO_MSG} ""
    @${ECHO_MSG} "    WITHOUT_COMPILE=yes    Install the pre-compiled .jar file"
    @${ECHO_MSG} ""

do-install:
    @${ECHO_MSG} -n  ">> Installing .jar files in ${JAVAJARDIR}/..."
    @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
    @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-xml-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}-xml.jar
    @${ECHO_MSG} " [DONE]"
.if !defined(NOPORTDOCS) && !defined(WITHOUT_COMPILE)
    @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
    @${MKDIR} ${DOCSDIR}
    @cd ${WRKSRC}/javadoc && ${FIND} . \
      | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
    @${ECHO_MSG} " [DONE]"
.endif

.include <bsd.port.mk>