From 5ac78e2f5e5d94e1712d3fd2520fd8b4684e0864 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 4 Oct 2012 07:18:39 +0000 Subject: [PATCH] Convert to new options framework --- java/springframework/Makefile | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/java/springframework/Makefile b/java/springframework/Makefile index 4156f925bc43..fccd470d8c22 100644 --- a/java/springframework/Makefile +++ b/java/springframework/Makefile @@ -1,7 +1,4 @@ -# New ports collection makefile for: springframework -# Date created: 02 Jan 2008 -# Whom: Gerrit Beine -# +# Created by: Gerrit Beine # $FreeBSD$ PORTNAME= springframework @@ -20,8 +17,8 @@ USE_JAVA= yes USE_ZIP= yes JAVA_VERSION= 1.5+ -OPTIONS= DOCS "Install docs & examples" on \ - RESRCS "Install resource files" off +OPTIONS_DEFINE= DOCS RESRCS +RESRCS_DESC= Install resource files JAR_FILES= org.springframework.aop.jar \ org.springframework.asm.jar \ @@ -50,11 +47,7 @@ PLIST_FILES += %%JAVAJARDIR%%/${f} .include -.if defined(WITHOUT_DOCS) -NOPORTDOCS= yes -.endif - -.if defined(WITH_RESRCS) +.if ${PORT_OPTIONS:MRESRCS} RESOURCE_FILES= spring-aop-2.0.xsd \ spring-aop-2.5.xsd \ spring-aop-3.0.xsd \ @@ -96,7 +89,7 @@ PLIST_FILES += %%JAVASHAREDIR%%/${f} .endfor .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} PORTDOCS= * .endif @@ -105,13 +98,13 @@ do-install: @${INSTALL_DATA} ${WRKSRC}/dist/${f:S/.jar/-${PORTVERSION}.RELEASE.jar/} \ ${JAVAJARDIR}/${f} .endfor -.if !defined(WITHOUT_RESRCS) || defined(WITH_RESRCS) +.if ${PORT_OPTIONS:MRESRCS} .for f in ${RESOURCE_FILES} @${INSTALL_DATA} `${FIND} "${WRKSRC}" -name ${f} -print` \ ${JAVASHAREDIR}/${f} .endfor .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/changelog.txt ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/license.txt ${DOCSDIR}