From 7541841b565be0b1ad2238b851b7ac736e48d762 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 5 Nov 2009 17:37:52 +0000 Subject: libxml2: Convert to BBCLASSEXTEND (and drop unneeded custom staging function Signed-off-by: Richard Purdie --- meta/packages/libxml/libxml2.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'meta/packages/libxml/libxml2.inc') diff --git a/meta/packages/libxml/libxml2.inc b/meta/packages/libxml/libxml2.inc index e8b03cf02..1aa7132ce 100644 --- a/meta/packages/libxml/libxml2.inc +++ b/meta/packages/libxml/libxml2.inc @@ -7,6 +7,24 @@ SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz \ file://libxml-64bit.patch;patch=1 \ file://libxml-nanohttp.patch;patch=1" +DEPENDS_virtclass-native = "python-native" + inherit autotools pkgconfig binconfig EXTRA_OECONF = "--without-python --without-debug --without-legacy --without-catalog --without-docbook --with-c14n" +EXTRA_OECONF_virtclass-native = "--with-python=${STAGING_DIR_NATIVE}/${prefix} --without-debug --without-legacy --with-catalog --without-docbook --with-c14n" + +export LDFLAGS += "-ldl" + +python populate_packages_prepend () { + # autonamer would call this libxml2-2, but we don't want that + if bb.data.getVar('DEBIAN_NAMES', d, 1): + bb.data.setVar('PKG_libxml2', 'libxml2', d) +} + +PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-utils ${PN} ${PN}-doc ${PN}-locale" + +FILES_${PN}-dev += "${bindir}/*-config" +FILES_${PN}-utils += "${bindir}/*" + +BBCLASSEXTEND = "native" -- cgit v1.2.3