1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/textproc/nux/Makefile

66 lines
1.9 KiB
Makefile

# Created by: Herve Quiroz <hq@FreeBSD.org>
# $FreeBSD$
PORTNAME= nux
PORTVERSION= 1.6
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= textproc java
MASTER_SITES= http://dsd.lbl.gov/nux-download/releases/
MAINTAINER= hq@FreeBSD.org
COMMENT= Small open-source XQuery extension of the XOM library
RUN_DEPENDS= ${JAVALIBDIR}/xom.jar:${PORTSDIR}/textproc/xom \
${JAVALIBDIR}/saxon9.jar:${PORTSDIR}/textproc/saxon-devel
OPTIONS_DEFINE= XQUERY_TOOL DOCS
XQUERY_TOOL_DESC= Install the XQuery command-line tool
OPTIONS_DEFAULT= XQUERY_TOOL
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_STAGE= yes
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MXQUERY_TOOL}
RUN_DEPENDS+= ${JAVALIBDIR}/getopt.jar:${PORTSDIR}/java/java-getopt \
classpath:${PORTSDIR}/java/javavmwrapper
.endif
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
.if ${PORT_OPTIONS:MXQUERY_TOOL}
PLIST_FILES+= bin/fire-xquery
.endif
PORTDOCS= api changelog.html cvs.html dependencies.html \
gettingstarted.html images index.html license.html licenses \
mailing.html readme.html related.html style.css todo.html
.if ${PORT_OPTIONS:MXQUERY_TOOL}
SUB_FILES= fire-xquery.sh
.endif
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${MKDIR} ${JAVAJARDIR}
@${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}.jar ${JAVAJARDIR}/
@${ECHO_MSG} " [ DONE ]"
.if ${PORT_OPTIONS:MXQUERY_TOOL}
@${ECHO_MSG} -n ">> Installing XQuery command-line tool as ${PREFIX}/bin/fire-xquery..."
@${INSTALL_SCRIPT} ${WRKDIR}/fire-xquery.sh ${PREFIX}/bin/fire-xquery
@${ECHO_MSG} " [ DONE ]"
.endif
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@cd ${WRKSRC}/doc/ && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
@cd ${WRKSRC}/doc/ && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
@${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.post.mk>