wvstreams: Add 4.2.2 which is more likely to work on ARM platforms.
authorFlorian Boor <florian.boor@kernelconcepts.de>
Wed, 14 Jan 2009 20:49:13 +0000 (21:49 +0100)
committerFlorian Boor <florian.boor@kernelconcepts.de>
Thu, 15 Jan 2009 16:29:17 +0000 (17:29 +0100)
packages/wvstreams/files/wvstreams-debian.patch [new file with mode: 0644]
packages/wvstreams/wvstreams_4.2.2.bb [new file with mode: 0644]

diff --git a/packages/wvstreams/files/wvstreams-debian.patch b/packages/wvstreams/files/wvstreams-debian.patch
new file mode 100644 (file)
index 0000000..5cb4837
--- /dev/null
@@ -0,0 +1,49 @@
+--- wvstreams.old/include/wvvector.h   2005-11-24 19:46:46.000000000 +0000
++++ wvstreams-4.2.2/include/wvvector.h 2007-07-24 06:35:55.000000000 +0000
+@@ -358,7 +358,7 @@
+       /** Returns a pointer to the current element */
+       T *ptr() const
+       {
+-          return static_cast<T *>(cur()->data);
++          return static_cast<T *>(this->cur()->data);
+       }
+       WvIterStuff(T);
+@@ -368,7 +368,7 @@
+        */
+       bool get_autofree() const
+       {
+-          return link->get_autofree();
++          return this->link->get_autofree();
+       }
+       /**
+@@ -376,7 +376,7 @@
+        */
+       void set_autofree(bool autofree)
+       {
+-          link->set_autofree(autofree);
++          this->link->set_autofree(autofree);
+       }
+         /**
+@@ -386,7 +386,7 @@
+          */
+         void remove(bool destroy = true)
+         {
+-          WvVector::vec.remove(i, destroy);
++          WvVector::vec.remove(this->i, destroy);
+         }
+         /**
+@@ -404,8 +404,8 @@
+          */
+       void xremove(bool destroy = true)
+       {
+-          WvVector::vec.remove(i, destroy);
+-          prev();
++          WvVector::vec.remove(this->i, destroy);
++          this->prev();
+       }
+     };
+ };
diff --git a/packages/wvstreams/wvstreams_4.2.2.bb b/packages/wvstreams/wvstreams_4.2.2.bb
new file mode 100644 (file)
index 0000000..bea2f22
--- /dev/null
@@ -0,0 +1,40 @@
+HOMEPAGE = "http://alumnit.ca/wiki/index.php?page=WvStreams"
+LICENSE = "LGPL"
+DESCRIPTION = "WvStreams is a network programming library in C++"
+DEPENDS = "zlib openssl (>= 0.9.8)"
+
+PR = "r0"
+
+SRC_URI = "http://ftp.de.debian.org/debian/pool/main/w/wvstreams/${PN}_${PV}.orig.tar.gz \
+           http://ftp.de.debian.org/debian/pool/main/w/wvstreams/wvstreams_4.2.2-2.2.diff.gz;patch=1 \
+           file://wvstreams-debian.patch;patch=1 \
+           file://build-fixes-and-sanity.patch;patch=1 "
+
+inherit autotools
+
+LDFLAGS_append = " -Wl,-rpath-link,${CROSS_DIR}/${TARGET_SYS}/lib"
+
+EXTRA_AUTORECONF += " -I${S}/gnulib/m4"
+EXTRA_OECONF = " --without-tcl --without-qt --without-pam"
+
+PACKAGES_prepend = "libuniconf libuniconf-dbg "
+PACKAGES_prepend = "uniconfd uniconfd-dbg "
+PACKAGES_prepend = "libwvstreams-base libwvstreams-base-dbg "
+PACKAGES_prepend = "libwvstreams-extras libwvstreams-extras-dbg "
+
+FILES_libuniconf     = "${libdir}/libuniconf.so.*"
+FILES_libuniconf-dbg = "${libdir}/.debug/libuniconf.so.*"
+
+FILES_uniconfd     = "${sbindir}/uniconfd ${sysconfdir}/uniconf.conf ${localstatedir}/uniconf"
+FILES_uniconfd-dbg = "${sbindir}/.debug/uniconfd"
+
+FILES_libwvstreams-base     = "${libdir}/libwvutils.so.*"
+FILES_libwvstreams-base-dbg = "${libdir}/.debug/libwvutils.so.*"
+
+FILES_libwvstreams-extras     = "${libdir}/libwvbase.so.* ${libdir}/libwvstreams.so.*"
+FILES_libwvstreams-extras-dbg = "${libdir}/.debug/libwvbase.so.* ${libdir}/.debug/libwvstreams.so.*"
+
+
+do_stage() {
+    autotools_stage_all
+}