Hi there,

Attached are two patches, one for apache.spec and one for php.spec, from the 
OpenPKG-current packages apache-1.3.29-20040121.src.rpm and 
php-4.3.4-20040121.src.rpm, respectively.

These are simple patches that enable support for PHPs iconv extension for each 
package - they add a new "with_XXX" variable, and the relevant PHP 
./configure flag if the variable is set.

Hope this can be of some help to the project.

Regards,

-- 
Stuart Bingė
Code Fusion cc. <http://www.codefusion.co.za/>
Tel: +27 11 391 1412
Mobile: +27 83 298 9727
Email: [EMAIL PROTECTED]
--- php-old.spec	2004-01-23 09:16:56.000000000 +0200
+++ php.spec	2004-01-23 09:27:20.000000000 +0200
@@ -68,6 +68,7 @@
 %option       with_versioning    no
 %option       with_pear          no
 %option       with_snmp          no
+%option       with_iconv         no
 
 #   fixing implicit extension dependencies and correlations
 %if "%{with_pear}" == "yes"
@@ -364,6 +365,9 @@
 %if "%{with_snmp}" == "yes"
         --with-snmp=%{l_prefix} \
 %endif
+%if "%{with_iconv}" == "yes"
+        --with-iconv=%{l_prefix} \
+%endif
         --enable-cli \
         --enable-cgi \
         --enable-force-cgi-redirect \
--- apache-old.spec	2004-01-23 10:18:35.000000000 +0200
+++ apache.spec	2004-01-23 10:19:26.000000000 +0200
@@ -131,6 +131,7 @@
 %option       with_mod_php_mbstring     no
 %option       with_mod_php_pear         no
 %option       with_mod_php_exif         no
+%option       with_mod_php_iconv        no
 
 #   package options (optional PHP3 specific settings; requires "with_mod_php3")
 %option       with_mod_php3_ftp         no
@@ -691,6 +692,9 @@
 %if "%{with_mod_php_exif}" == "yes"
           --with-exif \
 %endif
+%if "%{with_mod_php_iconv}" == "yes"
+          --with-iconv=%{l_prefix} \
+%endif
 %if "%{with_mod_php_pear}" == "yes"
           --enable-cli \
           --with-pear \

Reply via email to