2009-01-07 17:22:15 +00:00
|
|
|
DESCRIPTION = "Apache Portable Runtime (APR) library"
|
2010-12-17 02:00:20 +00:00
|
|
|
HOMEPAGE = "http://apr.apache.org/"
|
2009-01-07 17:22:15 +00:00
|
|
|
SECTION = "libs"
|
2010-12-17 02:00:20 +00:00
|
|
|
|
2011-05-25 21:05:02 +00:00
|
|
|
LICENSE = "Apache-2.0"
|
2010-12-17 02:00:20 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=0c35ff3c4c83b89d2f076e315caac28b \
|
|
|
|
file://include/apr_lib.h;endline=17;md5=ee42fa7575dc40580a9e01c1b75fae96"
|
|
|
|
|
2011-07-26 17:58:58 +00:00
|
|
|
PR = "r1"
|
2009-01-07 17:22:15 +00:00
|
|
|
|
2011-07-28 13:28:20 +00:00
|
|
|
SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
|
2011-07-28 06:33:35 +00:00
|
|
|
file://configure_fixes.patch \
|
|
|
|
file://cleanup.patch \
|
|
|
|
file://configfix.patch"
|
2009-01-07 17:22:15 +00:00
|
|
|
|
2011-07-28 06:33:35 +00:00
|
|
|
SRC_URI[md5sum] = "8b53f5a5669d0597f2da889a2f576eb6"
|
|
|
|
SRC_URI[sha256sum] = "38c61cacb39be649411cdab212979c71ce29495549c249c2e9a1b0d12480c93e"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2011-07-26 17:58:58 +00:00
|
|
|
inherit autotools lib_package binconfig multilib_header
|
2009-01-07 17:22:15 +00:00
|
|
|
|
|
|
|
OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
|
|
|
|
|
|
|
|
do_configure_prepend() {
|
|
|
|
cd ${S}
|
|
|
|
./buildconf
|
|
|
|
}
|
|
|
|
|
2011-07-28 06:33:35 +00:00
|
|
|
FILES_${PN}-dev += "${libdir}/apr.exp ${datadir}/build-1/*"
|
|
|
|
|
2010-12-17 02:00:20 +00:00
|
|
|
#for some reason, build/libtool.m4 handled by buildconf still be overwritten
|
|
|
|
#when autoconf, so handle it again.
|
|
|
|
do_configure_append() {
|
|
|
|
cd ${S}
|
|
|
|
sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' build/libtool.m4
|
|
|
|
sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' build/apr_rules.mk
|
|
|
|
}
|
|
|
|
|
2011-07-26 17:58:58 +00:00
|
|
|
do_install_append() {
|
|
|
|
oe_multilib_header apr.h
|
|
|
|
}
|
|
|
|
|
2009-11-17 13:56:55 +00:00
|
|
|
SYSROOT_PREPROCESS_FUNCS += "apr_sysroot_preprocess"
|
|
|
|
|
|
|
|
apr_sysroot_preprocess () {
|
2011-01-18 08:17:58 +00:00
|
|
|
d=${SYSROOT_DESTDIR}${datadir}/apr
|
2009-11-17 13:56:55 +00:00
|
|
|
install -d $d/
|
|
|
|
cp ${S}/build/apr_rules.mk $d/
|
|
|
|
sed -i s,apr_builddir=.*,apr_builddir=,g $d/apr_rules.mk
|
|
|
|
sed -i s,apr_builders=.*,apr_builders=,g $d/apr_rules.mk
|
2011-09-28 12:09:52 +00:00
|
|
|
sed -i s,LIBTOOL=.*,LIBTOOL=\$\(SHELL\)\ ${HOST_SYS}-libtool,g $d/apr_rules.mk
|
2009-11-17 13:56:55 +00:00
|
|
|
sed -i s,\$\(apr_builders\),${STAGING_DATADIR}/apr/,g $d/apr_rules.mk
|
|
|
|
cp ${S}/build/mkdir.sh $d/
|
|
|
|
cp ${S}/build/make_exports.awk $d/
|
|
|
|
cp ${S}/build/make_var_export.awk $d/
|
2009-01-07 17:22:15 +00:00
|
|
|
}
|