aboutsummaryrefslogtreecommitdiffstats
path: root/www/extsm
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-10-06 00:30:22 +0800
committerbapt <bapt@FreeBSD.org>2012-10-06 00:30:22 +0800
commitd0cd06aff65fc256082ca091380ca160b95e83f3 (patch)
tree303c57246d9d161a8ea8172c4bbf1c826e90f8d0 /www/extsm
parent4eafc3166246adc01371e1450a8ec579e4e0c614 (diff)
downloadfreebsd-ports-gnome-d0cd06aff65fc256082ca091380ca160b95e83f3.tar.gz
freebsd-ports-gnome-d0cd06aff65fc256082ca091380ca160b95e83f3.tar.zst
freebsd-ports-gnome-d0cd06aff65fc256082ca091380ca160b95e83f3.zip
Convert to new options framework
Diffstat (limited to 'www/extsm')
-rw-r--r--www/extsm/Makefile30
1 files changed, 13 insertions, 17 deletions
diff --git a/www/extsm/Makefile b/www/extsm/Makefile
index dd7ef083c9ea..cfc4147c944b 100644
--- a/www/extsm/Makefile
+++ b/www/extsm/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: xsm
-# Date created: 2006-07-30
-# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
-#
+# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
# $FreeBSD$
-#
PORTNAME= extsm
PORTVERSION= 1.1
@@ -22,36 +18,36 @@ JAVA_VERSION= 1.5+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/xsm
-OPTIONS= TOMCAT6 "Use Tomcat 6" on \
- TOMCAT55 "Use Tomcat 5.5" off \
- RESIN3 "Use Resin 3" off
+OPTIONS_DEFINE= TOMCAT6 TOMCAT5 RESIN3 DOCS EXAMPLES
+OPTIONS_DEFAULT= TOMCAT6
-.if !defined(NOPORTDOCS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= README INSTALL
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
PORTEXAMPLES= xsm-demo-config.zip
.endif
-.include <bsd.port.pre.mk>
-
WEBAPP_DIRS= #empty
-.if defined(WITH_TOMCAT6)
+.if ${PORT_OPTIONS:MTOMCAT6}
WEBAPP_DIRS+= apache-tomcat-6.0
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
.endif
-.if defined(WITH_TOMCAT55)
+.if ${PORT_OPTIONS:MTOMCAT5}
WEBAPP_DIRS+= tomcat5.5
RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
.endif
-.if defined(WITH_RESIN3)
+.if ${PORT_OPTIONS:MRESIN3}
WEBAPP_DIRS+= resin3
RUN_DEPENDS+= ${LOCALBASE}/resin3/lib/resin.jar:${PORTSDIR}/www/resin3
.endif
+.include <bsd.port.pre.mk>
do-install:
.if ${PREFIX} != ${LOCALBASE}
@${ECHO_CMD} "Warning: you changed prefix to ${PREFIX}"
@@ -66,11 +62,11 @@ do-install:
.endif
${INSTALL_DATA} ${WRKSRC}/xsm.war ${PREFIX}/${DIR}/webapps
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}/
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${EXAMPLESDIR}/
.endif