diff options
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.bb | 95 |
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 @@ | |||
1 | SUMMARY = "Apache Portable Runtime (APR) companion library" | ||
2 | HOMEPAGE = "http://apr.apache.org/" | ||
3 | SECTION = "libs" | ||
4 | DEPENDS = "apr expat" | ||
5 | |||
6 | BBCLASSEXTEND = "native nativesdk" | ||
7 | |||
8 | LICENSE = "Apache-2.0" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=158aa0b1efe0c12f23d4b007ddb9a5db \ | ||
10 | file://include/apu_version.h;endline=15;md5=823b3d1a7225df8f7b68a69c3c2b4c71" | ||
11 | |||
12 | SRC_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 | |||
18 | SRC_URI[sha256sum] = "2b74d8932703826862ca305b094eef2983c27b39d5c9414442e9976a9acf1983" | ||
19 | |||
20 | EXTRA_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 | |||
26 | inherit autotools lib_package binconfig multilib_script | ||
27 | |||
28 | MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/apu-1-config" | ||
29 | |||
30 | OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'" | ||
31 | |||
32 | do_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 | } | ||
38 | do_configure:prepend:class-native() { | ||
39 | mkdir ${B}/build | ||
40 | cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${B}/build/rules.mk | ||
41 | } | ||
42 | do_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 | |||
48 | do_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 | |||
53 | do_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 | |||
60 | do_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 | |||
66 | PACKAGECONFIG ??= "crypto gdbm" | ||
67 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" | ||
68 | PACKAGECONFIG[crypto] = "--with-openssl=${STAGING_DIR_HOST}${prefix} --with-crypto,--without-crypto,openssl" | ||
69 | PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_DIR_HOST}${prefix},--without-sqlite3,sqlite3" | ||
70 | PACKAGECONFIG[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} | ||
73 | FILES:${PN} += "${libdir}/apr-util-1/apr*${SOLIBS} ${libdir}/apr-util-1/apr*${SOLIBSDEV}" | ||
74 | FILES:${PN}-dev += "${libdir}/aprutil.exp ${libdir}/apr-util-1/*.la" | ||
75 | FILES:${PN}-staticdev += "${libdir}/apr-util-1/*.a" | ||
76 | |||
77 | INSANE_SKIP:${PN} += "dev-so" | ||
78 | |||
79 | inherit ptest | ||
80 | |||
81 | RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-gconv-iso8859-1 glibc-gconv-iso8859-2 glibc-gconv-utf-7" | ||
82 | RDEPENDS:${PN}-ptest += "libgcc" | ||
83 | |||
84 | do_compile_ptest() { | ||
85 | cd ${B}/test | ||
86 | oe_runmake | ||
87 | } | ||
88 | |||
89 | do_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 | } | ||