2003-11-05 16:33:56 +01:00
|
|
|
# New ports collection makefile for: mysql-connector-java
|
|
|
|
# Date created: 8 October 2003
|
|
|
|
# Whom: Matthew Seaman <m.seaman@infracaninophile.co.uk>
|
2000-01-29 23:23:06 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-11-05 16:33:56 +01:00
|
|
|
PORTNAME= mysql-connector-java
|
2004-10-12 08:55:34 +02:00
|
|
|
PORTVERSION= 3.0.15
|
2000-04-25 15:59:18 +02:00
|
|
|
CATEGORIES= databases java
|
2004-05-30 21:28:24 +02:00
|
|
|
MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/Connector-J/ \
|
2003-11-05 16:33:56 +01:00
|
|
|
http://www.softagency.co.jp/MySQL/Downloads/Connector-J/ \
|
|
|
|
ftp://sunsite.dk/mirrors/mysql/Downloads/Connector-J/ \
|
|
|
|
http://mysql.mediatraffic.fi/Downloads/Connector-J/ \
|
|
|
|
ftp://filepile.tiscali.de/mirror/mysql/Downloads/Connector-J/ \
|
|
|
|
http://mirrors.tilian.co.uk/mysql.com/Downloads/Connector-J/ \
|
|
|
|
ftp://ftp.rtfm.no/pub/mysql/Downloads/Connector-J/ \
|
|
|
|
http://www.mysql.cz/Downloads/Connector-J/ \
|
|
|
|
ftp://ftp.u-paris10.fr/mysql.com/Downloads/Connector-J/ \
|
2004-05-30 21:28:24 +02:00
|
|
|
http://mysql.proserve.nl/Downloads/Connector-J/ \
|
2003-11-05 16:33:56 +01:00
|
|
|
ftp://ftp.free.fr/pub/MySQL/Downloads/Connector-J/
|
2004-10-12 08:55:34 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-ga
|
2000-01-29 23:23:06 +01:00
|
|
|
|
2003-11-05 16:33:56 +01:00
|
|
|
MAINTAINER= m.seaman@infracaninophile.co.uk
|
|
|
|
COMMENT= MySQL Connector/J: JDBC interface for MySQL
|
2000-01-29 23:23:06 +01:00
|
|
|
|
2003-12-29 22:38:36 +01:00
|
|
|
.if !defined(WITHOUT_COMPILE)
|
|
|
|
|
2004-08-06 20:34:36 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/java/classes/junit.jar:${PORTSDIR}/java/junit
|
2004-05-10 08:32:01 +02:00
|
|
|
USE_JAVA= yes
|
2004-08-06 20:34:36 +02:00
|
|
|
USE_ANT= yes
|
2004-05-10 08:32:01 +02:00
|
|
|
JAVA_VERSION= 1.4+
|
2004-08-06 20:34:36 +02:00
|
|
|
ALL_TARGET= clean compile-driver
|
2003-11-05 16:33:56 +01:00
|
|
|
BUILDDIR= ${WRKDIR}/build-mysql-jdbc/${DISTNAME}
|
2003-12-29 22:38:36 +01:00
|
|
|
|
|
|
|
.else
|
|
|
|
|
2004-05-10 08:32:01 +02:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.2+
|
2003-12-29 22:38:36 +01:00
|
|
|
BUILDDIR= ${WRKDIR}/${DISTNAME}
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
APIDOCSDIR= ${DOCSDIR}/javadoc
|
2003-11-05 16:33:56 +01:00
|
|
|
DESTJARFILE= ${PORTNAME}.jar
|
|
|
|
EXTRAJARS= jdbc2_0-stdext.jar jta-spec1_0_1.jar
|
|
|
|
EXTRADOCS= README CHANGES
|
|
|
|
JARFILE= ${DISTNAME}-bin.jar
|
|
|
|
JDCLASSPATH= ${WRKSRC}:${WRKSRC}/lib/jdbc2_0-stdext.jar:${WRKSRC}/lib/jta-spec1_0_1.jar:${CLASSPATH}
|
2002-11-23 00:44:52 +01:00
|
|
|
|
2004-05-10 08:32:01 +02:00
|
|
|
PLIST_FILES= share/java/classes/jdbc2_0-stdext.jar \
|
|
|
|
share/java/classes/jta-spec1_0_1.jar \
|
|
|
|
share/java/classes/mysql-connector-java.jar
|
|
|
|
|
2003-11-13 22:15:55 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= *
|
2003-11-05 16:33:56 +01:00
|
|
|
.endif
|
2002-05-22 21:44:01 +02:00
|
|
|
|
2003-12-29 22:38:36 +01:00
|
|
|
pre-fetch:
|
2004-02-07 21:43:25 +01:00
|
|
|
@${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} ""
|
|
|
|
@${ECHO_MSG} "This port requires JDK 1.4.x or better to compile, but the"
|
|
|
|
@${ECHO_MSG} "JDBC driver will operate with JVM 1.2.x or better"
|
|
|
|
@${ECHO_MSG} ""
|
2003-12-29 22:38:36 +01:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_COMPILE)
|
2004-08-08 04:34:29 +02:00
|
|
|
post-build:
|
|
|
|
.else
|
|
|
|
do-build:
|
2003-12-29 22:38:36 +01:00
|
|
|
.endif
|
2002-05-22 21:44:01 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-08-06 20:34:36 +02:00
|
|
|
@${MKDIR} ${BUILDDIR}/doc && (cd ${BUILD_WRKSRC}; \
|
|
|
|
${JAVADOC} -d ${BUILDDIR}/doc -package \
|
|
|
|
-classpath ${JDCLASSPATH} \
|
|
|
|
com.mysql.jdbc org.gjt.mm.mysql)
|
2002-05-22 21:44:01 +02:00
|
|
|
.endif
|
2000-01-29 23:23:06 +01:00
|
|
|
|
2002-11-23 00:44:52 +01:00
|
|
|
do-install: do-install-jar do-install-apidocs
|
|
|
|
|
|
|
|
do-install-jar:
|
2003-11-05 16:33:56 +01:00
|
|
|
@${ECHO_CMD} -n ">> Installing .jar files..."
|
2002-11-23 00:44:52 +01:00
|
|
|
@${MKDIR} ${JAVAJARDIR}
|
2003-11-05 16:33:56 +01:00
|
|
|
@${INSTALL_DATA} ${BUILDDIR}/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
|
|
|
|
@for extrajar in ${EXTRAJARS} ; do \
|
|
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/lib/$$extrajar ${JAVAJARDIR} ; \
|
|
|
|
done
|
|
|
|
@${ECHO_CMD} " [ DONE ]"
|
2002-05-22 21:44:01 +02:00
|
|
|
|
2002-11-23 00:44:52 +01:00
|
|
|
do-install-apidocs:
|
2002-05-22 21:44:01 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-11-05 16:33:56 +01:00
|
|
|
@${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..."
|
2002-11-23 00:44:52 +01:00
|
|
|
@${MKDIR} ${APIDOCSDIR}
|
2003-11-05 16:33:56 +01:00
|
|
|
@${CP} -r ${BUILDDIR}/doc/* ${APIDOCSDIR}
|
|
|
|
@for extradoc in ${EXTRADOCS} ; do \
|
|
|
|
${INSTALL_DATA} ${BUILDDIR}/$$extradoc ${DOCSDIR} ; \
|
|
|
|
done
|
|
|
|
@${ECHO_CMD} " [ DONE ]"
|
2000-09-05 04:09:27 +02:00
|
|
|
.endif
|
|
|
|
|
2003-11-13 22:15:55 +01:00
|
|
|
.include <bsd.port.mk>
|