summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/xmlstarlet
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/xmlstarlet')
-rw-r--r--meta-oe/recipes-support/xmlstarlet/files/configure.ac.patch28
-rw-r--r--meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.5.0.bb25
2 files changed, 53 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/xmlstarlet/files/configure.ac.patch b/meta-oe/recipes-support/xmlstarlet/files/configure.ac.patch
new file mode 100644
index 000000000..e55f4f3b1
--- /dev/null
+++ b/meta-oe/recipes-support/xmlstarlet/files/configure.ac.patch
@@ -0,0 +1,28 @@
1configure.ac: don't use xml-config if --with-libxml-prefix is specified to configure
2
3Same behavior for xslt-config.
4
5diff --git a/configure.ac b/configure.ac
6index ed04e0c..39d5d4c 100644
7--- a/configure.ac
8+++ b/configure.ac
9@@ -40,7 +40,8 @@ AC_ARG_PROGRAM dnl Transforming Program Names When Installing
10 AC_PROG_SED
11 AC_PROG_AWK
12
13-XSTAR_LIB_CHECK([LIBXML], [xml2-config])
14+AS_IF([test "x$LIBXML_PREFIX" = x],
15+ [XSTAR_LIB_CHECK([LIBXML], [xml2-config])])
16
17 AS_IF([test "x$LIBXML_SRCDIR" != x],
18 [LIBXML_INCDIR="$LIBXML_SRCDIR/include"])
19@@ -56,7 +57,8 @@ AS_IF([test "x$STATIC_LIBS" != xno],
20 [LIBXML_LDFLAGS="-L$LIBXML_LIBDIR"]
21
22
23-XSTAR_LIB_CHECK([LIBXSLT], [xslt-config])
24+AS_IF([test "x$LIBXSLT_PREFIX" = x],
25+ [XSTAR_LIB_CHECK([LIBXSLT], [xslt-config])])
26
27 AS_IF([test "x$LIBXSLT_SRCDIR" != x],
28 [XSLTPROC_PATH="$LIBXSLT_SRCDIR/xsltproc:$PATH"
diff --git a/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.5.0.bb b/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.5.0.bb
new file mode 100644
index 000000000..770ccab1e
--- /dev/null
+++ b/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.5.0.bb
@@ -0,0 +1,25 @@
1SUMMARY = "Command line XML toolkit"
2DESCRIPTION = "XMLStarlet is a command line XML toolkit which can be used to \
3 transform, query, validate, and edit XML documents and files \
4 using simple set of shell commands in similar way it is done \
5 for plain text files using grep/sed/awk/tr/diff/patch."
6HOMEPAGE = "http://xmlstar.sourceforge.net/"
7BUGTRACKER = "http://xmlstar.sourceforge.net/bugs/"
8
9SECTION = "console/utils"
10LICENSE = "MIT"
11LIC_FILES_CHKSUM = "file://COPYING;md5=c04760d09e8b0fe73283d0cc9e8bea53"
12
13DEPENDS = "libxml2 libxslt"
14
15SRC_URI = "${SOURCEFORGE_MIRROR}/xmlstar/${BPN}-${PV}.tar.gz \
16 file://configure.ac.patch"
17SRC_URI[md5sum] = "0c6db295d0cf9ff0d439edb755b7e8f6"
18SRC_URI[sha256sum] = "47b4ed042ea2909257f2a386001af49fceb303f84da7214779ccf99fffc6bbba"
19
20inherit autotools
21
22# doc build: requires (native) xstlproc, fop, pdf2ps
23EXTRA_OECONF="--disable-build-docs \
24 --with-libxml-prefix=${STAGING_LIBDIR}/.. \
25 --with-libxslt-prefix=${STAGING_LIBDIR}/.."