SECTION = "libs"
DESCRIPTION = "Liboop is a low-level event loop management library \
for POSIX-based operating systems."
LICENSE = "LGPL"

SRC_URI = "http://download.ofb.net/liboop/liboop-${PV}.tar.bz2"
S = "${WORKDIR}/liboop-${PV}"

inherit autotools  pkgconfig

headers = "oop.h oop-adns.h oop-glib.h \
	  oop-tcl.h oop-www.h oop-rl.h \
	  oop-read.h"
do_stage () {
	oe_libinstall -a -so liboop ${STAGING_LIBDIR}
	install -m 0644 ${headers} ${STAGING_INCDIR}/
}

SECTION = "libs"
DESCRIPTION = "Liboop is a low-level event loop management library \
for POSIX-based operating systems."
LICENSE = "LGPL"

SRC_URI = "http://download.ofb.net/liboop/liboop-${PV}.tar.bz2"
S = "${WORKDIR}/liboop-${PV}"

inherit autotools  pkgconfig

EXTRA_OECONF = "--without-tcl --without-glib \
                --without-readline --without-adns"

headers = "oop.h oop-adns.h oop-glib.h \
	  oop-tcl.h oop-www.h oop-rl.h \
	  oop-read.h"
do_stage () {
	oe_libinstall -a -so liboop ${STAGING_LIBDIR}
	install -m 0644 ${headers} ${STAGING_INCDIR}/
}

Disable www, glib, adns, readline and tcl as it is not in the DEPENDS
liboop: Disable www, glib, adns, readline and tcl as it is not in the DEPENDS

The configure script searched for tcl in /usr/include/tcl$tclVersion which
triggered the configure qa check. The best thing to do seems to disable these
features and avoid patching the configure.ac.
