summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--textproc/jaxup/Makefile19
-rw-r--r--textproc/jaxup/files/patch-build.xml13
2 files changed, 29 insertions, 3 deletions
diff --git a/textproc/jaxup/Makefile b/textproc/jaxup/Makefile
index c21006e6d046..57fa0671c752 100644
--- a/textproc/jaxup/Makefile
+++ b/textproc/jaxup/Makefile
@@ -24,7 +24,7 @@ USE_ZIP= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_JAVA= yes
-JAVA_VERSION= 1.3+
+JAVA_VERSION= 1.4+
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
@@ -42,6 +42,19 @@ PLIST_DIRS= %%DATADIR%%
PORTDOCS= LICENSE.txt api index.html jaxup_files xupdate-wd.html xupdate-wd_files
.endif
+.include <bsd.port.pre.mk>
+
+.if !defined(NOPORTDOCS)
+JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.[4-5] -maxdepth 1 -name api -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1
+.if ${JDK_API} != ""
+MAKE_ARGS+= -Dj2se.apidocs="${JDK_API}"
+.endif
+JAXEN_API!= (${FIND} -s ${LOCALBASE}/share/doc/jaxen -maxdepth 1 -name javadoc -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1
+.if ${JAXEN_API} != ""
+MAKE_ARGS+= -Djaxen.apidocs="${JAXEN_API}"
+.endif
+.endif
+
post-extract:
@${CP} ${FILESDIR}/build.xml ${WRKSRC}/
@${CP} ${FILESDIR}/DOMXUpdater.java ${WRKDIR}/
@@ -55,7 +68,7 @@ post-build:
cd ${WRKDIR} && ${JAR} -cmf MANIFEST jaxup-xupdater.jar DOMXUpdater.class
do-install:
- @${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
+ @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${MKDIR} ${JAVAJARDIR}
@${INSTALL_DATA} ${WRKSRC}/build/lib/${PORTNAME}.jar ${JAVAJARDIR}/
@${ECHO_MSG} " [ DONE ]"
@@ -74,4 +87,4 @@ do-install:
@${ECHO_MSG} " [ DONE ]"
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/textproc/jaxup/files/patch-build.xml b/textproc/jaxup/files/patch-build.xml
new file mode 100644
index 000000000000..a1c00e37c6b8
--- /dev/null
+++ b/textproc/jaxup/files/patch-build.xml
@@ -0,0 +1,13 @@
+$FreeBSD$
+
+--- build.xml.orig Thu Dec 9 14:14:21 2004
++++ build.xml Thu Dec 9 14:16:44 2004
+@@ -57,6 +57,8 @@
+ <javadoc destdir="${build.apidocs.dir}" windowtitle="${project.fullname}" author="true" version="true" use="true">
+ <fileset dir="${src.java.dir}"/>
+ <classpath refid="project.classpath"/>
++ <link href="${jaxen.apidocs}"/>
++ <link href="${j2se.apidocs}"/>
+ </javadoc>
+ </target>
+