diff options
author | linimon <linimon@FreeBSD.org> | 2003-12-30 05:38:36 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2003-12-30 05:38:36 +0800 |
commit | fedb62f09079ea9f7b27e902b64a43e408f6d318 (patch) | |
tree | 8773eab410a0a57d0849453e5000908ae1b6fcf8 /databases/mysql-connector-java | |
parent | 8f91d26f5ca602dc2e8f5e3f0153d480fb7be82c (diff) | |
download | freebsd-ports-gnome-fedb62f09079ea9f7b27e902b64a43e408f6d318.tar.gz freebsd-ports-gnome-fedb62f09079ea9f7b27e902b64a43e408f6d318.tar.zst freebsd-ports-gnome-fedb62f09079ea9f7b27e902b64a43e408f6d318.zip |
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
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 \ |