]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
php: removing shared from --enable-mbstring for distros older than 12.0
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Sun, 25 Nov 2007 18:07:06 +0000 (18:07 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Sun, 25 Nov 2007 18:07:06 +0000 (18:07 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1473 370017ae-e619-0410-ac65-c121f96126d4

patches/php/php.SlackBuild

index 8311271578b6e42bc7e8c4c7be4c977088b2fc0c..d91cf9a2c9211acd9edcd71942086e02144459e7 100755 (executable)
@@ -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 \