Date: Thu, 13 Dec 2012 07:54:57 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308830 - head/java/jrosetta Message-ID: <201212130754.qBD7svR2080155@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Thu Dec 13 07:54:56 2012 New Revision: 308830 URL: http://svnweb.freebsd.org/changeset/ports/308830 Log: Convert to new option framework Modified: head/java/jrosetta/Makefile Modified: head/java/jrosetta/Makefile ============================================================================== --- head/java/jrosetta/Makefile Thu Dec 13 07:53:20 2012 (r308829) +++ head/java/jrosetta/Makefile Thu Dec 13 07:54:56 2012 (r308830) @@ -19,11 +19,12 @@ JAVA_RUN= yes PLIST_FILES= %%JAVAJARDIR%%/jrosetta-api.jar \ %%JAVAJARDIR%%/jrosetta-engine.jar -OPTIONS= COMPILE "Download and compile source instead of binaries" off +OPTIONS_DEFINE= COMPILE +COMPILE_DESC= Download and compile source instead of binaries .include <bsd.port.options.mk> -.if defined(WITH_COMPILE) +.if ${PORT_OPTIONS:MCOMPILE} DISTFILES= ${PORTNAME}-${PORTVERSION}-sources.jar:source BUILD_DEPENDS= mvn:${PORTSDIR}/devel/maven3 @@ -41,7 +42,7 @@ EXTRACT_ONLY= NO_BUILD= yes .endif -.if defined(WITH_COMPILE) +.if ${PORT_OPTIONS:MCOMPILE} post-patch: ${MKDIR} ${WRKDIR}/m2 ${CP} ${FILESDIR}/settings.xml ${WRKDIR} @@ -52,7 +53,7 @@ do-build: .endif do-install: -.if defined(WITH_COMPILE) +.if ${PORT_OPTIONS:MCOMPILE} ${INSTALL_DATA} ${OUTPUT}/jrosetta-api/${PORTVERSION}/jrosetta-api-${PORTVERSION}.jar \ ${JAVAJARDIR}/jrosetta-api.jar ${INSTALL_DATA} ${OUTPUT}/jrosetta-engine/${PORTVERSION}/jrosetta-engine-${PORTVERSION}.jar \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212130754.qBD7svR2080155>