Skip to content
This repository was archived by the owner on Dec 23, 2018. It is now read-only.

Commit 1673621

Browse files
committed
Prepare definition for PHP 5.3
1 parent 2f8b566 commit 1673621

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

bin/php-build

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,8 @@ build_package() {
136136

137137
build_package_standard() {
138138
local package_name="$1"
139-
local argv
140-
141-
# Add `--libexecdir`,` --with-config-file-path`, `--with-config-file-scan-dir`
142-
# as well as the prefix configure options
143-
#
144-
# This is set as the default configure options
145-
argv="--prefix=$PREFIX_PATH \
146-
--libexecdir=$PREFIX_PATH/libexec \
147-
--with-config-file-path=$PREFIX_PATH/etc \
148-
--with-config-file-scan-dir=$PREFIX_PATH/etc/conf.d \
149-
$CONFIGURE_OPTS"
150139

151-
{ ./configure "$argv"
140+
{ ./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
152141
make -j 2
153142
make install
154143
} >&4 2>&1
@@ -210,6 +199,9 @@ list_definitions() {
210199

211200
# Set the default php.ini to use
212201
PHP_BUILD_DEFAULT_INI="php.ini-recommended"
202+
if [ ! -e "$PHP_BUILD_DEFAULT_INI" ]; then
203+
PHP_BUILD_DEFAULT_INI="php.ini-production"
204+
fi
213205

214206

215207

@@ -264,6 +256,13 @@ if [ ! -d "$PREFIX_PATH/libexec" ] || [ ! -d "$PREFIX_PATH/etc/conf.d" ]; then
264256
mkdir -p "$PREFIX_PATH/"{libexec,etc/conf.d}
265257
fi
266258

259+
# Add `--libexecdir`, `--with-config-file-path`, `--with-config-file-scan-dir`
260+
# aswell as the prefix to the configure options.
261+
CONFIGURE_OPTS="--libexecdir=$PREFIX_PATH/libexec \
262+
--with-config-file-path=$PREFIX_PATH/etc \
263+
--with-config-file-scan-dir=$PREFIX_PATH/etc/conf.d \
264+
$CONFIGURE_OPTS"
265+
267266
if [ -z "$TMPDIR" ]; then
268267
TMP="/tmp"
269268
else

0 commit comments

Comments
 (0)