add log4cxx recipes from apache
authorLucian Ion <luciani@luciani-laptop.(none)>
Fri, 5 Jun 2009 10:43:22 +0000 (11:43 +0100)
committerPhil Blundell <philb@gnu.org>
Fri, 5 Jun 2009 12:51:24 +0000 (13:51 +0100)
recipes/log4cxx/log4cxx/log4cxx097.patch [new file with mode: 0644]
recipes/log4cxx/log4cxx_0.9.7.bb [new file with mode: 0644]

diff --git a/recipes/log4cxx/log4cxx/log4cxx097.patch b/recipes/log4cxx/log4cxx/log4cxx097.patch
new file mode 100644 (file)
index 0000000..86b6eff
--- /dev/null
@@ -0,0 +1,48 @@
+--- log4cxx-0.9.7/src/socketoutputstream.cpp~  2009-05-21 10:06:47.000000000 +0100
++++ log4cxx-0.9.7/src/socketoutputstream.cpp   2009-05-21 10:06:47.000000000 +0100
+@@ -13,7 +13,8 @@
+  * See the License for the specific language governing permissions and
+  * limitations under the License.
+  */
+- 
++
++#include <string.h> 
+ #include <log4cxx/helpers/socketoutputstream.h>
+ #include <log4cxx/helpers/socket.h>
+ #include <log4cxx/helpers/loglog.h>
+
+--- log4cxx-0.9.7/src/stringtokenizer.cpp~     2009-05-21 10:11:19.000000000 +0100
++++ log4cxx-0.9.7/src/stringtokenizer.cpp      2009-05-21 10:11:20.000000000 +0100
+@@ -13,7 +13,8 @@
+  * See the License for the specific language governing permissions and
+  * limitations under the License.
+  */
+- 
++
++#include <string.h> 
+ #include <log4cxx/helpers/stringtokenizer.h>
+ using namespace log4cxx;
+
+--- log4cxx-0.9.7/src/timezone.cpp~    2009-05-21 10:14:27.000000000 +0100
++++ log4cxx-0.9.7/src/timezone.cpp     2009-05-21 10:14:27.000000000 +0100
+@@ -13,7 +13,8 @@
+  * See the License for the specific language governing permissions and
+  * limitations under the License.
+  */
+- 
++
++#include <string.h>
+ #include <log4cxx/helpers/timezone.h>
+ #include <locale>
+--- log4cxx-0.9.7/src/xmlsocketappender.cpp~   2009-05-21 10:16:24.000000000 +0100
++++ log4cxx-0.9.7/src/xmlsocketappender.cpp    2009-05-21 10:16:25.000000000 +0100
+@@ -14,6 +14,7 @@
+  * limitations under the License.
+  */
++#include <string.h>
+ #include <log4cxx/net/xmlsocketappender.h>
+ #include <log4cxx/helpers/loglog.h>
+ #include <log4cxx/helpers/socketoutputstream.h>
diff --git a/recipes/log4cxx/log4cxx_0.9.7.bb b/recipes/log4cxx/log4cxx_0.9.7.bb
new file mode 100644 (file)
index 0000000..4817163
--- /dev/null
@@ -0,0 +1,19 @@
+DESCRIPTION = "Apache logging framework for C++ library"
+SECTION = "libs"
+DEPENDS = "apr apr-util expat gdbm"
+LICENSE = "Apache License, Version 2.0"
+HOMEPAGE = "http://logging.apache.org/log4cxx/"
+# PV = "0.10.0"
+PR = "r1"
+
+SRC_URI = "http://archive.apache.org/dist/logging/log4cxx/log4cxx-0.9.7.tar.gz \
+          file://log4cxx097.patch;patch=1"
+
+#build this:
+S = "${WORKDIR}/${PN}-${PV}"
+
+inherit autotools pkgconfig
+
+do_stage() {
+       autotools_stage_all
+}