diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2003-12-29 21:38:36 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2003-12-29 21:38:36 +0000 |
commit | a502f0a20db95763ae4a963dd03c9089a6a7f79a (patch) | |
tree | 73cbee707bb2cc810aa44e1d0314cde1df231089 /databases/mysql-connector-java | |
parent | 64a29ef092cc6da694e5038acf8836d803b600c0 (diff) |
As documented at
http://www.mysql.com/documentation/connector-j/index.html#id2800748
MySQL Connector/J really does need JDK 1.4.x to compile. Use of
apache-ant appears to side-step all of the effects of the USE_JAVA
knob from bsd.java.mk, so all previous testing was actually using JDK 1.4.2
to do the compilation step.
Since the distfile contains a pre-compiled .jar file, which will work with
any Java-2 JVM, provide a WITHOUT_BUILD option.
PR: ports/59993
Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk> (maintainer)
Noticed by: Aristedes Maniatis
Notes
Notes:
svn path=/head/; revision=96913
Diffstat (limited to 'databases/mysql-connector-java')
-rw-r--r-- | databases/mysql-connector-java/Makefile | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/databases/mysql-connector-java/Makefile b/databases/mysql-connector-java/Makefile index 4b001c39bc58..83cee47920f6 100644 --- a/databases/mysql-connector-java/Makefile +++ b/databases/mysql-connector-java/Makefile @@ -26,15 +26,25 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-stable MAINTAINER= m.seaman@infracaninophile.co.uk COMMENT= MySQL Connector/J: JDBC interface for MySQL +.if !defined(WITHOUT_COMPILE) + BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant \ ${LOCALBASE}/share/java/classes/junit.jar:${PORTSDIR}/java/junit -USE_JAVA= 1.2+ +USE_JAVA= 1.4+ NEED_JAVAC= YES ANT?= ${LOCALBASE}/bin/ant ANT_TARGET= clean compile-driver -APIDOCSDIR= ${DOCSDIR}/javadoc BUILDDIR= ${WRKDIR}/build-mysql-jdbc/${DISTNAME} + +.else + +USE_JAVA= 1.2+ +BUILDDIR= ${WRKDIR}/${DISTNAME} + +.endif + +APIDOCSDIR= ${DOCSDIR}/javadoc DESTJARFILE= ${PORTNAME}.jar EXTRAJARS= jdbc2_0-stdext.jar jta-spec1_0_1.jar EXTRADOCS= README CHANGES @@ -45,8 +55,20 @@ JDCLASSPATH= ${WRKSRC}:${WRKSRC}/lib/jdbc2_0-stdext.jar:${WRKSRC}/lib/jta-spec1_ PORTDOCS= * .endif +pre-fetch: + @${ECHO} "" + @${ECHO} "You may use the following build options:" + @${ECHO} "" + @${ECHO} " WITHOUT_COMPILE-yes Install the pre-compiled .jar file" + @${ECHO} "" + @${ECHO} "This port requires JDK 1.4.x or better to compile, but the" + @${ECHO} "JDBC driver will operate with JVM 1.2.x or better" + @${ECHO} "" + do-build: +.if !defined(WITHOUT_COMPILE) @cd ${WRKSRC} && ${ANT} ${ANT_TARGET} +.endif .if !defined(NOPORTDOCS) @${MKDIR} ${BUILDDIR}/doc && cd ${WRKSRC} && \ ${JAVADOC} -d ${BUILDDIR}/doc -package \ |