diff options
author | beech <beech@FreeBSD.org> | 2012-12-16 13:54:22 +0800 |
---|---|---|
committer | beech <beech@FreeBSD.org> | 2012-12-16 13:54:22 +0800 |
commit | b742942ebdd434fcafc9fe8ac34e1a8bd7692555 (patch) | |
tree | 97c1ce47b6ce790f78db4cebbfd88efa4b0afca9 /mail | |
parent | a1f2f6bb7348dbf860929a2282473b88c71992bd (diff) | |
download | freebsd-ports-gnome-b742942ebdd434fcafc9fe8ac34e1a8bd7692555.tar.gz freebsd-ports-gnome-b742942ebdd434fcafc9fe8ac34e1a8bd7692555.tar.zst freebsd-ports-gnome-b742942ebdd434fcafc9fe8ac34e1a8bd7692555.zip |
Update sgwi 1.1.5 to use options NG
PR: ports/174460
Submitted by: Lukasz Wasikowski <lukasz@wasikowski.net> (maintainer)
Diffstat (limited to 'mail')
-rw-r--r-- | mail/sgwi/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/mail/sgwi/Makefile b/mail/sgwi/Makefile index 49dbb3cbeb76..877ee3b50033 100644 --- a/mail/sgwi/Makefile +++ b/mail/sgwi/Makefile @@ -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: |