2000-01-29 23:23:06 +01:00
|
|
|
# New ports collection makefile for: The mm MySql JDBC interface
|
|
|
|
# Date created: 2 January 2000
|
|
|
|
# Whom: Dave Glowacki <dglo@ssec.wisc.edu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 00:49:07 +02:00
|
|
|
PORTNAME= mysql-jdbc-mm
|
2002-05-22 21:44:01 +02:00
|
|
|
PORTVERSION= 2.0.14
|
2000-04-25 15:59:18 +02:00
|
|
|
CATEGORIES= databases java
|
2002-05-22 21:44:01 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= mmmysql
|
|
|
|
DISTNAME= mm.mysql-${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= -you-must-unjar-me.jar
|
2000-01-29 23:23:06 +01:00
|
|
|
|
2002-11-23 00:44:52 +01:00
|
|
|
MAINTAINER= dglo@ssec.wisc.edu
|
2003-02-21 12:15:57 +01:00
|
|
|
COMMENT= The mm JDBC interface for MySQL
|
2000-01-29 23:23:06 +01:00
|
|
|
|
2003-07-23 16:30:29 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant
|
2002-07-12 21:12:02 +02:00
|
|
|
|
2002-11-23 00:44:52 +01:00
|
|
|
USE_REINPLACE= YES
|
|
|
|
|
2003-06-23 07:23:30 +02:00
|
|
|
USE_JAVA= 1.3
|
2002-05-22 21:44:01 +02:00
|
|
|
NEED_JAVAC= YES
|
2000-01-29 23:23:06 +01:00
|
|
|
|
2002-05-22 21:44:01 +02:00
|
|
|
EXTRACT_CMD= ${JAR}
|
|
|
|
EXTRACT_BEFORE_ARGS= -xf
|
|
|
|
|
2002-11-23 00:44:52 +01:00
|
|
|
PLIST= ${WRKDIR}/PLIST
|
|
|
|
|
|
|
|
JAVALIBNAME= ${PORTNAME}-${PORTVERSION}
|
|
|
|
APIDOCSDIR= ${DOCSDIR}/${JAVALIBNAME}
|
|
|
|
|
2002-05-22 21:44:01 +02:00
|
|
|
post-patch:
|
2002-11-23 00:44:52 +01:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e "s;%%WRKSRC%%;${WRKSRC};g" \
|
|
|
|
-e "s;%%PREFIX%%;${PREFIX};g" \
|
|
|
|
${WRKSRC}/build.xml
|
|
|
|
@${REINPLACE_CMD} "s;%%PREFIX%%;${PREFIX};g" ${WRKSRC}/j1c
|
|
|
|
@${CHMOD} 544 ${WRKSRC}/j1c
|
2002-05-22 21:44:01 +02:00
|
|
|
|
|
|
|
do-build:
|
2002-11-23 00:44:52 +01:00
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${SETENV} JAVA_HOME=${JAVA_HOME} ant clean dist
|
2002-05-22 21:44:01 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-11-23 00:44:52 +01:00
|
|
|
@cd ${WRKSRC} && ${MKDIR} doc && \
|
2002-05-22 21:44:01 +02:00
|
|
|
${JAVADOC} -d doc -package \
|
|
|
|
-classpath ${WRKSRC}:${WRKSRC}/lib/jdbc2_0-stdext.jar:${WRKSRC}/lib/jta-spec1_0_1.jar:${CLASSPATH} \
|
2002-11-23 00:44:52 +01:00
|
|
|
org.gjt.mm.mysql org.gjt.mm.mysql.jdbc2
|
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
|
|
|
pre-install:
|
|
|
|
@${RM} -f ${PLIST}
|
|
|
|
@${TOUCH} ${PLIST}
|
|
|
|
|
|
|
|
do-install: do-install-jar do-install-apidocs
|
|
|
|
|
|
|
|
do-install-jar:
|
|
|
|
@${MKDIR} ${JAVAJARDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/build/mm.mysql-${PORTVERSION}/mm.mysql-${PORTVERSION}-bin.jar ${JAVAJARDIR}/${PORTNAME}.jar
|
2002-05-22 21:44:01 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/lib/jdbc2_0-stdext.jar \
|
2002-11-23 00:44:52 +01:00
|
|
|
${JAVAJARDIR}
|
2002-05-22 21:44:01 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/lib/jta-spec1_0_1.jar \
|
2002-11-23 00:44:52 +01:00
|
|
|
${JAVAJARDIR}
|
|
|
|
@${ECHO} ${JAVAJARDIR}/jta-spec1_0_1.jar | \
|
|
|
|
${SED} "s,${PREFIX}/*,," >> ${PLIST}
|
|
|
|
@${ECHO} ${JAVAJARDIR}/jdbc2_0-stdext.jar | \
|
|
|
|
${SED} "s,${PREFIX}/*,," >> ${PLIST}
|
|
|
|
@${ECHO} ${JAVAJARDIR}/${PORTNAME}.jar | \
|
|
|
|
${SED} "s,${PREFIX}/*,," >> ${PLIST}
|
|
|
|
@${ECHO} "@unexec ${RMDIR} ${JAVAJARDIR} 2>/dev/null || true" | \
|
|
|
|
${SED} "s,${PREFIX}/*,," >> ${PLIST}
|
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)
|
2002-11-23 00:44:52 +01:00
|
|
|
@${MKDIR} ${APIDOCSDIR}
|
|
|
|
@${CP} -r ${WRKSRC}/doc/* ${APIDOCSDIR}
|
|
|
|
@${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${APIDOCSDIR}
|
|
|
|
@${FIND} ${APIDOCSDIR} -type f -print | \
|
|
|
|
${SED} "s,${PREFIX}/*,," >> ${PLIST}
|
|
|
|
@${FIND} ${APIDOCSDIR} -type d -print | sort -r | \
|
|
|
|
${SED} -e "s,${PREFIX}/*,," -e "s,^,@dirrm ,g" >> ${PLIST}
|
2000-09-05 04:09:27 +02:00
|
|
|
.endif
|
|
|
|
|
2000-01-29 23:23:06 +01:00
|
|
|
.include <bsd.port.mk>
|