2009-01-07 17:22:15 +00:00
|
|
|
DESCRIPTION = "Apache Portable Runtime (APR) companion library"
|
2010-12-29 07:11:46 +00:00
|
|
|
HOMEPAGE = "http://apr.apache.org/"
|
2009-01-07 17:22:15 +00:00
|
|
|
SECTION = "libs"
|
|
|
|
DEPENDS = "apr expat gdbm"
|
2010-12-29 07:11:46 +00:00
|
|
|
|
2011-10-21 07:57:41 +00:00
|
|
|
BBCLASSEXTEND = "native"
|
|
|
|
|
2011-05-25 21:05:02 +00:00
|
|
|
LICENSE = "Apache-2.0"
|
2010-12-29 07:11:46 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=519e0a18e03f7c023070568c14b077bb \
|
|
|
|
file://include/apu_version.h;endline=17;md5=806685a84e71f10c80144c48eb35df42"
|
|
|
|
|
2011-07-28 13:28:20 +00:00
|
|
|
SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.gz \
|
2011-07-28 06:42:47 +00:00
|
|
|
file://configfix.patch \
|
|
|
|
file://configure_fixes.patch"
|
2009-01-07 17:22:15 +00:00
|
|
|
|
2013-07-02 14:51:53 +00:00
|
|
|
SRC_URI[md5sum] = "eb682cfb8642babba427a4fb391b15e8"
|
|
|
|
SRC_URI[sha256sum] = "a1ec5025373815795d2fa5bfac40c0984675feffc88e049be9a162c408c2f613"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2009-01-07 17:22:15 +00:00
|
|
|
EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \
|
2010-12-23 15:03:11 +00:00
|
|
|
--without-odbc \
|
2011-08-05 01:52:15 +00:00
|
|
|
--without-pgsql \
|
2009-01-07 17:22:15 +00:00
|
|
|
--with-dbm=gdbm \
|
2009-09-16 22:09:44 +00:00
|
|
|
--with-gdbm=${STAGING_DIR_HOST}${prefix} \
|
2009-01-07 17:22:15 +00:00
|
|
|
--without-sqlite2 \
|
|
|
|
--without-sqlite3 \
|
2009-09-16 22:09:44 +00:00
|
|
|
--with-expat=${STAGING_DIR_HOST}${prefix}"
|
2009-01-07 17:22:15 +00:00
|
|
|
|
|
|
|
|
2010-04-26 16:41:05 +00:00
|
|
|
inherit autotools lib_package binconfig
|
2009-01-07 17:22:15 +00:00
|
|
|
|
|
|
|
OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
|
|
|
|
|
2012-08-17 03:11:43 +00:00
|
|
|
do_configure_append() {
|
2012-09-30 00:19:13 +00:00
|
|
|
if [ "${CLASSOVERRIDE}" = "class-target" ]; then
|
2012-08-17 03:11:43 +00:00
|
|
|
cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk
|
|
|
|
fi
|
2009-01-07 17:22:15 +00:00
|
|
|
}
|
recipes-support: replace virtclass-native(sdk) with class-native(sdk)
The overrides virtclass-native and virtclass-nativesdk are deprecated,
which should be replaced by class-native and class-nativesdk.
NOTE:
There were 2 errors in libcap.inc, the BUILD_LDFLAGS_virtclass_native
should be BUILD_LDFLAGS_virtclass-native (the "_" should be "-"),
otherwise it doesn't work, and the value was: "-Wl,rpath=...", this is
incorrect, it shoudl be: "-Wl,-rpath=..." (lacked a - ), but we don't
need this line, since it is already in the default BUILD_LDFLAGS. Remove
it and we don't need to bump the PR since we just removed a unused line.
[YOCTO #3297]
(From OE-Core rev: cafb550fe9034754933f1708446dde155dcc3d51)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-27 08:48:17 +00:00
|
|
|
do_configure_prepend_class-native() {
|
2011-10-21 07:57:41 +00:00
|
|
|
cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${S}/build/rules.mk
|
|
|
|
}
|
recipes-support: replace virtclass-native(sdk) with class-native(sdk)
The overrides virtclass-native and virtclass-nativesdk are deprecated,
which should be replaced by class-native and class-nativesdk.
NOTE:
There were 2 errors in libcap.inc, the BUILD_LDFLAGS_virtclass_native
should be BUILD_LDFLAGS_virtclass-native (the "_" should be "-"),
otherwise it doesn't work, and the value was: "-Wl,rpath=...", this is
incorrect, it shoudl be: "-Wl,-rpath=..." (lacked a - ), but we don't
need this line, since it is already in the default BUILD_LDFLAGS. Remove
it and we don't need to bump the PR since we just removed a unused line.
[YOCTO #3297]
(From OE-Core rev: cafb550fe9034754933f1708446dde155dcc3d51)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-27 08:48:17 +00:00
|
|
|
do_configure_append_class-native() {
|
2011-10-21 07:57:41 +00:00
|
|
|
sed -i "s#LIBTOOL=\$(SHELL) \$(apr_builddir)#LIBTOOL=\$(SHELL) ${STAGING_BINDIR_NATIVE}#" ${S}/build/rules.mk
|
2011-11-15 20:58:35 +00:00
|
|
|
# sometimes there isn't SHELL
|
|
|
|
sed -i "s#LIBTOOL=\$(apr_builddir)#LIBTOOL=${STAGING_BINDIR_NATIVE}#" ${S}/build/rules.mk
|
2011-10-21 07:57:41 +00:00
|
|
|
}
|
2009-01-07 17:22:15 +00:00
|
|
|
|
2011-07-28 06:42:47 +00:00
|
|
|
FILES_${PN} += "${libdir}/apr-util-1/apr_dbm_gdbm-1.so"
|
2012-01-20 07:11:37 +00:00
|
|
|
FILES_${PN}-dev += "${libdir}/aprutil.exp ${libdir}/apr-util-1/apr_dbm_gdbm.so* ${libdir}/apr-util-1/apr_dbm_gdbm.la"
|
2011-07-28 06:42:47 +00:00
|
|
|
FILES_${PN}-dbg += "${libdir}/apr-util-1/.debug/*"
|
2012-01-20 07:11:37 +00:00
|
|
|
FILES_${PN}-staticdev += "${libdir}/apr-util-1/apr_dbm_gdbm.a"
|