diff options
author | pgj <pgj@FreeBSD.org> | 2012-10-29 03:51:53 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2012-10-29 03:51:53 +0800 |
commit | d8f2a0b5c551d2016fc1a72bfaa41e8b55b055a6 (patch) | |
tree | 4e4797aa00c6dd743d380180b2ca780482b35dd2 /www/limesurvey | |
parent | c681ff90e5dec354580d0c96e9f96cbc4069bd46 (diff) | |
download | freebsd-ports-gnome-d8f2a0b5c551d2016fc1a72bfaa41e8b55b055a6.tar.gz freebsd-ports-gnome-d8f2a0b5c551d2016fc1a72bfaa41e8b55b055a6.tar.zst freebsd-ports-gnome-d8f2a0b5c551d2016fc1a72bfaa41e8b55b055a6.zip |
- Convert options to the new format
PR: ports/172531
Submitted by: pgj
Approved by: maintainer
Feature safe: yes
Diffstat (limited to 'www/limesurvey')
-rw-r--r-- | www/limesurvey/Makefile | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/www/limesurvey/Makefile b/www/limesurvey/Makefile index 5304fd672a62..f28b9461704d 100644 --- a/www/limesurvey/Makefile +++ b/www/limesurvey/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: phpsurveyor -# Date created: 21 March 2005 -# Whom: janos.mohacsi@bsd.hu -# +# Created by: janos.mohacsi@bsd.hu # $FreeBSD$ -# PORTNAME= limesurvey PORTVERSION= 1.91 @@ -17,16 +13,18 @@ COMMENT= A PHP-based survey building and runing system LICENSE= GPLv2 # http://docs.limesurvey.org/Installation&structure=English+Instructions+for+LimeSurvey -OPTIONS= PGSQL "Use PostgreSQL (instead of MySQL)" off \ - GD "Install PHP gd extention" on \ - LDAP "Install PHP LDAP extention" off \ - ZIP "Install PHP zip extention" off -# ZLIB "Install PHP zlib extention" off # For ComfortUpdate +OPTIONS_DEFINE= PGSQL GD LDAP ZIP +OPTIONS_DEFAULT= GD + +PGSQL_DESC= Use PostgreSQL (instead of MySQL) +GD_DESC= Install PHP gd extension +LDAP_DESC= Install PHP LDAP extension +ZIP_DESC= Install PHP zip extension .include <bsd.port.options.mk> # http://docs.limesurvey.org/Installation&structure=English+Instructions+for+LimeSurvey#Make_sure_you_can_use_LimeSurvey_on_your_website -.if defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} USE_PGSQL= yes USE_PHP= pgsql .else @@ -35,13 +33,13 @@ USE_PHP= pgsql USE_MYSQL= client USE_PHP= mysql .endif -.if defined(WITH_GD) +.if ${PORT_OPTIONS:MGD} USE_PHP+= gd .endif -.if defined(WITH_LDAP) +.if ${PORT_OPTIONS:MLDAP} USE_PHP+= ldap .endif -.if defined(WITH_ZIP) +.if ${PORT_OPTIONS:MZIP} USE_PHP+= zip .endif USE_PHP+= ctype dom iconv json mbstring pcre \ @@ -61,7 +59,7 @@ PHPSURVEYORDIR= ${WWWDOCROOT}/${PHPSURVEYORURL} do-install: ${MKDIR} "${WWWDIR}" -.if defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} ${SED} -E \ -e 's/^(\$$databasetype[[:space:]]*=[[:space:]]*'"')mysql('"'.*)$$/\1postgres\2/' \ -e 's/^(\$$databaseuser[[:space:]]*=[[:space:]]*'"')root('"'.*)$$/\1pgsql\2/' \ |