|
|
@@ -66,6 +66,7 @@
|
|
|
%{!?with_mod_php_java: %define with_mod_php_java no}
|
|
|
%{!?with_mod_php_oci8: %define with_mod_php_oci8 no}
|
|
|
%{!?with_mod_php_freetype: %define with_mod_php_freetype no}
|
|
|
+%{!?with_mod_php_gettext: %define with_mod_php_gettext no}
|
|
|
|
|
|
# fixing implicit inter-module dependencies and correlations
|
|
|
%if "%{with_mod_php}" == "yes"
|
|
|
@@ -108,7 +109,7 @@ Distribution: OpenPKG [REL]
|
|
|
Group: Web
|
|
|
License: ASF
|
|
|
Version: %{V_apache}
|
|
|
-Release: 20020417
|
|
|
+Release: 20020418
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://httpd.apache.org/dist/httpd/apache_%{V_apache}.tar.gz
|
|
|
@@ -181,6 +182,9 @@ BuildPreReq: jdk-sun
|
|
|
%if "%{with_mod_php_freetype}" == "yes"
|
|
|
BuildPreReq: freetype
|
|
|
%endif
|
|
|
+%if "%{with_mod_php_gettext}" == "yes"
|
|
|
+BuildPreReq: gettext, libiconv
|
|
|
+%endif
|
|
|
%endif
|
|
|
%if "%{with_mod_auth_pam}" == "yes"
|
|
|
BuildPreReq: PAM
|
|
|
@@ -341,8 +345,15 @@ AutoReqProv: no
|
|
|
%endif
|
|
|
CPPFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \
|
|
|
LDFLAGS="%{l_cflags -O} -L%{l_prefix}/lib" \
|
|
|
+%if "%{with_mod_php_gd}" == "yes" && "%{with_mod_php_gettext}" == "yes"
|
|
|
+ LIBS="-lpng -lz -liconv" \
|
|
|
+%else
|
|
|
%if "%{with_mod_php_gd}" == "yes"
|
|
|
LIBS="-lpng -lz" \
|
|
|
+%endif
|
|
|
+%if "%{with_mod_php_gettext}" == "yes"
|
|
|
+ LIBS="-liconv" \
|
|
|
+%endif
|
|
|
%endif
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
@@ -391,6 +402,9 @@ AutoReqProv: no
|
|
|
%endif
|
|
|
%if "%{with_mod_php_oci8}" == "yes"
|
|
|
--with-oci8 \
|
|
|
+%endif
|
|
|
+%if "%{with_mod_php_gettext}" == "yes"
|
|
|
+ --with-gettext=%{l_prefix} \
|
|
|
%endif
|
|
|
--disable-shared \
|
|
|
--enable-track-vars
|