diff options
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/jasperreports/Makefile | 82 | ||||
-rw-r--r-- | databases/jasperreports/distinfo | 4 | ||||
-rw-r--r-- | databases/jasperreports/pkg-descr | 11 |
4 files changed, 98 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 334cff379163..6e14edbb7cda 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -66,6 +66,7 @@ SUBDIR += gtksql SUBDIR += hk_classes SUBDIR += hs-hsql + SUBDIR += jasperreports SUBDIR += java-sqlrelay SUBDIR += jdb SUBDIR += jdbc-oracle8i diff --git a/databases/jasperreports/Makefile b/databases/jasperreports/Makefile new file mode 100644 index 000000000000..21a65253115e --- /dev/null +++ b/databases/jasperreports/Makefile @@ -0,0 +1,82 @@ +# New ports collection makefile for: jasperreports +# Date created: 20 May 2005 +# Whom: Thierry Thomas <thierry@pompo.net> +# +# $FreeBSD$ +# + +PORTNAME= jasperreports +PORTVERSION= 0.6.8 +CATEGORIES= databases print java +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTFILES= ${PORTNAME}-${PORTVERSION}.jar ${PORTNAME}-${PORTVERSION}-applet.jar + +MAINTAINER= thierry@FreeBSD.org +COMMENT= JasperReports is a powerful open source Java reporting tool + +RUN_DEPENDS= ${JAVALIBDIR}/itext.jar:${PORTSDIR}/devel/itext \ + ${JAVALIBDIR}/xalan.jar:${PORTSDIR}/textproc/xalan-j \ + ${JAVALIBDIR}/poi.jar:${PORTSDIR}/textproc/jakarta-poi \ + ${JAVALIBDIR}/commons-digester.jar:${PORTSDIR}/textproc/jakarta-commons-digester + +.if !defined(WITHOUT_MYSQL) +RUN_DEPENDS+= ${JAVALIBDIR}/mysql-connector-java.jar:${PORTSDIR}/databases/mysql-connector-java +.endif + +.if !defined(WITHOUT_PGSQL) +RUN_DEPENDS+= ${JAVALIBDIR}/postgresql.jar:${PORTSDIR}/databases/postgresql-jdbc +.endif + +USE_JAVA= yes +JAVA_VERSION= 1.2+ +NO_BUILD= yes +EXTRACT_CMD= ${CP} +EXTRACT_BEFORE_ARGS= # empty +EXTRACT_AFTER_ARGS= . + +PLIST_FILES= ${DISTFILES:S|^|%%JAVAJARDIR%%/|:S|-${PORTVERSION}||} + +.include <bsd.port.pre.mk> + +.if exists(${JAVALIBDIR}/classes12.zip) +WITH_ORACLE8= yes +.endif +.if defined(WITH_ORACLE8) +RUN_DEPENDS+= ${JAVALIBDIR}/classes12.zip:${PORTSDIR}/databases/jdbc-oracle8i +.endif + +.if exists(${JAVALIBDIR}/ojdbc14.zip) +WITH_ORACLE9= yes +.endif +.if defined(WITH_ORACLE9) +RUN_DEPENDS+= ${JAVALIBDIR}/ojdbc14.zip:${PORTSDIR}/databases/jdbc-oracle9i +.endif + +pre-everything:: + @${ECHO_MSG} '*********************************************************' + @${ECHO_MSG} '* You need at least a JDBC driver. *' +.if !defined(WITHOUT_MYSQL) + @${ECHO_MSG} '* Define WITHOUT_MYSQL to remove MySQL support. *' +.endif +.if !defined(WITHOUT_PGSQL) + @${ECHO_MSG} '* Define WITHOUT_PGSQL to remove PostgreSQL support. *' +.endif +.if !defined(WITH_ORACLE8) + @${ECHO_MSG} '* Define WITH_ORACLE8 to add Oracle 8i support. *' +.endif +.if !defined(WITH_ORACLE9) + @${ECHO_MSG} '* Define WITH_ORACLE9 to add Oracle 9i support. *' +.endif + @${ECHO_MSG} '*********************************************************' + +post-extract: +.for jf in ${DISTFILES} + ${MV} ${WRKDIR}/${jf} ${WRKDIR}/${jf:S|-${PORTVERSION}||} +.endfor + +do-install: + ${INSTALL_DATA} ${DISTFILES:S|^|${WRKDIR}/|:S|-${PORTVERSION}||} \ + ${JAVAJARDIR} + +.include <bsd.port.post.mk> diff --git a/databases/jasperreports/distinfo b/databases/jasperreports/distinfo new file mode 100644 index 000000000000..506e2979dbb2 --- /dev/null +++ b/databases/jasperreports/distinfo @@ -0,0 +1,4 @@ +MD5 (jasperreports-0.6.8.jar) = 3ec1bb4d0a5cc5fbf723ff64b197427c +SIZE (jasperreports-0.6.8.jar) = 607320 +MD5 (jasperreports-0.6.8-applet.jar) = a6b5b18ba6bb007a4b6df319d919b754 +SIZE (jasperreports-0.6.8-applet.jar) = 118296 diff --git a/databases/jasperreports/pkg-descr b/databases/jasperreports/pkg-descr new file mode 100644 index 000000000000..7dea46cd6ec1 --- /dev/null +++ b/databases/jasperreports/pkg-descr @@ -0,0 +1,11 @@ +JasperReports is a powerful open source Java reporting tool that has the +ability to deliver rich content onto the screen, to the printer or into +PDF, HTML, XLS, CSV and XML files. + +It is entirely written in Java and can be used in a variety of Java enabled +applications, including J2EE or Web applications, to generate dynamic content. + +Its main purpose is to help creating page oriented, ready to print documents in +a simple and flexible manner. + +WWW: http://jasperreports.sourceforge.net/ |