svn commit: r311081 - head/deskutils/myitcrm

Rene Ladan rene at FreeBSD.org
Sun Jan 27 22:30:15 UTC 2013


Author: rene
Date: Sun Jan 27 22:30:14 2013
New Revision: 311081
URL: http://svnweb.freebsd.org/changeset/ports/311081

Log:
  Convert to optionsNG

Modified:
  head/deskutils/myitcrm/Makefile   (contents, props changed)

Modified: head/deskutils/myitcrm/Makefile
==============================================================================
--- head/deskutils/myitcrm/Makefile	Sun Jan 27 21:07:09 2013	(r311080)
+++ head/deskutils/myitcrm/Makefile	Sun Jan 27 22:30:14 2013	(r311081)
@@ -25,26 +25,26 @@ PORTEXAMPLES=	htaccess.txt
 PORTDOCS=	changelog.txt README.textile
 USE_DOS2UNIX=	yes
 
-OPTIONS=	APACHE		"Use Apache webserver" on \
-		PHPMOD		"Use php module for Apache" off \
-		LIGHTTPD	"Use Lighttpd webserver" off \
-		NGINX		"Use Nginx" off
+OPTIONS_DEFINE=	APACHE PHPMOD LIGHTTPD NGINX
+OPTIONS_DEFAULT=	APACHE
+PHPMOD_DESC=	Use PHP module for Apache
+NGINX_DESC=	Use Nginx
 
 .include <bsd.port.options.mk>
 
-.if defined(WITH_PHPMOD)
+.if ${PORT_OPTIONS:MPHPMOD}
 WANT_PHP_MOD=	yes
 .else
 WANT_PHP_CGI=	yes
 .endif
 
-.if !defined(WITHOUT_APACHE)
+.if ${PORT_OPTIONS:MAPACHE}
 USE_APACHE_RUN=	22+
 .endif
-.if defined(WITH_LIGHTTPD)
+.if ${PORT_OPTIONS:MLIGHTTPD}
 RUN_DEPENDS+=	lighttpd:${PORTSDIR}/www/lighttpd
 .endif
-.if defined(WITH_NGINX)
+.if ${PORT_OPTIONS:MNGINX}
 RUN_DEPENDS+=	nginx:${PORTSDIR}/www/nginx
 .endif
 
@@ -72,18 +72,18 @@ do-install:
 	@${CHOWN} ${WWWOWN}:${WWWGRP} ${WWWDIR}/${ent}
 	@${CHMOD} u+w ${WWWDIR}/${ent}
 .endfor
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
 .for ex in ${PORTEXAMPLES}
 	@${INSTALL_DATA} ${WRKSRC}/${ex} ${EXAMPLESDIR}
 .endfor
-.endif # NOPORTEXAMPLES
-.if !defined(NOPORTDOCS)
+.endif # PORTEXAMPLES
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 .for doc in ${PORTDOCS}
 	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
 .endfor
-.endif #NOPORTDOCS
+.endif # PORTDOCS
 
 post-install:
 	@${CAT} ${PKGMESSAGE}


More information about the svn-ports-all mailing list