ソースを参照

make C++ namespace optional

Michael van Elst 23 年 前
コミット
92c2b596bb
1 ファイル変更7 行追加1 行削除
  1. 7 1
      xerces-c/xerces-c.spec

+ 7 - 1
xerces-c/xerces-c.spec

@@ -37,11 +37,12 @@ Distribution: OpenPKG [EVAL]
 Group:        Web
 License:      Apache Software License 1.1
 Version:      %{V_opkg}
-Release:      20030211
+Release:      20030218
 
 #   package options
 %option       with_pth           no
 %option       with_threads       no
+%option       with_cpp_namespace no
 
 #   package option dependencies
 %if "%{with_pth}" == "yes"
@@ -84,6 +85,11 @@ AutoReqProv:  no
           -e 's;@l_ar@;%{l_libtool} --mode=link c++ -static -o;' \
           obj/Makefile.in
       cd $XERCESCROOT/src/xercesc
+%if "%{with_cpp_namespace}" == "no"
+      %{l_shtool} subst \
+          -e 's;#define\( XERCES_HAS_CPP_NAMESPACE\).*;#undef\1;' \
+          util/Compilers/GCCDefs.hpp
+%endif
       %{l_prefix}/bin/autoconf
 %if "%{with_threads}" == "yes"
       os="freebsd"