Lines 6-12
Link Here
|
6 |
addpredict /usr/share/snmp/mibs/.index |
6 |
addpredict /usr/share/snmp/mibs/.index |
7 |
addpredict /var/lib/net-snmp/mib_indexes |
7 |
addpredict /var/lib/net-snmp/mib_indexes |
8 |
|
8 |
|
9 |
PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}" |
9 |
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}" |
10 |
|
10 |
|
11 |
# This is a global variable and should be in caps. It isn't because the |
11 |
# This is a global variable and should be in caps. It isn't because the |
12 |
# phpconfutils eclass relies on exactly this name... |
12 |
# phpconfutils eclass relies on exactly this name... |
Lines 23-82
Link Here
|
23 |
# extension USE flag shared |
23 |
# extension USE flag shared |
24 |
my_conf+=" |
24 |
my_conf+=" |
25 |
$(use_enable bcmath bcmath ) |
25 |
$(use_enable bcmath bcmath ) |
26 |
$(use_with bzip2 bz2 ) |
26 |
$(use_with bzip2 bz2 "${EPREFIX}"/usr) |
27 |
$(use_enable calendar calendar ) |
27 |
$(use_enable calendar calendar ) |
28 |
$(use_enable ctype ctype ) |
28 |
$(use_enable ctype ctype ) |
29 |
$(use_with curl curl ) |
29 |
$(use_with curl curl "${EPREFIX}"/usr) |
30 |
$(use_with curlwrappers curlwrappers ) |
30 |
$(use_with curlwrappers curlwrappers "${EPREFIX}"/usr) |
31 |
$(use_enable xml dom ) |
31 |
$(use_enable xml dom ) |
32 |
$(use_with enchant enchant /usr) |
32 |
$(use_with enchant enchant "${EPREFIX}"/usr) |
33 |
$(use_enable exif exif ) |
33 |
$(use_enable exif exif ) |
34 |
$(use_enable fileinfo fileinfo ) |
34 |
$(use_enable fileinfo fileinfo ) |
35 |
$(use_enable filter filter ) |
35 |
$(use_enable filter filter ) |
36 |
$(use_enable ftp ftp ) |
36 |
$(use_enable ftp ftp ) |
37 |
$(use_with nls gettext ) |
37 |
$(use_with nls gettext "${EPREFIX}"/usr) |
38 |
$(use_with gmp gmp ) |
38 |
$(use_with gmp gmp "${EPREFIX}"/usr) |
39 |
$(use_enable hash hash ) |
39 |
$(use_enable hash hash ) |
40 |
$(use_with mhash mhash ) |
40 |
$(use_with mhash mhash "${EPREFIX}"/usr) |
41 |
$(use_with iconv iconv ) |
41 |
$(use_with iconv iconv ) |
42 |
$(use_enable intl intl ) |
42 |
$(use_enable intl intl ) |
43 |
$(use_enable ipv6 ipv6 ) |
43 |
$(use_enable ipv6 ipv6 ) |
44 |
$(use_enable json json ) |
44 |
$(use_enable json json ) |
45 |
$(use_with kerberos kerberos /usr) |
45 |
$(use_with kerberos kerberos "${EPREFIX}"/usr) |
46 |
$(use_enable xml libxml ) |
46 |
$(use_enable xml libxml ) |
|
|
47 |
$(use_with xml libxml-dir "${EPREFIX}"/usr) |
47 |
$(use_enable unicode mbstring ) |
48 |
$(use_enable unicode mbstring ) |
48 |
$(use_with crypt mcrypt ) |
49 |
$(use_with crypt mcrypt "${EPREFIX}"/usr) |
49 |
$(use_with mssql mssql ) |
50 |
$(use_with mssql mssql "${EPREFIX}"/usr) |
50 |
$(use_with unicode onig /usr) |
51 |
$(use_with unicode onig "${EPREFIX}"/usr) |
51 |
$(use_with ssl openssl ) |
52 |
$(use_with ssl openssl "${EPREFIX}"/usr) |
52 |
$(use_with ssl openssl-dir /usr) |
53 |
$(use_with ssl openssl-dir "${EPREFIX}"/usr) |
53 |
$(use_enable pcntl pcntl ) |
54 |
$(use_enable pcntl pcntl ) |
54 |
$(use_enable phar phar ) |
55 |
$(use_enable phar phar ) |
55 |
$(use_enable pdo pdo ) |
56 |
$(use_enable pdo pdo ) |
56 |
$(use_with postgres pgsql ) |
57 |
$(use_with postgres pgsql "${EPREFIX}"/usr) |
57 |
$(use_enable posix posix ) |
58 |
$(use_enable posix posix ) |
58 |
$(use_with spell pspell ) |
59 |
$(use_with spell pspell "${EPREFIX}"/usr) |
59 |
$(use_with recode recode ) |
60 |
$(use_with recode recode "${EPREFIX}"/usr) |
60 |
$(use_enable simplexml simplexml ) |
61 |
$(use_enable simplexml simplexml ) |
61 |
$(use_enable sharedmem shmop ) |
62 |
$(use_enable sharedmem shmop ) |
62 |
$(use_with snmp snmp ) |
63 |
$(use_with snmp snmp "${EPREFIX}"/usr) |
63 |
$(use_enable soap soap ) |
64 |
$(use_enable soap soap ) |
64 |
$(use_enable sockets sockets ) |
65 |
$(use_enable sockets sockets ) |
65 |
$(use_with sqlite3 sqlite3 /usr) |
66 |
$(use_with sqlite3 sqlite3 "${EPREFIX}"/usr) |
66 |
$(use_with sybase-ct sybase-ct /usr) |
67 |
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr) |
67 |
$(use_enable sysvipc sysvmsg ) |
68 |
$(use_enable sysvipc sysvmsg ) |
68 |
$(use_enable sysvipc sysvsem ) |
69 |
$(use_enable sysvipc sysvsem ) |
69 |
$(use_enable sysvipc sysvshm ) |
70 |
$(use_enable sysvipc sysvshm ) |
70 |
$(use_with tidy tidy ) |
71 |
$(use_with tidy tidy "${EPREFIX}"/usr) |
71 |
$(use_enable tokenizer tokenizer ) |
72 |
$(use_enable tokenizer tokenizer ) |
72 |
$(use_enable wddx wddx ) |
73 |
$(use_enable wddx wddx ) |
73 |
$(use_enable xml xml ) |
74 |
$(use_enable xml xml ) |
74 |
$(use_enable xmlreader xmlreader ) |
75 |
$(use_enable xmlreader xmlreader ) |
75 |
$(use_enable xmlwriter xmlwriter ) |
76 |
$(use_enable xmlwriter xmlwriter ) |
76 |
$(use_with xmlrpc xmlrpc ) |
77 |
$(use_with xmlrpc xmlrpc "${EPREFIX}"/usr) |
77 |
$(use_with xsl xsl ) |
78 |
$(use_with xsl xsl "${EPREFIX}"/usr) |
78 |
$(use_enable zip zip ) |
79 |
$(use_enable zip zip ) |
79 |
$(use_with zlib zlib ) |
80 |
$(use_with zlib zlib "${EPREFIX}"/usr) |
80 |
$(use_enable debug debug )" |
81 |
$(use_enable debug debug )" |
81 |
|
82 |
|
82 |
# DBA support |
83 |
# DBA support |
Lines 87-130
Link Here
|
87 |
|
88 |
|
88 |
# DBA drivers support |
89 |
# DBA drivers support |
89 |
my_conf+=" |
90 |
my_conf+=" |
90 |
$(use_with cdb cdb ) |
91 |
$(use_with cdb cdb ${EPREFIX}/usr) |
91 |
$(use_with berkdb db4 ) |
92 |
$(use_with berkdb db4 ${EPREFIX}/usr) |
92 |
$(use_enable flatfile flatfile ) |
93 |
$(use_enable flatfile flatfile ) |
93 |
$(use_with gdbm gdbm ) |
94 |
$(use_with gdbm gdbm ${EPREFIX}/usr) |
94 |
$(use_enable inifile inifile ) |
95 |
$(use_enable inifile inifile ) |
95 |
$(use_with qdbm qdbm )" |
96 |
$(use_with qdbm qdbm ${EPREFIX}/usr)" |
96 |
|
97 |
|
97 |
# Support for the GD graphics library |
98 |
# Support for the GD graphics library |
98 |
my_conf+=" |
99 |
my_conf+=" |
99 |
$(use_with truetype freetype-dir /usr) |
100 |
$(use_with truetype freetype-dir ${EPREFIX}/usr) |
100 |
$(use_with truetype t1lib /usr) |
101 |
$(use_with truetype t1lib ${EPREFIX}/usr) |
101 |
$(use_enable cjk gd-jis-conv ) |
102 |
$(use_enable cjk gd-jis-conv ) |
102 |
$(use_with gd jpeg-dir /usr) |
103 |
$(use_with gd jpeg-dir ${EPREFIX}/usr) |
103 |
$(use_with gd png-dir /usr) |
104 |
$(use_with gd png-dir ${EPREFIX}/usr) |
104 |
$(use_with xpm xpm-dir /usr)" |
105 |
$(use_with xpm xpm-dir ${EPREFIX}/usr)" |
105 |
# enable gd last, so configure can pick up the previous settings |
106 |
# enable gd last, so configure can pick up the previous settings |
106 |
my_conf+=" |
107 |
my_conf+=" |
107 |
$(use_with gd gd )" |
108 |
$(use_with gd gd ${EPREFIX}/usr)" |
108 |
|
109 |
|
109 |
# IMAP support |
110 |
# IMAP support |
110 |
if use imap ; then |
111 |
if use imap ; then |
111 |
my_conf+=" |
112 |
my_conf+=" |
112 |
$(use_with imap imap ) |
113 |
$(use_with imap imap ${EPREFIX}/usr) |
113 |
$(use_with ssl imap-ssl )" |
114 |
$(use_with ssl imap-ssl ${EPREFIX}/usr)" |
114 |
fi |
115 |
fi |
115 |
|
116 |
|
116 |
# Interbase/firebird support |
117 |
# Interbase/firebird support |
117 |
|
118 |
|
118 |
if use firebird ; then |
119 |
if use firebird ; then |
119 |
my_conf+=" |
120 |
my_conf+=" |
120 |
$(use_with firebird interbase /usr)" |
121 |
$(use_with firebird interbase ${EPREFIX}/usr)" |
121 |
fi |
122 |
fi |
122 |
|
123 |
|
123 |
# LDAP support |
124 |
# LDAP support |
124 |
if use ldap ; then |
125 |
if use ldap ; then |
125 |
my_conf+=" |
126 |
my_conf+=" |
126 |
$(use_with ldap ldap ) |
127 |
$(use_with ldap ldap ${EPREFIX}/usr) |
127 |
$(use_with ldap-sasl ldap-sasl )" |
128 |
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)" |
128 |
fi |
129 |
fi |
129 |
|
130 |
|
130 |
# MySQL support |
131 |
# MySQL support |
Lines 134-143
Link Here
|
134 |
$(use_with mysql mysql mysqlnd)" |
135 |
$(use_with mysql mysql mysqlnd)" |
135 |
else |
136 |
else |
136 |
my_conf+=" |
137 |
my_conf+=" |
137 |
$(use_with mysql mysql /usr)" |
138 |
$(use_with mysql mysql ${EPREFIX}/usr)" |
138 |
fi |
139 |
fi |
139 |
my_conf+=" |
140 |
my_conf+=" |
140 |
$(use_with mysql mysql-sock /var/run/mysqld/mysqld.sock)" |
141 |
$(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)" |
141 |
fi |
142 |
fi |
142 |
|
143 |
|
143 |
# MySQLi support |
144 |
# MySQLi support |
Lines 146-163
Link Here
|
146 |
$(use_with mysqli mysqli mysqlnd)" |
147 |
$(use_with mysqli mysqli mysqlnd)" |
147 |
else |
148 |
else |
148 |
my_conf+=" |
149 |
my_conf+=" |
149 |
$(use_with mysqli mysqli /usr/bin/mysql_config)" |
150 |
$(use_with mysqli mysqli ${EPREFIX}/usr/bin/mysql_config)" |
150 |
fi |
151 |
fi |
151 |
|
152 |
|
152 |
# ODBC support |
153 |
# ODBC support |
153 |
if use odbc ; then |
154 |
if use odbc ; then |
154 |
my_conf+=" |
155 |
my_conf+=" |
155 |
$(use_with odbc unixODBC /usr)" |
156 |
$(use_with odbc unixODBC ${EPREFIX}/usr)" |
156 |
fi |
157 |
fi |
157 |
|
158 |
|
158 |
if use iodbc ; then |
159 |
if use iodbc ; then |
159 |
my_conf+=" |
160 |
my_conf+=" |
160 |
$(use_with iodbc iodbc /usr)" |
161 |
$(use_with iodbc iodbc ${EPREFIX}/usr)" |
161 |
fi |
162 |
fi |
162 |
|
163 |
|
163 |
# Oracle support |
164 |
# Oracle support |
Lines 175-186
Link Here
|
175 |
$(use_with mysql pdo-mysql mysqlnd)" |
176 |
$(use_with mysql pdo-mysql mysqlnd)" |
176 |
else |
177 |
else |
177 |
my_conf+=" |
178 |
my_conf+=" |
178 |
$(use_with mysql pdo-mysql /usr)" |
179 |
$(use_with mysql pdo-mysql ${EPREFIX}/usr)" |
179 |
fi |
180 |
fi |
180 |
my_conf+=" |
181 |
my_conf+=" |
181 |
$(use_with postgres pdo-pgsql ) |
182 |
$(use_with postgres pdo-pgsql ) |
182 |
$(use_with sqlite3 pdo-sqlite /usr) |
183 |
$(use_with sqlite3 pdo-sqlite ${EPREFIX}/usr) |
183 |
$(use_with odbc pdo-odbc unixODBC,/usr)" |
184 |
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)" |
184 |
if use oci8-instant-client ; then |
185 |
if use oci8-instant-client ; then |
185 |
my_conf+=" |
186 |
my_conf+=" |
186 |
$(use_with oci8-instant-client pdo-oci)" |
187 |
$(use_with oci8-instant-client pdo-oci)" |
Lines 189-201
Link Here
|
189 |
|
190 |
|
190 |
# readline/libedit support |
191 |
# readline/libedit support |
191 |
my_conf+=" |
192 |
my_conf+=" |
192 |
$(use_with readline readline ) |
193 |
$(use_with readline readline ${EPREFIX}/usr) |
193 |
$(use_with libedit libedit )" |
194 |
$(use_with libedit libedit ${EPREFIX}/usr)" |
194 |
|
195 |
|
195 |
# Session support |
196 |
# Session support |
196 |
if use session ; then |
197 |
if use session ; then |
197 |
my_conf+=" |
198 |
my_conf+=" |
198 |
$(use_with sharedmem mm )" |
199 |
$(use_with sharedmem mm ${EPREFIX}/usr)" |
199 |
else |
200 |
else |
200 |
my_conf+=" |
201 |
my_conf+=" |
201 |
$(use_enable session session )" |
202 |
$(use_enable session session )" |
Lines 208-214
Link Here
|
208 |
# we use the system copy of pcre |
209 |
# we use the system copy of pcre |
209 |
# --with-pcre-regex affects ext/pcre |
210 |
# --with-pcre-regex affects ext/pcre |
210 |
# --with-pcre-dir affects ext/filter and ext/zip |
211 |
# --with-pcre-dir affects ext/filter and ext/zip |
211 |
my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr" |
212 |
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr" |
212 |
|
213 |
|
213 |
# Catch CFLAGS problems |
214 |
# Catch CFLAGS problems |
214 |
# Fixes bug #14067. |
215 |
# Fixes bug #14067. |
Lines 244-250
Link Here
|
244 |
|
245 |
|
245 |
apache2) |
246 |
apache2) |
246 |
if [[ "${one_sapi}" == "${sapi}" ]] ; then |
247 |
if [[ "${one_sapi}" == "${sapi}" ]] ; then |
247 |
sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs" |
248 |
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs" |
248 |
else |
249 |
else |
249 |
sapi_conf="${sapi_conf} --without-apxs2" |
250 |
sapi_conf="${sapi_conf} --without-apxs2" |
250 |
fi |
251 |
fi |