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
|
2010-01-25 09:54:37 +01:00
|
|
|
PORTVERSION= 5.1.11
|
2000-04-25 15:59:18 +02:00
|
|
|
CATEGORIES= databases java
|
2005-01-11 12:44:39 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MYSQL}
|
|
|
|
MASTER_SITE_SUBDIR= Connector-J
|
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
|
|
|
|
2005-02-22 22:17:44 +01:00
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j
|
2005-01-14 00:35:36 +01:00
|
|
|
|
2010-01-25 09:54:37 +01:00
|
|
|
CONFLICTS= mysql-connector-java*-5.0.*
|
|
|
|
|
2004-05-10 08:32:01 +02:00
|
|
|
USE_JAVA= yes
|
2007-10-02 23:17:32 +02:00
|
|
|
JAVA_VERSION= 1.3+
|
2003-12-29 22:38:36 +01:00
|
|
|
BUILDDIR= ${WRKDIR}/${DISTNAME}
|
|
|
|
APIDOCSDIR= ${DOCSDIR}/javadoc
|
2005-07-06 18:10:23 +02:00
|
|
|
SRCDIR= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
JAVADOCDIR= ${WRKDIR}/${DISTNAME}/javadoc
|
2003-11-05 16:33:56 +01:00
|
|
|
DESTJARFILE= ${PORTNAME}.jar
|
2005-10-22 14:50:56 +02:00
|
|
|
EXTRADOCS= README CHANGES docs/connector-j.html docs/connector-j.pdf
|
2003-11-05 16:33:56 +01:00
|
|
|
JARFILE= ${DISTNAME}-bin.jar
|
2010-01-25 09:54:37 +01:00
|
|
|
JDCLASSPATH= ${SRCDIR}:${CLASSPATH}
|
2002-11-23 00:44:52 +01:00
|
|
|
|
2010-01-25 09:54:37 +01:00
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
|
2004-05-10 08:32:01 +02:00
|
|
|
|
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
|
|
|
|
2004-08-08 04:34:29 +02:00
|
|
|
do-build:
|
2002-05-22 21:44:01 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-07-06 18:10:23 +02:00
|
|
|
@${MKDIR} ${JAVADOCDIR} && (cd ${SRCDIR}; \
|
2006-07-28 07:34:16 +02:00
|
|
|
${JAVADOC} -quiet -breakiterator \
|
|
|
|
-d ${JAVADOCDIR} -package \
|
|
|
|
-classpath ${JDCLASSPATH} \
|
2004-08-06 20:34:36 +02:00
|
|
|
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:
|
2005-02-22 22:17:44 +01:00
|
|
|
@${ECHO_MSG} -n ">> Installing .jar files..."
|
2003-11-05 16:33:56 +01:00
|
|
|
@${INSTALL_DATA} ${BUILDDIR}/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
|
2005-02-22 22:17:44 +01:00
|
|
|
@${ECHO_MSG} " [ 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)
|
2005-02-22 22:17:44 +01:00
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
2002-11-23 00:44:52 +01:00
|
|
|
@${MKDIR} ${APIDOCSDIR}
|
2005-09-14 18:41:23 +02:00
|
|
|
@cd ${JAVADOCDIR} && for src in $$( ${FIND} . ) ; do \
|
|
|
|
dst=${APIDOCSDIR}$${src#.} ; \
|
|
|
|
if ${TEST} -d $$src ; then \
|
|
|
|
${MKDIR} $$dst ; \
|
|
|
|
else \
|
|
|
|
${INSTALL_DATA} $$src $$dst ; \
|
|
|
|
fi \
|
|
|
|
done
|
2005-07-06 18:10:23 +02:00
|
|
|
@for extradoc in ${EXTRADOCS} ; do \
|
|
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/$$extradoc ${DOCSDIR} ; \
|
2003-11-05 16:33:56 +01:00
|
|
|
done
|
2005-02-22 22:17:44 +01:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2000-09-05 04:09:27 +02:00
|
|
|
.endif
|
|
|
|
|
2003-11-13 22:15:55 +01:00
|
|
|
.include <bsd.port.mk>
|