diff options
author | bapt <bapt@FreeBSD.org> | 2012-10-04 15:18:39 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-10-04 15:18:39 +0800 |
commit | c5eecc840cb478798d2ceca22051f292c257d036 (patch) | |
tree | 4ef1018fe2196a682a62842d3f043edcc75a589c /java/springframework | |
parent | 03acc475ef7887f585a16227f6df85abee36d9b2 (diff) | |
download | freebsd-ports-gnome-c5eecc840cb478798d2ceca22051f292c257d036.tar.gz freebsd-ports-gnome-c5eecc840cb478798d2ceca22051f292c257d036.tar.zst freebsd-ports-gnome-c5eecc840cb478798d2ceca22051f292c257d036.zip |
Convert to new options framework
Diffstat (limited to 'java/springframework')
-rw-r--r-- | java/springframework/Makefile | 21 |
1 files 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 <gerrit.beine@gmx.de> -# +# Created by: Gerrit Beine <gerrit.beine@gmx.de> # $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 <bsd.port.options.mk> -.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} |