aboutsummaryrefslogtreecommitdiffstats
path: root/databases/jasperreports/Makefile
blob: a39fb9b84b080edf31bdbb8878aadd272de89db7 (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
# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$

PORTNAME=   jasperreports
PORTVERSION=    5.5.2
CATEGORIES= databases print java
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/JasperReports%20${PORTVERSION}
DISTFILES=  ${PORTNAME}-${PORTVERSION}.jar ${PORTNAME}-applet-${PORTVERSION}.jar

MAINTAINER= ports@FreeBSD.org
COMMENT=    JasperReports is a powerful open source Java reporting tool

RUN_DEPENDS=    ${JAVALIBDIR}/itext.jar:devel/itext         \
        ${JAVALIBDIR}/xalan.jar:textproc/xalan-j        \
        ${JAVALIBDIR}/crimson.jar:textproc/crimson      \
        ${JAVALIBDIR}/poi.jar:textproc/apache-poi       \
        ${JAVALIBDIR}/jfreechart.jar:java/jfreechart    \
        ${LOCALBASE}/share/java/batik/batik.jar:graphics/batik  \
        ${JAVALIBDIR}/commons-beanutils.jar:java/jakarta-commons-beanutils\
        ${JAVALIBDIR}/commons-digester.jar:textproc/jakarta-commons-digester

OPTIONS_DEFINE= MYSQL PGSQL HSQLDB
OPTIONS_DEFAULT=MYSQL PGSQL

HSQLDB_DESC=    Install libraries required for HSQLDB

USE_JAVA=   yes
JAVA_VERSION=   1.6+
NO_BUILD=   yes
EXTRACT_CMD=    ${CP}
EXTRACT_BEFORE_ARGS=    # empty
EXTRACT_AFTER_ARGS= .

LICENSE=    LGPL3

PLIST_FILES=    ${DISTFILES:S|^|%%JAVAJARDIR%%/|:S|-${PORTVERSION}||}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMYSQL}
RUN_DEPENDS+=   ${JAVALIBDIR}/mysql-connector-java.jar:databases/mysql-connector-java
.else
RUN_DEPENDS+=   ${JAVALIBDIR}/log4j.jar:devel/log4j
.endif

.if ${PORT_OPTIONS:MPGSQL}
RUN_DEPENDS+=   ${JAVALIBDIR}/postgresql.jar:databases/postgresql-jdbc
.endif

.if ${PORT_OPTIONS:MHSQLDB}
RUN_DEPENDS+=   ${JAVALIBDIR}/hsqldb.jar:databases/hsqldb
.endif

post-extract:
.for jf in ${DISTFILES}
    ${MV} ${WRKDIR}/${jf} ${WRKDIR}/${jf:S|-${PORTVERSION}||}
.endfor

do-install:
    ${INSTALL_DATA} ${DISTFILES:S|^|${WRKDIR}/|:S|-${PORTVERSION}||}    \
        ${STAGEDIR}${JAVAJARDIR}

.include <bsd.port.mk>