1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/databases/mysql-connector-java50/Makefile
Ion-Mihai Tetcu 23b0729231 Routine update to the latest stable version. The big delta in the
version numbers is apparently mostly an exercise by MySQL AB to have
all their products with "matching" version numbers.  There are some
shiny new bits of extra functionality to justify the new major version
numbers though.
Quoting the release message:
   "This is the first generally-available, production release of
    Connector/J 5.0. Notice that Connector/J 3.1 has supported all
    MySQL-5.0 features other than XA, but this is the first
    generally-available release that "synchronizes" version numbers
    with the server (as well as adding support for XA).
    Version 5.0.3 is suitable for use with any MySQL version including
    MySQL-4.1, MySQL-5.0 or MySQL-5.1 beta."
The complete release announcement is at:
    http://lists.mysql.com/announce/382
On-line changelog is at:
    http://dev.mysql.com/doc/refman/5.0/en/cj-news.html
Upgrade notes:
    http://dev.mysql.com/doc/refman/5.0/en/cj-upgrading.html

PR:		ports/100931
Submitted by:	Matthew Seaman (maintainer)
2006-07-28 05:34:16 +00:00

109 lines
3.0 KiB
Makefile

# New ports collection makefile for: mysql-connector-java
# Date created: 8 October 2003
# Whom: Matthew Seaman <m.seaman@infracaninophile.co.uk>
#
# $FreeBSD$
#
PORTNAME= mysql-connector-java
PORTVERSION= 5.0.3
CATEGORIES= databases java
MASTER_SITES= ${MASTER_SITE_MYSQL}
MASTER_SITE_SUBDIR= Connector-J
MAINTAINER= m.seaman@infracaninophile.co.uk
COMMENT= MySQL Connector/J: JDBC interface for MySQL
RUN_DEPENDS= ${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j
.if !defined(WITHOUT_COMPILE)
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \
${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j
USE_JAVA= yes
USE_ANT= yes
JAVA_VERSION= 1.4+
ALL_TARGET= clean dist
MAKE_ARGS= -Djavalibdir=${JAVALIBDIR}
BUILDDIR= ${WRKDIR}/${DISTNAME}/build/${DISTNAME}
.else
USE_JAVA= yes
JAVA_VERSION= 1.2+
BUILDDIR= ${WRKDIR}/${DISTNAME}
.endif
APIDOCSDIR= ${DOCSDIR}/javadoc
SRCDIR= ${WRKDIR}/${DISTNAME}/src
JAVADOCDIR= ${WRKDIR}/${DISTNAME}/javadoc
DESTJARFILE= ${PORTNAME}.jar
EXTRAJARS= jdbc2_0-stdext.jar jta-spec1_0_1.jar
EXTRADOCS= README CHANGES docs/connector-j.html docs/connector-j.pdf
JARFILE= ${DISTNAME}-bin.jar
JDCLASSPATH= ${SRCDIR}:${SRCDIR}/lib/jdbc2_0-stdext.jar:${SRCDIR}/lib/jta-spec1_0_1.jar:${CLASSPATH}
PLIST_FILES= %%JAVAJARDIR%%/jdbc2_0-stdext.jar \
%%JAVAJARDIR%%/jta-spec1_0_1.jar \
%%JAVAJARDIR%%/mysql-connector-java.jar
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "You may use the following build options to override the"
@${ECHO_MSG} "default behaviour:"
@${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 can be made to operate with JVM 1.2.x or better"
@${ECHO_MSG} ""
.if !defined(WITHOUT_COMPILE)
post-build:
.else
do-build:
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${JAVADOCDIR} && (cd ${SRCDIR}; \
${JAVADOC} -quiet -breakiterator \
-d ${JAVADOCDIR} -package \
-classpath ${JDCLASSPATH} \
com.mysql.jdbc org.gjt.mm.mysql)
.endif
do-install: do-install-jar do-install-apidocs
do-install-jar:
@${ECHO_MSG} -n ">> Installing .jar files..."
@${INSTALL_DATA} ${BUILDDIR}/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
@for extrajar in ${EXTRAJARS} ; do \
${INSTALL_DATA} ${INSTALL_WRKSRC}/src/lib/$$extrajar ${JAVAJARDIR} ; \
done
@${ECHO_MSG} " [ DONE ]"
do-install-apidocs:
.if !defined(NOPORTDOCS)
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${APIDOCSDIR}
@cd ${JAVADOCDIR} && for src in $$( ${FIND} . ) ; do \
dst=${APIDOCSDIR}$${src#.} ; \
if ${TEST} -d $$src ; then \
${MKDIR} $$dst ; \
else \
${INSTALL_DATA} $$src $$dst ; \
fi \
done
@for extradoc in ${EXTRADOCS} ; do \
${INSTALL_DATA} ${INSTALL_WRKSRC}/$$extradoc ${DOCSDIR} ; \
done
@${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.mk>