diff options
author | glewis <glewis@FreeBSD.org> | 2004-08-07 02:34:36 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2004-08-07 02:34:36 +0800 |
commit | 9d25b9c49ace0b96925075d4be1e00563a96d84e (patch) | |
tree | daa86cf7135af7ad3a0866c2f231dcdca145d2bd | |
parent | d9c8b037dc00cd34e671a5d67921091475f6f676 (diff) | |
download | freebsd-ports-gnome-9d25b9c49ace0b96925075d4be1e00563a96d84e.tar.gz freebsd-ports-gnome-9d25b9c49ace0b96925075d4be1e00563a96d84e.tar.zst freebsd-ports-gnome-9d25b9c49ace0b96925075d4be1e00563a96d84e.zip |
. Use the new USE_ANT capability of bsd.java.mk.
PR: 70084
Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk> (maintainer)
-rw-r--r-- | databases/mysql-connector-java/Makefile | 22 | ||||
-rw-r--r-- | databases/mysql-connector-java50/Makefile | 22 |
2 files changed, 18 insertions, 26 deletions
diff --git a/databases/mysql-connector-java/Makefile b/databases/mysql-connector-java/Makefile index 4bcfa365f97b..0da1358c72fa 100644 --- a/databases/mysql-connector-java/Makefile +++ b/databases/mysql-connector-java/Makefile @@ -26,22 +26,17 @@ COMMENT= MySQL Connector/J: JDBC interface for MySQL .if !defined(WITHOUT_COMPILE) -BUILD_DEPENDS= ${ANT_CMD}:${PORTSDIR}/devel/apache-ant \ - ${LOCALBASE}/share/java/classes/junit.jar:${PORTSDIR}/java/junit +BUILD_DEPENDS= ${LOCALBASE}/share/java/classes/junit.jar:${PORTSDIR}/java/junit USE_JAVA= yes +USE_ANT= yes JAVA_VERSION= 1.4+ -JAVA_BUILD= yes - -ANT_CMD?= ${LOCALBASE}/bin/ant -ANT= ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT_CMD} -ANT_TARGET= clean compile-driver +ALL_TARGET= clean compile-driver BUILDDIR= ${WRKDIR}/build-mysql-jdbc/${DISTNAME} .else USE_JAVA= yes JAVA_VERSION= 1.2+ -JAVA_RUN= yes BUILDDIR= ${WRKDIR}/${DISTNAME} .endif @@ -73,13 +68,14 @@ pre-fetch: do-build: .if !defined(WITHOUT_COMPILE) - @cd ${WRKSRC} && ${ANT} ${ANT_TARGET} + @(cd ${BUILD_WRKSRC}; \ + ${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${ALL_TARGET}) .endif .if !defined(NOPORTDOCS) - @${MKDIR} ${BUILDDIR}/doc && cd ${WRKSRC} && \ - ${JAVADOC} -d ${BUILDDIR}/doc -package \ - -classpath ${JDCLASSPATH} \ - com.mysql.jdbc org.gjt.mm.mysql + @${MKDIR} ${BUILDDIR}/doc && (cd ${BUILD_WRKSRC}; \ + ${JAVADOC} -d ${BUILDDIR}/doc -package \ + -classpath ${JDCLASSPATH} \ + com.mysql.jdbc org.gjt.mm.mysql) .endif do-install: do-install-jar do-install-apidocs diff --git a/databases/mysql-connector-java50/Makefile b/databases/mysql-connector-java50/Makefile index 4bcfa365f97b..0da1358c72fa 100644 --- a/databases/mysql-connector-java50/Makefile +++ b/databases/mysql-connector-java50/Makefile @@ -26,22 +26,17 @@ COMMENT= MySQL Connector/J: JDBC interface for MySQL .if !defined(WITHOUT_COMPILE) -BUILD_DEPENDS= ${ANT_CMD}:${PORTSDIR}/devel/apache-ant \ - ${LOCALBASE}/share/java/classes/junit.jar:${PORTSDIR}/java/junit +BUILD_DEPENDS= ${LOCALBASE}/share/java/classes/junit.jar:${PORTSDIR}/java/junit USE_JAVA= yes +USE_ANT= yes JAVA_VERSION= 1.4+ -JAVA_BUILD= yes - -ANT_CMD?= ${LOCALBASE}/bin/ant -ANT= ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT_CMD} -ANT_TARGET= clean compile-driver +ALL_TARGET= clean compile-driver BUILDDIR= ${WRKDIR}/build-mysql-jdbc/${DISTNAME} .else USE_JAVA= yes JAVA_VERSION= 1.2+ -JAVA_RUN= yes BUILDDIR= ${WRKDIR}/${DISTNAME} .endif @@ -73,13 +68,14 @@ pre-fetch: do-build: .if !defined(WITHOUT_COMPILE) - @cd ${WRKSRC} && ${ANT} ${ANT_TARGET} + @(cd ${BUILD_WRKSRC}; \ + ${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${ALL_TARGET}) .endif .if !defined(NOPORTDOCS) - @${MKDIR} ${BUILDDIR}/doc && cd ${WRKSRC} && \ - ${JAVADOC} -d ${BUILDDIR}/doc -package \ - -classpath ${JDCLASSPATH} \ - com.mysql.jdbc org.gjt.mm.mysql + @${MKDIR} ${BUILDDIR}/doc && (cd ${BUILD_WRKSRC}; \ + ${JAVADOC} -d ${BUILDDIR}/doc -package \ + -classpath ${JDCLASSPATH} \ + com.mysql.jdbc org.gjt.mm.mysql) .endif do-install: do-install-jar do-install-apidocs |