summaryrefslogtreecommitdiffstats
path: root/textproc/xerces-j/Makefile
diff options
context:
space:
mode:
authorznerd <znerd@FreeBSD.org>2002-10-21 07:40:50 +0000
committerznerd <znerd@FreeBSD.org>2002-10-21 07:40:50 +0000
commit226e3241fc1ace83ce4d1c8066888e1fcfc4df14 (patch)
treeeb120e147694476163c8ac7a6b4dc045ff300057 /textproc/xerces-j/Makefile
parent19898cffb230887c84dc681239b7860910695675 (diff)
downloadFreeBSD-ports-226e3241fc1ace83ce4d1c8066888e1fcfc4df14.zip
FreeBSD-ports-226e3241fc1ace83ce4d1c8066888e1fcfc4df14.tar.gz
Upgrade from 2.1.0 to 2.2.0.
This version of the port will build from source instead of taking a binary distro. It does not install the Stylebook-based documentation. We will need to create a textproc/xml-stylebook port for that. I've looked at it, but it's a bit cumbersome. There is no official release of xml-stylebook (d'oh). Approved by: kevlo
Diffstat (limited to 'textproc/xerces-j/Makefile')
-rw-r--r--textproc/xerces-j/Makefile35
1 files changed, 27 insertions, 8 deletions
diff --git a/textproc/xerces-j/Makefile b/textproc/xerces-j/Makefile
index 6cc3cbd..f8cb195 100644
--- a/textproc/xerces-j/Makefile
+++ b/textproc/xerces-j/Makefile
@@ -6,25 +6,44 @@
#
PORTNAME= xerces-j
-PORTVERSION= 2.1.0
+PORTVERSION= 2.2.0
CATEGORIES= textproc java
MASTER_SITES= http://xml.apache.org/dist/xerces-j/
-DISTNAME= xerces-${PORTVERSION:S/./_/g}
-DISTFILES= Xerces-J-bin.${PORTVERSION}${EXTRACT_SUFX}
+DISTNAME= Xerces-J-src.${PORTVERSION}
MAINTAINER= kevlo@FreeBSD.org
+BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/jakarta-ant
+
USE_JAVA= 1.3+
WRKSRC= ${WRKDIR}/xerces-${PORTVERSION:S/./_/g}
-NO_BUILD= yes
+ANT?= ${LOCALBASE}/bin/ant
+.if defined(NOPORTDOCS)
+ANT_TARGETS= jar apijar
+.else
+ANT_TARGETS= jar apijar javadocs
+# We should install other documentation too, but
+# we have no stylebook port yet
+#
+# ANT_TARGETS= jar apijar docs javadocs
+.endif
+JAVASHAREDIR= ${PREFIX}/share/java
+JARDIR= ${JAVASHAREDIR}/classes
+JARFILES= xercesImpl.jar xmlParserAPIs.jar
+
+do-build:
+ @cd ${WRKSRC} && ${ANT} ${ANT_TARGETS}
do-install:
- (cd ${WRKSRC} && ${INSTALL_DATA} xercesImpl.jar xmlParserAPIs.jar \
- ${PREFIX}/share/java/classes)
+ @${ECHO} -n ">> Installing JAR files in ${JARDIR}..."
+ @cd ${WRKSRC}/build && ${CP} ${JARFILES} ${JARDIR}/
+ @${ECHO} " [ DONE ]"
.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- (cd ${WRKSRC}/docs && ${TAR} -cf - . | ${TAR} -xf - -C ${DOCSDIR})
+ @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
+ @${MKDIR} ${DOCSDIR}
+ @${CP} -r ${WRKSRC}/build/docs/javadocs/* ${DOCSDIR}
+ @${ECHO} " [ DONE ]"
.endif
.include <bsd.port.mk>
OpenPOWER on IntegriCloud