aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorhq <hq@FreeBSD.org>2005-11-25 02:07:40 +0800
committerhq <hq@FreeBSD.org>2005-11-25 02:07:40 +0800
commit9304cf5ead79f13c0af0f10f44ce2921bc9f3df3 (patch)
treea1f87313f0bda4e45d1c21c53e2f07eda8aa8c14 /textproc
parent397688226159f35513b115919e7f4310b28c2cff (diff)
downloadfreebsd-ports-graphics-9304cf5ead79f13c0af0f10f44ce2921bc9f3df3.tar.gz
freebsd-ports-graphics-9304cf5ead79f13c0af0f10f44ce2921bc9f3df3.tar.zst
freebsd-ports-graphics-9304cf5ead79f13c0af0f10f44ce2921bc9f3df3.zip
Cross-link API documentation with JDK API documentation (if installed)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/xerces-j/Makefile5
-rw-r--r--textproc/xerces-j/files/patch-build.xml61
2 files changed, 66 insertions, 0 deletions
diff --git a/textproc/xerces-j/Makefile b/textproc/xerces-j/Makefile
index f3b05c45ce2..e16ef205a65 100644
--- a/textproc/xerces-j/Makefile
+++ b/textproc/xerces-j/Makefile
@@ -50,6 +50,11 @@ TOOLS_JARFILES= resolver.jar stylebook-1.0-b2.jar bin/xjavac.jar
CLASSPATH!= ${ECHO_CMD} ${TOOLS_JARFILES:S,^,tools/,} | ${TR} " " ":"
MAKE_ENV= CLASSPATH=${CLASSPATH}
+JAVA_PORT_API= ${LOCALBASE}/share/doc/jdk${JAVA_PORT_VERSION:C/([0-9]\.[0-9])\.[0-9]/\1/}/api
+.if exists(${JAVA_PORT_API})
+MAKE_ARGS+= -Djdk.api="${JAVA_PORT_API}"
+.endif
+
post-extract:
@cd ${WRKSRC} && ${MV} ../tools .
diff --git a/textproc/xerces-j/files/patch-build.xml b/textproc/xerces-j/files/patch-build.xml
new file mode 100644
index 00000000000..8621b1652dc
--- /dev/null
+++ b/textproc/xerces-j/files/patch-build.xml
@@ -0,0 +1,61 @@
+Allows to enforce a packagelistLoc for JDK API documentation
+
+$FreeBSD$
+
+--- build.xml.orig Thu Nov 24 16:57:51 2005
++++ build.xml Thu Nov 24 17:19:25 2005
+@@ -402,7 +402,9 @@
+ windowtitle='XML Standard API' doctitle='XML Standard API'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ <mkdir dir='${build.dir}/docs/javadocs/xni'/>
+ <javadoc packagenames='org.apache.xerces.xni.*'
+ locale='en_US'
+@@ -412,7 +414,9 @@
+ doctitle='Xerces Native Interface'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ <mkdir dir='${build.dir}/docs/javadocs/xs'/>
+ <javadoc packagenames='org.apache.xerces.xs, org.apache.xerces.xs.datatypes'
+ locale='en_US'
+@@ -422,7 +426,9 @@
+ doctitle='XML Schema API'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+
+ <mkdir dir='${build.dir}/docs/javadocs/xerces2'/>
+ <javadoc packagenames='org.apache.xerces.dom.*,
+@@ -440,7 +446,9 @@
+ doctitle='Xerces2 Implementation'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ <mkdir dir='${build.dir}/docs/javadocs/other'/>
+ <javadoc packagenames='org.apache.html.*,
+ org.apache.wml.*,
+@@ -451,7 +459,9 @@
+ windowtitle='Other Classes' doctitle='Other Classes'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ </target>
+
+ <!-- =================================================================== -->