summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/apr/apr-util_1.6.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/apr/apr-util_1.6.3.bb')
-rw-r--r--meta/recipes-support/apr/apr-util_1.6.3.bb95
1 files changed, 95 insertions, 0 deletions
diff --git a/meta/recipes-support/apr/apr-util_1.6.3.bb b/meta/recipes-support/apr/apr-util_1.6.3.bb
new file mode 100644
index 0000000000..b5e3d2fc8a
--- /dev/null
+++ b/meta/recipes-support/apr/apr-util_1.6.3.bb
@@ -0,0 +1,95 @@
1SUMMARY = "Apache Portable Runtime (APR) companion library"
2HOMEPAGE = "http://apr.apache.org/"
3SECTION = "libs"
4DEPENDS = "apr expat"
5
6BBCLASSEXTEND = "native nativesdk"
7
8LICENSE = "Apache-2.0"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=158aa0b1efe0c12f23d4b007ddb9a5db \
10 file://include/apu_version.h;endline=15;md5=823b3d1a7225df8f7b68a69c3c2b4c71"
11
12SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.gz \
13 file://configfix.patch \
14 file://0001-test_transformation-Check-if-transform-is-supported-.patch \
15 file://run-ptest \
16 "
17
18SRC_URI[sha256sum] = "2b74d8932703826862ca305b094eef2983c27b39d5c9414442e9976a9acf1983"
19
20EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \
21 --without-odbc \
22 --without-pgsql \
23 --without-sqlite2 \
24 --with-expat=${STAGING_DIR_HOST}${prefix}"
25
26inherit autotools lib_package binconfig multilib_script
27
28MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/apu-1-config"
29
30OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
31
32do_configure:append() {
33 if [ "${CLASSOVERRIDE}" = "class-target" ]; then
34 cp ${STAGING_DATADIR}/apr/apr_rules.mk ${B}/build/rules.mk
35 sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${B}/build/rules.mk
36 fi
37}
38do_configure:prepend:class-native() {
39 mkdir ${B}/build
40 cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${B}/build/rules.mk
41}
42do_configure:append:class-native() {
43 sed -i "s#LIBTOOL=\$(SHELL) \$(apr_builddir)#LIBTOOL=\$(SHELL) ${STAGING_BINDIR_NATIVE}#" ${B}/build/rules.mk
44 # sometimes there isn't SHELL
45 sed -i "s#LIBTOOL=\$(apr_builddir)#LIBTOOL=${STAGING_BINDIR_NATIVE}#" ${B}/build/rules.mk
46}
47
48do_configure:prepend:class-nativesdk() {
49 cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk
50 sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${S}/build/rules.mk
51}
52
53do_configure:append:class-nativesdk() {
54 sed -i "s#\(apr_builddir\)=.*#\1=${STAGING_DATADIR}/build-1#" ${B}/build/rules.mk
55 sed -i "s#\(apr_builders\)=.*#\1=${STAGING_DATADIR}/build-1#" ${B}/build/rules.mk
56 sed -i "s#\(top_builddir\)=.*#\1=${STAGING_DATADIR}/build-1#" ${B}/build/rules.mk
57 sed -i "s#\(LIBTOOL=\$(apr_builddir)\).*#\1/libtool#" ${B}/build/rules.mk
58}
59
60do_install:append:class-target() {
61 sed -i -e 's,${STAGING_DIR_HOST},,g' \
62 -e 's,APU_SOURCE_DIR=.*,APR_SOURCE_DIR=,g' \
63 -e 's,APU_BUILD_DIR=.*,APR_BUILD_DIR=,g' ${D}${bindir}/apu-1-config
64}
65
66PACKAGECONFIG ??= "crypto gdbm"
67PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
68PACKAGECONFIG[crypto] = "--with-openssl=${STAGING_DIR_HOST}${prefix} --with-crypto,--without-crypto,openssl"
69PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_DIR_HOST}${prefix},--without-sqlite3,sqlite3"
70PACKAGECONFIG[gdbm] = "--with-dbm=gdbm --with-gdbm=${STAGING_DIR_HOST}${prefix},--without-gdbm,gdbm"
71
72#files ${libdir}/apr-util-1/*.so are not symlinks but loadable modules thus they are packaged in ${PN}
73FILES:${PN} += "${libdir}/apr-util-1/apr*${SOLIBS} ${libdir}/apr-util-1/apr*${SOLIBSDEV}"
74FILES:${PN}-dev += "${libdir}/aprutil.exp ${libdir}/apr-util-1/*.la"
75FILES:${PN}-staticdev += "${libdir}/apr-util-1/*.a"
76
77INSANE_SKIP:${PN} += "dev-so"
78
79inherit ptest
80
81RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-gconv-iso8859-1 glibc-gconv-iso8859-2 glibc-gconv-utf-7"
82RDEPENDS:${PN}-ptest += "libgcc"
83
84do_compile_ptest() {
85 cd ${B}/test
86 oe_runmake
87}
88
89do_install_ptest() {
90 t=${D}${PTEST_PATH}/test
91 mkdir $t
92 for i in testall data; do \
93 cp -r ${B}/test/$i $t; \
94 done
95}