aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xincluder/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/xincluder/Makefile')
-rw-r--r--textproc/xincluder/Makefile51
1 files changed, 30 insertions, 21 deletions
diff --git a/textproc/xincluder/Makefile b/textproc/xincluder/Makefile
index cc3d75b8ada5..9cac06a5ea15 100644
--- a/textproc/xincluder/Makefile
+++ b/textproc/xincluder/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xincluder
PORTVERSION= 1.0.d11
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= textproc java
MASTER_SITES= ftp://ftp.ibiblio.org/pub/languages/java/javafaq/
DISTNAME= ${PORTNAME}-1.0d11
@@ -15,33 +15,42 @@ DISTNAME= ${PORTNAME}-1.0d11
MAINTAINER= ports@FreeBSD.org
COMMENT= Java-based XInclude processors
-BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant
+RUN_DEPENDS= ${JAVALIBDIR}/jdom.jar:${PORTSDIR}/java/jdom \
+ ${JAVALIBDIR}/xercesImpl.jar:${PORTSDIR}/textproc/xerces-j \
+ java:${PORTSDIR}/java/javavmwrapper
-USE_JAVA= 1.2+
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
+NO_BUILD= yes
-ANT?= ${LOCALBASE}/bin/ant
-.if defined(NOPORTDOCS)
-ANT_TARGET= jar
-.else
-ANT_TARGET= jar javadoc
-.endif
-JAVASHAREDIR= ${PREFIX}/share/java
-JARDIR= ${JAVASHAREDIR}/classes
WRKSRC= ${WRKDIR}/${PORTNAME}
-do-build:
- @cd ${WRKSRC} && ${ANT} ${ANT_TARGET}
+SUFFIXES= -sax -dom -jdom
+PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar bin/xincluder ${SUFFIXES:S,^,bin/xincluder,}
+.if !defined(NOPORTDOCS)
+PORTDOCS= apidoc index.html
+.endif
+SUB_FILES= xincluder.sh
do-install:
- @${ECHO} -n ">> Installing JAR as ${JARDIR}/${PORTNAME}.jar..."
- @${CP} ${WRKSRC}/${PORTNAME}.jar ${JARDIR}/
- @${ECHO} " [ DONE ]"
-
+ @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
+ @${MKDIR} ${JAVAJARDIR}
+ @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${JAVAJARDIR}/
+ @${ECHO_MSG} " [ DONE ]"
+ @${ECHO_MSG} -n ">> Installing scripts in ${PREFIX}/bin..."
+ @${ECHO_MSG} -n " xincluder"
+ @${INSTALL_SCRIPT} ${WRKDIR}/xincluder.sh ${PREFIX}/bin/xincluder
+.for suffix in ${SUFFIXES}
+ @${ECHO_MSG} -n " xincluder${suffix}"
+ @${LN} ${PREFIX}/bin/xincluder ${PREFIX}/bin/xincluder${suffix}
+.endfor
+ @${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
- @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
- @${MKDIR} ${DOCSDIR}
- @${CP} -r ${WRKSRC}/apidoc/* ${DOCSDIR}
- @${ECHO} " [ DONE ]"
+ @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
+ @cd ${WRKSRC} \
+ && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
+ && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
+ @${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.mk>