Patchwork [1/9] apr: add 1.4.2

login
register
mail settings
Submitter Eric BENARD
Date March 13, 2011, 6:58 p.m.
Message ID <1300042739-17381-1-git-send-email-eric@eukrea.com>
Download mbox | patch
Permalink /patch/1381/
State Accepted
Headers show

Comments

Eric BENARD - March 13, 2011, 6:58 p.m.
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes/apr/apr_1.4.2.bb |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)
 create mode 100644 recipes/apr/apr_1.4.2.bb
Khem Raj - March 13, 2011, 8:23 p.m.
On 3/13/2011 11:58 AM, Eric Bénard wrote:
> Signed-off-by: Eric Bénard<eric@eukrea.com>

Acked-by: Khem Raj <raj.khem@gmail.com>

> ---
>   recipes/apr/apr_1.4.2.bb |   33 +++++++++++++++++++++++++++++++++
>   1 files changed, 33 insertions(+), 0 deletions(-)
>   create mode 100644 recipes/apr/apr_1.4.2.bb
>
> diff --git a/recipes/apr/apr_1.4.2.bb b/recipes/apr/apr_1.4.2.bb
> new file mode 100644
> index 0000000..0595731
> --- /dev/null
> +++ b/recipes/apr/apr_1.4.2.bb
> @@ -0,0 +1,33 @@
> +DESCRIPTION = "Apache Portable Runtime (APR) library"
> +SECTION = "libs"
> +LICENSE = "Apache License, Version 2.0"
> +
> +SRC_URI = "${APACHE_MIRROR}/apr/${P}.tar.bz2 \
> +           file://configure_fixes.patch \
> +           file://configfix.patch"
> +
> +inherit autotools lib_package binconfig
> +
> +OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
> +
> +do_configure_prepend() {
> +	echo "top_builddir=@apr_builddir@">>  ${S}/Makefile.in
> +}
> +
> +FILES_${PN}-dev += "${datadir}/build-1/* ${libdir}/apr.exp"
> +
> +do_install_append() {
> +	install -d ${D}${datadir}/apr
> +	cp ${S}/build/apr_rules.mk ${D}${datadir}/apr/
> +	sed -i s,apr_builddir=.*,apr_builddir=,g ${D}${datadir}/apr/apr_rules.mk
> +	sed -i s,apr_builders=.*,apr_builders=,g ${D}${datadir}/apr/apr_rules.mk
> +	sed -i s,LIBTOOL=.*,LIBTOOL=\$\(SHELL\)\ ${HOST_SYS}-libtool,g ${D}${datadir}/apr/apr_rules.mk
> +	sed -i s,\$\(apr_builders\),${D}${datadir}/apr/,g ${D}${datadir}/apr/apr_rules.mk
> +	cp ${S}/build/mkdir.sh ${D}${datadir}/apr/
> +	cp ${S}/build/make_exports.awk ${D}${datadir}/apr/
> +	cp ${S}/build/make_var_export.awk ${D}${datadir}/apr/
> +	cp ${S}/${HOST_SYS}-libtool ${D}${datadir}/build-1/libtool
> +}
> +
> +SRC_URI[md5sum] = "4b00e8f70c067893d075577962656b35"
> +SRC_URI[sha256sum] = "2017ca700694d09d2b0b21dd7c4d195e43a48735aac88526160c6195ee8f5391"

Patch

diff --git a/recipes/apr/apr_1.4.2.bb b/recipes/apr/apr_1.4.2.bb
new file mode 100644
index 0000000..0595731
--- /dev/null
+++ b/recipes/apr/apr_1.4.2.bb
@@ -0,0 +1,33 @@ 
+DESCRIPTION = "Apache Portable Runtime (APR) library"
+SECTION = "libs"
+LICENSE = "Apache License, Version 2.0"
+
+SRC_URI = "${APACHE_MIRROR}/apr/${P}.tar.bz2 \
+           file://configure_fixes.patch \
+           file://configfix.patch"
+
+inherit autotools lib_package binconfig
+
+OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
+
+do_configure_prepend() {
+	echo "top_builddir=@apr_builddir@" >> ${S}/Makefile.in
+}
+
+FILES_${PN}-dev += "${datadir}/build-1/* ${libdir}/apr.exp"
+
+do_install_append() {
+	install -d ${D}${datadir}/apr
+	cp ${S}/build/apr_rules.mk ${D}${datadir}/apr/
+	sed -i s,apr_builddir=.*,apr_builddir=,g ${D}${datadir}/apr/apr_rules.mk
+	sed -i s,apr_builders=.*,apr_builders=,g ${D}${datadir}/apr/apr_rules.mk
+	sed -i s,LIBTOOL=.*,LIBTOOL=\$\(SHELL\)\ ${HOST_SYS}-libtool,g ${D}${datadir}/apr/apr_rules.mk
+	sed -i s,\$\(apr_builders\),${D}${datadir}/apr/,g ${D}${datadir}/apr/apr_rules.mk
+	cp ${S}/build/mkdir.sh ${D}${datadir}/apr/
+	cp ${S}/build/make_exports.awk ${D}${datadir}/apr/
+	cp ${S}/build/make_var_export.awk ${D}${datadir}/apr/
+	cp ${S}/${HOST_SYS}-libtool ${D}${datadir}/build-1/libtool
+}
+
+SRC_URI[md5sum] = "4b00e8f70c067893d075577962656b35"
+SRC_URI[sha256sum] = "2017ca700694d09d2b0b21dd7c4d195e43a48735aac88526160c6195ee8f5391"