Gentoo Archives: gentoo-commits

From: "Matti Bickel (mabi)" <mabi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/php/files/eblits: src_configure-v52.eblit
Date: Mon, 02 Aug 2010 17:02:41
Message-Id: 20100802165642.6A25A2C3ED@corvid.gentoo.org
1 mabi 10/08/02 16:56:42
2
3 Added: src_configure-v52.eblit
4 Log:
5 version & eapi bump
6 (Portage version: 2.1.8.3/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-lang/php/files/eblits/src_configure-v52.eblit
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/files/eblits/src_configure-v52.eblit?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/files/eblits/src_configure-v52.eblit?rev=1.1&content-type=text/plain
13
14 Index: src_configure-v52.eblit
15 ===================================================================
16 # Copyright 1999-2010 Gentoo Foundation
17 # Distributed under the terms of the GNU General Public License v2
18 # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v52.eblit,v 1.1 2010/08/02 16:56:42 mabi Exp $
19
20 eblit-php-src_configure() {
21 PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}"
22
23 # This is a global variable and should be in caps. It isn't because the
24 # phpconfutils eclass relies on exactly this name...
25 my_conf="
26 --prefix="${PHP_DESTDIR}"
27 --mandir="${PHP_DESTDIR}"/man
28 --infodir="${PHP_DESTDIR}"/info
29 --libdir="${PHP_DESTDIR}"/lib
30 --with-libdir=$(get_libdir)
31 --without-pear
32 $(use_enable threads maintainer-zts)"
33
34 phpconfutils_init
35
36 # extension USE flag shared
37 phpconfutils_extension_enable "bcmath" "bcmath" 1
38 phpconfutils_extension_with "bz2" "bzip2" 1
39 phpconfutils_extension_enable "calendar" "calendar" 1
40 phpconfutils_extension_disable "ctype" "ctype" 0
41 phpconfutils_extension_with "curl" "curl" 1
42 phpconfutils_extension_with "curlwrappers" "curlwrappers" 0
43 phpconfutils_extension_enable "dbase" "dbase" 1
44 phpconfutils_extension_disable "dom" "xml" 0
45 phpconfutils_extension_enable "exif" "exif" 1
46 phpconfutils_extension_with "fbsql" "frontbase" 1
47 phpconfutils_extension_with "fdftk" "fdftk" 1 "/opt/fdftk-6.0"
48 phpconfutils_extension_disable "filter" "filter" 0
49 phpconfutils_extension_enable "ftp" "ftp" 1
50 phpconfutils_extension_with "gettext" "nls" 1
51 phpconfutils_extension_with "gmp" "gmp" 1
52 phpconfutils_extension_disable "hash" "hash" 0
53 phpconfutils_extension_without "iconv" "iconv" 0
54 phpconfutils_extension_disable "ipv6" "ipv6" 0
55 phpconfutils_extension_disable "json" "json" 0
56 phpconfutils_extension_with "kerberos" "kerberos" 0 "/usr"
57 phpconfutils_extension_disable "libxml" "xml" 0
58 phpconfutils_extension_enable "mbstring" "unicode" 1
59 phpconfutils_extension_with "mcrypt" "crypt" 1
60 phpconfutils_extension_with "mhash" "mhash" 1
61 phpconfutils_extension_with "msql" "msql" 1
62 phpconfutils_extension_with "mssql" "mssql" 1
63 phpconfutils_extension_with "ncurses" "ncurses" 1
64 phpconfutils_extension_with "openssl" "ssl" 0
65 phpconfutils_extension_with "openssl-dir" "ssl" 0 "/usr"
66 phpconfutils_extension_enable "pcntl" "pcntl" 1
67 phpconfutils_extension_without "pcre-regex" "pcre" 0
68 phpconfutils_extension_disable "pdo" "pdo" 0
69 phpconfutils_extension_with "pgsql" "postgres" 1
70 phpconfutils_extension_disable "posix" "posix" 0
71 phpconfutils_extension_with "pspell" "spell" 1
72 phpconfutils_extension_with "recode" "recode" 1
73 phpconfutils_extension_disable "reflection" "reflection" 0
74 phpconfutils_extension_disable "simplexml" "simplexml" 0
75 phpconfutils_extension_enable "shmop" "sharedmem" 0
76 phpconfutils_extension_with "snmp" "snmp" 1
77 phpconfutils_extension_enable "soap" "soap" 1
78 phpconfutils_extension_enable "sockets" "sockets" 1
79 phpconfutils_extension_disable "spl" "spl" 0
80 phpconfutils_extension_with "sybase-ct" "sybase-ct" 1
81 phpconfutils_extension_enable "sysvmsg" "sysvipc" 1
82 phpconfutils_extension_enable "sysvsem" "sysvipc" 1
83 phpconfutils_extension_enable "sysvshm" "sysvipc" 1
84 phpconfutils_extension_with "tidy" "tidy" 1
85 phpconfutils_extension_disable "tokenizer" "tokenizer" 0
86 phpconfutils_extension_enable "wddx" "wddx" 1
87 phpconfutils_extension_disable "xml" "xml" 0
88 phpconfutils_extension_disable "xmlreader" "xmlreader" 0
89 phpconfutils_extension_disable "xmlwriter" "xmlwriter" 0
90 phpconfutils_extension_with "xmlrpc" "xmlrpc" 1
91 phpconfutils_extension_with "xsl" "xsl" 1
92 phpconfutils_extension_enable "zip" "zip" 1
93 phpconfutils_extension_with "zlib" "zlib" 1
94 phpconfutils_extension_enable "debug" "debug" 0
95
96 # DBA support
97 if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
98 || use qdbm ; then
99 my_conf="${my_conf} --enable-dba${shared}"
100 fi
101
102 # DBA drivers support
103 phpconfutils_extension_with "cdb" "cdb" 0
104 phpconfutils_extension_with "db4" "berkdb" 0
105 phpconfutils_extension_enable "flatfile" "flatfile" 0
106 phpconfutils_extension_with "gdbm" "gdbm" 0
107 phpconfutils_extension_enable "inifile" "inifile" 0
108 phpconfutils_extension_with "qdbm" "qdbm" 0
109
110 # Support for the GD graphics library
111 if use gd-external ; then
112 phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr"
113 phpconfutils_extension_with "t1lib" "truetype" 0 "/usr"
114 phpconfutils_extension_enable "gd-jis-conv" "cjk" 0
115 phpconfutils_extension_with "gd" "gd-external" 1 "/usr"
116 else
117 phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr"
118 phpconfutils_extension_with "t1lib" "truetype" 0 "/usr"
119 phpconfutils_extension_enable "gd-jis-conv" "cjk" 0
120 phpconfutils_extension_with "jpeg-dir" "gd" 0 "/usr"
121 phpconfutils_extension_with "png-dir" "gd" 0 "/usr"
122 phpconfutils_extension_with "xpm-dir" "xpm" 0 "/usr"
123 # enable gd last, so configure can pick up the previous settings
124 phpconfutils_extension_with "gd" "gd" 0
125 fi
126
127 # IMAP support
128 if use imap ; then
129 phpconfutils_extension_with "imap" "imap" 1
130 phpconfutils_extension_with "imap-ssl" "ssl" 0
131 fi
132
133 phpconfutils_extension_with "interbase" "interbase" 0 "/opt"
134 phpconfutils_extension_with "interbase" "firebird" 0 "/usr"
135
136 # LDAP support
137 if use ldap ; then
138 if use oci8 ; then
139 phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}"
140 else
141 phpconfutils_extension_with "ldap" "ldap" 1
142 phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0
143 fi
144 fi
145
146 # MySQL support
147 if use mysql ; then
148 phpconfutils_extension_with "mysql" "mysql" 1 "/usr"
149 phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock"
150 fi
151
152 # MySQLi support
153 phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config"
154
155 # ODBC support
156 if use odbc ; then
157 phpconfutils_extension_with "unixODBC" "odbc" 1 "/usr"
158 phpconfutils_extension_with "adabas" "adabas" 1
159 phpconfutils_extension_with "birdstep" "birdstep" 1
160 phpconfutils_extension_with "dbmaker" "dbmaker" 1
161 phpconfutils_extension_with "empress" "empress" 1
162 if use empress ; then
163 phpconfutils_extension_with "empress-bcs" "empress-bcs" 0
164 fi
165 phpconfutils_extension_with "esoob" "esoob" 1
166 phpconfutils_extension_with "ibm-db2" "db2" 1
167 phpconfutils_extension_with "sapdb" "sapdb" 1
168 phpconfutils_extension_with "solid" "solid" 1
169 fi
170
171 if use iodbc ; then
172 phpconfutils_extension_with "iodbc" "iodbc" 1 "/usr"
173 fi
174
175 # Oracle support
176 phpconfutils_extension_with "oci8" "oci8" 1
177 if use oci8-instant-client ; then
178 OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \
179 sed -e 's|dev-db/oracle-instantclient-basic-||g' | \
180 sed -e 's|-r.*||g')"
181
182 phpconfutils_extension_with "oci8" "oci8-instant-client" 1 \
183 "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib"
184 fi
185
186 # PDO support
187 if use pdo ; then
188 phpconfutils_extension_with "pdo-dblib" "mssql" 1
189 phpconfutils_extension_with "pdo-mysql" "mysql" 1 "/usr"
190 phpconfutils_extension_with "pdo-pgsql" "postgres" 1
191 phpconfutils_extension_with "pdo-sqlite" "sqlite" 1 "/usr"
192 phpconfutils_extension_with "pdo-odbc" "odbc" 1 "unixODBC,/usr"
193 if use oci8 ; then
194 phpconfutils_extension_with "pdo-oci" "oci8" 1
195 fi
196 if use oci8-instant-client ; then
197 phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 \
198 "instantclient,/usr,${OCI8IC_PKG}"
199 fi
200 fi
201
202 # readline/libedit support
203 phpconfutils_extension_with "readline" "readline" 0
204 phpconfutils_extension_with "libedit" "libedit" 0
205
206 # Session support
207 if use session ; then
208 phpconfutils_extension_with "mm" "sharedmem" 0
209 else
210 phpconfutils_extension_disable "session" "session" 0
211 fi
212
213 # SQLite support
214 if use sqlite ; then
215 phpconfutils_extension_with "sqlite" "sqlite" 0 "/usr"
216 phpconfutils_extension_enable "sqlite-utf8" "unicode" 0
217 else
218 phpconfutils_extension_without "sqlite" "sqlite" 0
219 fi
220
221 if use pic ; then
222 my_conf="${my_conf} --with-pic"
223 fi
224
225
226 # we use the system copy of pcre
227 # --with-pcre-regex affects ext/pcre
228 # --with-pcre-dir affects ext/filter and ext/zip
229 if use pcre ; then
230 my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr"
231 fi
232
233 # Catch CFLAGS problems
234 php_check_cflags
235
236 # Support user-passed configuration parameters
237 my_conf="${my_conf} ${EXTRA_ECONF:-}"
238
239 # Support the Apache2 extras, they must be set globally for all
240 # SAPIs to work correctly, especially for external PHP extensions
241 if use apache2 ; then
242 # Concurrent PHP Apache2 modules support
243 if use concurrentmodphp ; then
244 append-ldflags "-Wl,--version-script=${FILESDIR}/php${PHP_MV}-ldvs"
245 fi
246 fi
247 }