diff options
author | bapt <bapt@FreeBSD.org> | 2013-03-22 19:53:34 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-03-22 19:53:34 +0800 |
commit | 82e57a3744d34ece60a8c97f28978fadfb124a32 (patch) | |
tree | 5f0dbe9212a3377e7182c77ac610d48050fcb2b0 /www/codeigniter17 | |
parent | 27efa52ca9049f13bc2a8a42e8992c99f16402a1 (diff) | |
download | freebsd-ports-gnome-82e57a3744d34ece60a8c97f28978fadfb124a32.tar.gz freebsd-ports-gnome-82e57a3744d34ece60a8c97f28978fadfb124a32.tar.zst freebsd-ports-gnome-82e57a3744d34ece60a8c97f28978fadfb124a32.zip |
Convert a bunch of www ports to new options framework
Diffstat (limited to 'www/codeigniter17')
-rw-r--r-- | www/codeigniter17/Makefile | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/www/codeigniter17/Makefile b/www/codeigniter17/Makefile index 3c0247d12ffa..e94eb2f905ad 100644 --- a/www/codeigniter17/Makefile +++ b/www/codeigniter17/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: codeigniter -# Date created: 04 January 2008 -# Whom: Greg Larkin <glarkin@FreeBSD.org> -# +# Created by: Greg Larkin <glarkin@FreeBSD.org> # $FreeBSD$ -# PORTNAME= codeigniter PORTVERSION= 1.7.3 @@ -58,18 +54,20 @@ STD_BITS= ${CI_CONF_DIR}/index.html \ ${CI_SYS_DIR}/plugins \ ${CI_SYS_DIR}/scaffolding -OPTIONS= APACHE "Configure for Apache-2.x" off \ - PROD "Install for production server (see: make confighelp)" Off \ - MSSQL "Install MSSQL support for PHP" Off \ - MYSQL "Install MySQL support for PHP" Off \ - MYSQLI "Install MySQLi support for PHP" Off \ - ODBC "Install ODBC support for PHP" Off \ - PGSQL "Install PostgreSQL support for PHP" Off \ - SQLITE "Install SQLite support for PHP" Off +OPTIONS_DEFINE= APACHE PROD MSSQL MYSQL MYSQLI ODBC PGSQL SQLITE + +APACHE_DESC= Configure for Apache-2.x +PROD_DESC= Install for production server (see: make confighelp) +MSSQL_DESC= Install MSSQL support for PHP +MYSQL_DESC= Install MySQL support for PHP +MYSQLI_DESC= Install MySQLi support for PHP +ODBC= Install ODBC support for PHP +PGSQL_DESC= Install PostgreSQL support for PHP +SQLITE_DESC= Install SQLite support for PHP .include <bsd.port.pre.mk> -.if defined(WITH_APACHE) +.if ${PORT_OPTIONS:MAPACHE} USE_APACHE_RUN= 22+ PLIST_SUB+= NOAPACHE="" CONFDIR=${CONFDIR_REL} @@ -97,33 +95,33 @@ DEFAULT_PHP_VER=5 SUB_LIST+= PHPCGI=${WITH_PHP_CGI} -.if defined(WITH_PROD) +.if ${PORT_OPTIONS:MPROD} PROD= production .else PROD= development .endif -.if defined(WITH_MSSQL) +.if ${PORT_OPTIONS:MMSSQL} USE_PHP+= mssql .endif -.if defined(WITH_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} USE_PHP+= mysql .endif -.if defined(WITH_MYSQLI) +.if ${PORT_OPTIONS:MMYSQLI} USE_PHP+= mysqli .endif -.if defined(WITH_ODBC) +.if ${PORT_OPTIONS:MODBC} USE_PHP+= odbc .endif -.if defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} USE_PHP+= pgsql .endif -.if defined(WITH_SQLITE) +.if ${PORT_OPTIONS:MSQLITE} USE_PHP+= sqlite .endif @@ -177,7 +175,7 @@ post-install: fi; \ fi; \ done -.if defined(WITH_APACHE) +.if ${PORT_OPTIONS:MAPACHE} @if [ -d "${CONFDIR}" ]; then \ ${CP} ${WRKDIR}/${CONF} ${CONFDIR}/codeigniter.conf; \ else \ @@ -189,7 +187,7 @@ post-install: ${FALSE} ; \ fi .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @cd ${WRKSRC}/user_guide/ && ${COPYTREE_SHARE} . ${DOCSDIR} .endif |