]> git.pld-linux.org Git - packages/php.git/commitdiff
add webp bcond to disable webp support in gd (via libvpx library)
authorElan Ruusamäe <glen@delfi.ee>
Wed, 22 Aug 2012 21:20:38 +0000 (00:20 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 22 Aug 2012 21:20:38 +0000 (00:20 +0300)
php.spec

index 207a679d153c6dcbc003a6f51e889538c3a07408..fef27dc91f7582312b6bb21e8cc00e981b32b70e 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -54,8 +54,8 @@
 %bcond_with    system_gd       # with system gd (we prefer internal since it enables few more features)
 %bcond_with    system_libzip   # with system libzip (reported broken currently)
 %bcond_without curl            # without CURL extension module
-%bcond_without filter          # without filter extension module
 %bcond_without enchant         # without Enchant extension module
+%bcond_without filter          # without filter extension module
 %bcond_without imap            # without IMAP extension module
 %bcond_without interbase       # without InterBase extension module
 %bcond_without kerberos5       # without Kerberos5 support
@@ -80,6 +80,7 @@
 %bcond_without sqlite3         # without SQLite3 extension module
 %bcond_without sybase_ct       # without Sybase-CT extension module
 %bcond_without tidy            # without Tidy extension module
+%bcond_without webp            # Without WebP support in GD extension (imagecreatefromwebp)
 %bcond_without wddx            # without WDDX extension module
 %bcond_without xmlrpc          # without XML-RPC extension module
 %bcond_without apache1         # disable building Apache 1.3.x SAPI
@@ -259,7 +260,7 @@ BuildRequires:      libltdl-devel >= 1.4
 BuildRequires: libmcrypt-devel >= 2.4.4
 BuildRequires: libpng-devel >= 1.0.8
 #BuildRequires:        libtiff-devel
-BuildRequires: libvpx-devel
+%{?with_webp:BuildRequires:    libvpx-devel}
 BuildRequires: tokyocabinet-devel
 %if "%{pld_release}" != "ac"
 BuildRequires: libtool >= 2:2.2
@@ -2174,7 +2175,7 @@ for sapi in $sapis; do
        %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
        %{?with_pgsql:--with-pdo-pgsql=shared} \
        %{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \
-       --with-vpx-dir=/usr \
+       %{?with_webp:--with-vpx-dir=/usr} \
        --without-libexpat-dir \
        --enable-posix=shared \
        --enable-shared \
This page took 0.055727 seconds and 4 git commands to generate.