소스 검색

added php gettext support

Christoph Schug 23 년 전
부모
커밋
22ff47bfa5
1개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  1. 15 1
      apache/apache.spec

+ 15 - 1
apache/apache.spec

@@ -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