Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= mysql-connector-java |
8 |
PORTNAME= mysql-connector-java |
9 |
PORTVERSION= 3.1.8 |
9 |
PORTVERSION= 3.1.10 |
10 |
CATEGORIES= databases java |
10 |
CATEGORIES= databases java |
11 |
MASTER_SITES= ${MASTER_SITE_MYSQL} |
11 |
MASTER_SITES= ${MASTER_SITE_MYSQL} |
12 |
MASTER_SITE_SUBDIR= Connector-J |
12 |
MASTER_SITE_SUBDIR= Connector-J |
Lines 24-32
Link Here
|
24 |
USE_JAVA= yes |
24 |
USE_JAVA= yes |
25 |
USE_ANT= yes |
25 |
USE_ANT= yes |
26 |
JAVA_VERSION= 1.4+ |
26 |
JAVA_VERSION= 1.4+ |
27 |
ALL_TARGET= clean compile-driver |
27 |
ALL_TARGET= clean dist |
28 |
MAKE_ARGS= -Djavalibdir=${JAVALIBDIR} |
28 |
MAKE_ARGS= -Djavalibdir=${JAVALIBDIR} |
29 |
BUILDDIR= ${WRKDIR}/build-mysql-jdbc/${DISTNAME} |
29 |
BUILDDIR= ${WRKDIR}/${DISTNAME}/build/${DISTNAME} |
30 |
|
30 |
|
31 |
.else |
31 |
.else |
32 |
|
32 |
|
Lines 37-50
Link Here
|
37 |
.endif |
37 |
.endif |
38 |
|
38 |
|
39 |
APIDOCSDIR= ${DOCSDIR}/javadoc |
39 |
APIDOCSDIR= ${DOCSDIR}/javadoc |
|
|
40 |
SRCDIR= ${WRKDIR}/${DISTNAME}/src |
41 |
JAVADOCDIR= ${WRKDIR}/${DISTNAME}/javadoc |
40 |
DESTJARFILE= ${PORTNAME}.jar |
42 |
DESTJARFILE= ${PORTNAME}.jar |
41 |
EXTRAJARS= jdbc2_0-stdext.jar jta-spec1_0_1.jar |
43 |
EXTRAJARS= jdbc2_0-stdext.jar jta-spec1_0_1.jar |
42 |
EXTRADOCS= README CHANGES |
44 |
EXTRADOCS= README CHANGES docs/index.html docs/connector-j-en.pdf |
43 |
JARFILE= ${DISTNAME}-bin.jar |
45 |
JARFILE= ${DISTNAME}-bin.jar |
44 |
JDCLASSPATH= ${WRKSRC}:${WRKSRC}/lib/jdbc2_0-stdext.jar:${WRKSRC}/lib/jta-spec1_0_1.jar:${CLASSPATH} |
46 |
JDCLASSPATH= ${SRCDIR}:${SRCDIR}/lib/jdbc2_0-stdext.jar:${SRCDIR}/lib/jta-spec1_0_1.jar:${CLASSPATH} |
45 |
|
47 |
|
46 |
PLIST_FILES= %%JAVAJARDIR%%/jdbc2_0-stdext.jar \ |
48 |
PLIST_FILES= %%JAVAJARDIR%%/jdbc2_0-stdext.jar \ |
47 |
%%JAVAJARDIR%%/jta-spec1_0_1.jar \ |
49 |
%%JAVAJARDIR%%/jta-spec1_0_1.jar \ |
48 |
%%JAVAJARDIR%%/mysql-connector-java.jar |
50 |
%%JAVAJARDIR%%/mysql-connector-java.jar |
49 |
|
51 |
|
50 |
.if !defined(NOPORTDOCS) |
52 |
.if !defined(NOPORTDOCS) |
Lines 67-75
Link Here
|
67 |
do-build: |
69 |
do-build: |
68 |
.endif |
70 |
.endif |
69 |
.if !defined(NOPORTDOCS) |
71 |
.if !defined(NOPORTDOCS) |
70 |
@${MKDIR} ${BUILDDIR}/doc && (cd ${BUILD_WRKSRC}; \ |
72 |
@${MKDIR} ${JAVADOCDIR} && (cd ${SRCDIR}; \ |
71 |
${JAVADOC} -d ${BUILDDIR}/doc -package \ |
73 |
${JAVADOC} -d ${JAVADOCDIR} -package \ |
72 |
-classpath ${JDCLASSPATH} \ |
74 |
-classpath ${JDCLASSPATH} \ |
73 |
com.mysql.jdbc org.gjt.mm.mysql) |
75 |
com.mysql.jdbc org.gjt.mm.mysql) |
74 |
.endif |
76 |
.endif |
75 |
|
77 |
|
Lines 79-86
Link Here
|
79 |
@${ECHO_MSG} -n ">> Installing .jar files..." |
81 |
@${ECHO_MSG} -n ">> Installing .jar files..." |
80 |
@${MKDIR} ${JAVAJARDIR} |
82 |
@${MKDIR} ${JAVAJARDIR} |
81 |
@${INSTALL_DATA} ${BUILDDIR}/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE} |
83 |
@${INSTALL_DATA} ${BUILDDIR}/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE} |
82 |
@for extrajar in ${EXTRAJARS} ; do \ |
84 |
@for extrajar in ${EXTRAJARS} ; do \ |
83 |
${INSTALL_DATA} ${INSTALL_WRKSRC}/lib/$$extrajar ${JAVAJARDIR} ; \ |
85 |
${INSTALL_DATA} ${INSTALL_WRKSRC}/src/lib/$$extrajar ${JAVAJARDIR} ; \ |
84 |
done |
86 |
done |
85 |
@${ECHO_MSG} " [ DONE ]" |
87 |
@${ECHO_MSG} " [ DONE ]" |
86 |
|
88 |
|
Lines 88-96
Link Here
|
88 |
.if !defined(NOPORTDOCS) |
90 |
.if !defined(NOPORTDOCS) |
89 |
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." |
91 |
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." |
90 |
@${MKDIR} ${APIDOCSDIR} |
92 |
@${MKDIR} ${APIDOCSDIR} |
91 |
@${CP} -r ${BUILDDIR}/doc/* ${APIDOCSDIR} |
93 |
@${CP} -r ${JAVADOCDIR}/* ${APIDOCSDIR} |
92 |
@for extradoc in ${EXTRADOCS} ; do \ |
94 |
@for extradoc in ${EXTRADOCS} ; do \ |
93 |
${INSTALL_DATA} ${BUILDDIR}/$$extradoc ${DOCSDIR} ; \ |
95 |
${INSTALL_DATA} ${INSTALL_WRKSRC}/$$extradoc ${DOCSDIR} ; \ |
94 |
done |
96 |
done |
95 |
@${ECHO_MSG} " [ DONE ]" |
97 |
@${ECHO_MSG} " [ DONE ]" |
96 |
.endif |
98 |
.endif |