ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/www/codeigniter/Makefile
Revision: 24495
Committed: Mon Oct 15 22:14:37 2018 UTC (5 years, 6 months ago) by laffer1
Content type: text/plain
File size: 3215 byte(s)
Log Message:
fix build

File Contents

# Content
1 # Created by: Greg Larkin <glarkin@FreeBSD.org>
2 # $FreeBSD: head/www/codeigniter/Makefile 435489 2017-03-05 16:39:25Z junovitch $
3 # $MidnightBSD$
4
5 PORTNAME= codeigniter
6 PORTVERSION= 3.1.6
7 CATEGORIES= www
8
9 MAINTAINER= ports@MidnightBSD.org
10 COMMENT= Framework for developing PHP web applications
11
12 LICENSE= mit
13 LICENSE_FILE= ${WRKSRC}/license.txt
14
15 USE_GITHUB= yes
16 GH_ACCOUNT= bcit-ci
17 GH_PROJECT= CodeIgniter
18
19 CONFLICTS= codeigniter-1.[0-9]* codeigniter22-2.[0-9]*
20
21 NO_ARCH= yes
22 NO_BUILD= yes
23 USES= php:web
24 USE_PHP= mcrypt pcre session
25 PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
26
27 CI_SYS_DIR= system
28 CI_CONF_DIR= application/config
29 PORTDOCS= *
30
31 # These are all user-configurable files that we'll install
32 CI_CONF_FILES= index.php \
33 ${CI_CONF_DIR}/autoload.php \
34 ${CI_CONF_DIR}/config.php \
35 ${CI_CONF_DIR}/constants.php \
36 ${CI_CONF_DIR}/database.php \
37 ${CI_CONF_DIR}/doctypes.php \
38 ${CI_CONF_DIR}/foreign_chars.php \
39 ${CI_CONF_DIR}/hooks.php \
40 ${CI_CONF_DIR}/memcached.php \
41 ${CI_CONF_DIR}/mimes.php \
42 ${CI_CONF_DIR}/migration.php \
43 ${CI_CONF_DIR}/profiler.php \
44 ${CI_CONF_DIR}/routes.php \
45 ${CI_CONF_DIR}/smileys.php \
46 ${CI_CONF_DIR}/user_agents.php
47
48 # This is the rest of the CodeIgniter installation that doesn't change
49 STD_BITS= ${CI_CONF_DIR}/index.html \
50 application/.htaccess \
51 application/cache \
52 application/controllers \
53 application/core \
54 application/helpers \
55 application/hooks \
56 application/index.html \
57 application/language \
58 application/libraries \
59 application/logs \
60 application/models \
61 application/third_party \
62 application/views \
63 ${CI_SYS_DIR}/.htaccess \
64 ${CI_SYS_DIR}/core \
65 ${CI_SYS_DIR}/database \
66 ${CI_SYS_DIR}/fonts \
67 ${CI_SYS_DIR}/helpers \
68 ${CI_SYS_DIR}/index.html \
69 ${CI_SYS_DIR}/language \
70 ${CI_SYS_DIR}/libraries
71
72 OPTIONS_DEFINE= APACHE DOCS MSSQL MYSQL MYSQLI ODBC PGSQL SQLITE
73 OPTIONS_SUB= yes
74
75 SUB_FILES= pkg-message
76 PLIST_SUB+= ECHO_MSG=${ECHO_MSG} CI_CONF_DIR=${CI_CONF_DIR}
77
78 APACHE_DESC= Configure for Apache-2.x
79 MSSQL_DESC= Install MSSQL support for PHP
80 MYSQL_DESC= Install MySQL support for PHP
81 MYSQLI_DESC= Install MySQLi support for PHP
82 ODBC_DESC= Install ODBC support for PHP
83 PGSQL_DESC= Install PostgreSQL support for PHP
84 SQLITE_DESC= Install SQLite support for PHP
85
86 APACHE_VARS= USE_APACHE_RUN=22+
87 DOCS_VARS= SUB_LIST+=HASHMARK=
88 DOCS_VARS_OFF= SUB_LIST+=HASHMARK=\#
89 MSSQL_VARS= USE_PHP+=mssql
90 MYSQL_VARS= USE_PHP+=mysql
91 MYSQLI_VARS= USE_PHP+=mysqli
92 ODBC_VARS= USE_PHP+=odbc
93 PGSQL_VARS= USE_PHP+=pgsql
94 SQLITE_VARS= USE_PHP+=sqlite3
95
96 # These variables are specifically defined for Apache
97 CONF= codeigniter.conf
98 CONFDIR= ${PREFIX}/${CONFDIR_REL}
99 CONFDIR_REL= ${APACHEETCDIR}/Includes
100 PLIST_SUB+= CONFDIR=${CONFDIR_REL}
101 SUB_FILES+= ${CONF}
102
103 do-install:
104 cd ${WRKSRC} && ${COPYTREE_SHARE} "${STD_BITS}" ${WWWDIR}
105 for i in ${CI_CONF_FILES}; do \
106 ${INSTALL_DATA} ${WRKSRC}/$$i ${WWWDIR}/$$i.sample; \
107 done
108 @${MKDIR} ${FAKE_DESTDIR}${CONFDIR}
109 ${CP} ${WRKDIR}/${CONF} ${FAKE_DESTDIR}${CONFDIR}/codeigniter.conf;
110 cd ${WRKSRC}/user_guide && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
111 ${RM} ${STAGEDIR}${DOCSDIR}/.buildinfo
112 ${CP} ${WRKSRC}/readme.rst ${STAGEDIR}${DOCSDIR}/readme.rst
113
114 .include <bsd.port.mk>

Properties

Name Value
svn:eol-style native
svn:keywords MidnightBSD=%H
svn:mime-type text/plain