Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2012 05:54:22 +0000 (UTC)
From:      Beech Rintoul <beech@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308984 - head/mail/sgwi
Message-ID:  <201212160554.qBG5sMI3014493@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: beech
Date: Sun Dec 16 05:54:22 2012
New Revision: 308984
URL: http://svnweb.freebsd.org/changeset/ports/308984

Log:
  Update sgwi 1.1.5 to use options NG
  
  PR:		ports/174460
  Submitted by:	Lukasz Wasikowski <lukasz@wasikowski.net> (maintainer)

Modified:
  head/mail/sgwi/Makefile   (contents, props changed)

Modified: head/mail/sgwi/Makefile
==============================================================================
--- head/mail/sgwi/Makefile	Sun Dec 16 05:42:18 2012	(r308983)
+++ head/mail/sgwi/Makefile	Sun Dec 16 05:54:22 2012	(r308984)
@@ -21,21 +21,24 @@ NO_BUILD=	yes
 SUB_FILES+=	pkg-message pkg-install
 SUB_LIST=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
 
-OPTIONS=	MYSQL "MySQL back-end (use mysql PHP extension)" on
-OPTIONS+=	PGSQL "PostgreSQL back-end (use pgsql PHP extension)" off
+OPTIONS_SINGLE=	BACKEND
+OPTIONS_SINGLE_BACKEND=	MYSQL PGSQL
 
-.if !defined(WITHOUT_MYSQL)
+MYSQL_DESC=	MySQL back-end (use mysql PHP extension)
+PGSQL_DESC= 	PostgreSQL back-end (use pgsql PHP extension)
+
+OPTIONS_DEFAULT=MYSQL
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MMYSQL}
 USE_PHP+=	mysql
 .endif
 
-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
 USE_PHP+=	pgsql
 .endif
 
-.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL)
-IGNORE=	needs at least one database back-end
-.endif
-
 WANT_PHP_WEB=	yes
 
 post-patch:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212160554.qBG5sMI3014493>