Date: Thu, 21 Mar 2013 00:24:35 +0000 (UTC) From: Jason Helfman <jgh@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r314789 - head/textproc/saxon-devel Message-ID: <201303210024.r2L0OZxS045923@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jgh Date: Thu Mar 21 00:24:34 2013 New Revision: 314789 URL: http://svnweb.freebsd.org/changeset/ports/314789 Log: - adopt optionsNG Approved by: portmgr (miwi) Modified: head/textproc/saxon-devel/Makefile Modified: head/textproc/saxon-devel/Makefile ============================================================================== --- head/textproc/saxon-devel/Makefile Thu Mar 21 00:21:21 2013 (r314788) +++ head/textproc/saxon-devel/Makefile Thu Mar 21 00:24:34 2013 (r314789) @@ -16,9 +16,10 @@ COMMENT= An XSLT 2.0 / XPath 2.0 / XQuer RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper -OPTIONS= JDOM "Install Jdom support" off \ - DOM4J "Install dom4j support" off \ - XOM "Install XOM support" off +OPTIONS_DEFINE= JDOM DOM4J XOM DOCS +JDOM_DESC= Jdom support +DOM4J_DESC= dom4j support +XOM_DESC= XOM support USE_ZIP= yes USE_JAVA= yes @@ -36,18 +37,19 @@ PORTDOCS= * .endif .include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_JDOM) +.if ${PORT_OPTIONS:MJDOM} JARFILES+= saxon9-jdom.jar RUN_DEPENDS+= ${JAVALIBDIR}/jdom.jar:${PORTSDIR}/java/jdom .endif -.if defined(WITH_DOM4J) +.if ${PORT_OPTIONS:MDOM4J} JARFILES+= saxon9-dom4j.jar RUN_DEPENDS+= ${JAVALIBDIR}/dom4j.jar:${PORTSDIR}/textproc/dom4j .endif -.if defined(WITH_XOM) +.if ${PORT_OPTIONS:MXOM} JARFILES+= saxon9-xom.jar RUN_DEPENDS+= ${JAVALIBDIR}/xom.jar:${PORTSDIR}/textproc/xom .endif @@ -63,7 +65,7 @@ do-install: @${INSTALL_DATA} ${WRKSRC}/${file} ${JAVAJARDIR}/ .endfor @${ECHO_MSG} " [ DONE ]" -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}/..." @cd ${WRKSRC}/samples/ \ && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \ @@ -82,7 +84,7 @@ do-install: .endfor @${ECHO_MSG} " [ DONE ]" -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} post-install: @${FIND} -s ${WRKSRC}/samples -not -type d | \ ${SED} -ne 's,^${WRKSRC}/samples,${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303210024.r2L0OZxS045923>