diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2007-11-25 18:07:06 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2007-11-25 18:07:06 +0000 |
commit | 65b44ec10b807791423e1ea4b723e0b1d27634b2 (patch) | |
tree | d593863473da93d98fa198a6e685a3ea2b22e8e7 | |
parent | 0c10aab3b41be8e7bd122f76bb0e387c71b8a21f (diff) | |
download | slackbuilds-65b44ec10b807791423e1ea4b723e0b1d27634b2.tar.gz slackbuilds-65b44ec10b807791423e1ea4b723e0b1d27634b2.tar.bz2 |
php: removing shared from --enable-mbstring for distros older than 12.0
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1473 370017ae-e619-0410-ac65-c121f96126d4
-rwxr-xr-x | patches/php/php.SlackBuild | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/patches/php/php.SlackBuild b/patches/php/php.SlackBuild index 83112715..d91cf9a2 100755 --- a/patches/php/php.SlackBuild +++ b/patches/php/php.SlackBuild @@ -30,7 +30,7 @@ function default_version { # get version from /etc/slackware-version - if [ -f "$1/etc/slackware-version" ]; then + if [ -f "$1/etc/slackware-version" ]; then # TODO: this changes :/ cat $1/etc/slackware-version | awk '{ print $2 }' | sed -e 's/.0$//' | tr -d . else echo "none" @@ -280,16 +280,19 @@ php_configure() { if (( `default_version` >= 120 )); then $CONFIG_FILES="--with-config-file-scan-dir=/etc/php --with-config-file-path=/etc/httpd" $SNMP="--with-snmp=shared,/usr" + $MBSTRING="--enable-mbstring=shared" else $CONFIG_FILES="--with-config-file-path=/etc/apache" + $MBSTRING="--enable-mbstring" fi EXTENSION_DIR=/usr/$LIB/php/extensions \ CFLAGS="$SLKCFLAGS" \ - ./configure --prefix=/usr \ + ./configure \ $* \ - --with-libdir=$LIB \ + --prefix=/usr \ -libdir=$LIBDIR \ + --with-libdir=$LIB \ --prefix=/usr \ --sysconfdir=/etc \ --disable-safe-mode \ @@ -341,7 +344,7 @@ php_configure() { --with-imap-ssl=/usr \ --with-imap=$IMAPLIBDIR \ --with-ldap=shared \ - --enable-mbstring=shared \ + $MBSTRING \ --with-hash \ --with-mhash=shared,/usr \ --with-mysql=shared,/usr \ @@ -369,7 +372,7 @@ php_configure() { --enable-static=no \ --with-gnu-ld \ --with-pic \ - --build=$ARCH-slackware-linux + --build=$ARCH-slackware-linux # TODO else EXTENSION_DIR=/usr/$LIB/php/extensions \ |