summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2008-09-20 00:07:00 +0000
committerKhem Raj <raj.khem@gmail.com>2008-09-20 00:07:00 +0000
commit549c8c122f345a444306115b5f1aaef994e9077e (patch)
tree4a2f838048ec6334ebae3642aa2626bb95f68b57
parent95b72ace096bafa94249fe009ebf600fa5171b75 (diff)
parenta23bdd1fc89e4a50d87280a225b410c8eec1d8e2 (diff)
merge of '1d03ea3d490cbb5935a7a927a9bfd95a70c8599f'
and '2551aa2928c2ff58083738f1e4e839273afde6d4'
-rw-r--r--packages/libxml/libxml2-native_2.6.32.bb24
-rw-r--r--packages/libxml/libxml2_2.6.32.bb4
2 files changed, 28 insertions, 0 deletions
diff --git a/packages/libxml/libxml2-native_2.6.32.bb b/packages/libxml/libxml2-native_2.6.32.bb
new file mode 100644
index 0000000000..914a301a31
--- /dev/null
+++ b/packages/libxml/libxml2-native_2.6.32.bb
@@ -0,0 +1,24 @@
+DESCRIPTION = "GNOME XML library"
+DEPENDS = "python-native"
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libxml2-${PV}"
+PR = "r0"
+
+SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz"
+S = "${WORKDIR}/libxml2-${PV}"
+
+inherit autotools native pkgconfig
+
+def libxml2_native_python_dir(d):
+ import os, bb
+ staging_incdir = bb.data.getVar( "STAGING_INCDIR", d, 1 )
+ if os.path.exists( "%s/python2.5" % staging_incdir ): return "python2.5"
+ if os.path.exists( "%s/python2.4" % staging_incdir ): return "python2.4"
+ if os.path.exists( "%s/python2.3" % staging_incdir ): return "python2.3"
+ raise "No Python in STAGING_INCDIR. Forgot to build python-native ?"
+
+EXTRA_OECONF = "--with-python=${STAGING_INCDIR}/${@libxml2_native_python_dir(d)} \
+ --without-debug --without-legacy --without-catalog --without-docbook --with-c14n"
+
+do_stage () {
+ oe_runmake install
+}
diff --git a/packages/libxml/libxml2_2.6.32.bb b/packages/libxml/libxml2_2.6.32.bb
new file mode 100644
index 0000000000..555a436a63
--- /dev/null
+++ b/packages/libxml/libxml2_2.6.32.bb
@@ -0,0 +1,4 @@
+require libxml2.inc
+
+PR = "r0"
+