summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/apr/apr_1.4.6.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/apr/apr_1.4.6.bb')
-rw-r--r--meta/recipes-support/apr/apr_1.4.6.bb59
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-support/apr/apr_1.4.6.bb b/meta/recipes-support/apr/apr_1.4.6.bb
new file mode 100644
index 0000000000..c0ab4f114f
--- /dev/null
+++ b/meta/recipes-support/apr/apr_1.4.6.bb
@@ -0,0 +1,59 @@
1DESCRIPTION = "Apache Portable Runtime (APR) library"
2HOMEPAGE = "http://apr.apache.org/"
3SECTION = "libs"
4
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=0c35ff3c4c83b89d2f076e315caac28b \
7 file://include/apr_lib.h;endline=17;md5=ee42fa7575dc40580a9e01c1b75fae96"
8
9BBCLASSEXTEND = "native"
10
11PR = "r0"
12
13SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
14 file://configure_fixes.patch \
15 file://cleanup.patch \
16 file://configfix.patch"
17
18SRC_URI[md5sum] = "ffee70a111fd07372982b0550bbb14b7"
19SRC_URI[sha256sum] = "9b635e60feb163e6fc6c375721f71f44d7e26d6b9cd52f6b86b04e65d2481cbc"
20
21inherit autotools lib_package binconfig multilib_header
22
23OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
24
25do_configure_prepend() {
26 cd ${S}
27 ./buildconf
28}
29
30FILES_${PN}-dev += "${libdir}/apr.exp ${datadir}/build-1/*"
31
32#for some reason, build/libtool.m4 handled by buildconf still be overwritten
33#when autoconf, so handle it again.
34do_configure_append() {
35 cd ${S}
36 sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' build/libtool.m4
37 sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' build/apr_rules.mk
38}
39
40do_install_append() {
41 oe_multilib_header apr.h
42}
43
44SSTATE_SCAN_FILES += "apr_rules.mk"
45
46SYSROOT_PREPROCESS_FUNCS += "apr_sysroot_preprocess"
47
48apr_sysroot_preprocess () {
49 d=${SYSROOT_DESTDIR}${datadir}/apr
50 install -d $d/
51 cp ${S}/build/apr_rules.mk $d/
52 sed -i s,apr_builddir=.*,apr_builddir=,g $d/apr_rules.mk
53 sed -i s,apr_builders=.*,apr_builders=,g $d/apr_rules.mk
54 sed -i s,LIBTOOL=.*,LIBTOOL=\$\(SHELL\)\ ${HOST_SYS}-libtool,g $d/apr_rules.mk
55 sed -i s,\$\(apr_builders\),${STAGING_DATADIR}/apr/,g $d/apr_rules.mk
56 cp ${S}/build/mkdir.sh $d/
57 cp ${S}/build/make_exports.awk $d/
58 cp ${S}/build/make_var_export.awk $d/
59}