From d81dd21b29e996e1cbc3d0467766cbeea0586a0c Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 13 Dec 2012 07:54:56 +0000 Subject: [PATCH] Convert to new option framework --- java/jrosetta/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/java/jrosetta/Makefile b/java/jrosetta/Makefile index 967fcd4094b1..10dc0703eebb 100644 --- a/java/jrosetta/Makefile +++ b/java/jrosetta/Makefile @@ -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 -.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 \