2010-09-27 14:44:05 +00:00
SUMMARY = " XML C Parser Library and Toolkit "
DESCRIPTION = " The XML Parser Library allows for manipulation of XML files. Libxml2 exports Push and Pull type parser interfaces for both XML and HTML. It can do DTD validation at parse time, on a parsed document instance or with an arbitrary DTD. Libxml2 includes complete XPath, XPointer and Xinclude implementations. It also has a SAX like interface, which is designed to be compatible with Expat. "
2010-06-18 03:07:40 +00:00
HOMEPAGE = " http://www.xmlsoft.org/ "
BUGTRACKER = " http://bugzilla.gnome.org/buglist.cgi?product=libxml2 "
2007-12-18 08:09:09 +00:00
SECTION = " libs "
LICENSE = " MIT "
2010-06-18 03:07:40 +00:00
LIC_FILES_CHKSUM = " file://COPYING;md5=bb90c48926316d9af6e2d70ca7013ade \
file :// hash . c ; beginline = 6 ; endline = 15 ; md5 = ce702952bfddd7aee22639a2d6b54136 \
file :// list . c ; beginline = 4 ; endline = 13 ; md5 = cdbfa3dee51c099edb04e39f762ee907 \
file :// trio . c ; beginline = 5 ; endline = 14 ; md5 = 6 c025753c86d958722ec76e94cae932e "
DEPENDS_virtclass - native = " python-native "
DEPENDS =+ " zlib "
2007-12-18 08:09:09 +00:00
SRC_URI = " ftp://xmlsoft.org/libxml2/libxml2- ${ PV } .tar.gz \
2010-06-18 03:07:40 +00:00
file :// libxml - 64 bit . patch "
2007-12-18 08:09:09 +00:00
2009-11-05 17:37:52 +00:00
2007-12-18 08:09:09 +00:00
inherit autotools pkgconfig binconfig
EXTRA_OECONF = " --without-python --without-debug --without-legacy --without-catalog --without-docbook --with-c14n "
2010-11-26 11:48:11 +00:00
EXTRA_OECONF_virtclass - native = " --with-python= ${ STAGING_BINDIR } /python --without-legacy --with-catalog --without-docbook --with-c14n "
2011-06-16 21:07:14 +00:00
EXTRA_OECONF_virtclass - nativesdk = " --with-python= ${ STAGING_BINDIR } /python --without-legacy --with-catalog --without-docbook --with-c14n "
2011-04-20 22:53:12 +00:00
EXTRA_OECONF_linuxstdbase = " --without-python --with-debug --with-legacy --with-catalog --with-docbook --with-c14n "
2010-08-12 05:59:29 +00:00
# required for pythong binding
export HOST_SYS
export BUILD_SYS
export STAGING_LIBDIR
export STAGING_INCDIR
2009-11-05 17:37:52 +00:00
export LDFLAGS += " -ldl "
python populate_packages_prepend () {
# autonamer would call this libxml2-2, but we don't want that
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
if d . getVar ( 'DEBIAN_NAMES' , 1 ) :
d . setVar ( 'PKG_libxml2' , '${MLPREFIX}libxml2' )
2009-11-05 17:37:52 +00:00
}
2011-09-21 18:40:00 +00:00
PACKAGES += " ${ PN } -utils "
2009-11-05 17:37:52 +00:00
2010-06-18 03:07:40 +00:00
FILES_ $ { PN } - dev += " ${ bindir } /*-config ${ libdir } /xml2Conf.sh "
2009-11-05 17:37:52 +00:00
FILES_ $ { PN } - utils += " ${ bindir } /* "
2011-06-16 21:07:14 +00:00
BBCLASSEXTEND = " native nativesdk "