xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/serf/serf_1.3.9.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "High-Performance Asynchronous HTTP Client Library"
2DESCRIPTION = "The Apache Serf library is a C-based HTTP client library built upon the Apache \
3Portable Runtime (APR) library. It multiplexes connections, running the \
4read/write communication asynchronously. Memory copies and transformations are \
5kept to a minimum to provide high performance operation."
6HOMEPAGE = "http://serf.apache.org/"
7SRC_URI = "${APACHE_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \
8           file://norpath.patch \
9           file://env.patch \
10           file://0001-Fix-syntax-of-a-print-in-the-scons-file-to-unbreak-b.patch \
11           file://0002-SConstruct-Fix-path-quoting-for-.def-generator.patch \
12           file://0003-gen_def.patch \
13           file://0004-Follow-up-to-r1811083-fix-building-with-scons-3.0.0-.patch \
14           file://SConstruct.stop.creating.directories.without.sandbox-install.prefix.patch \
15           file://0001-buckets-ssl_buckets.c-do-not-use-ERR_GET_FUNC.patch \
16           "
17
18SRC_URI[md5sum] = "370a6340ff20366ab088012cd13f2b57"
19SRC_URI[sha256sum] = "549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc"
20
21LICENSE = "Apache-2.0"
22LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
23
24inherit scons
25
26DEPENDS += " openssl apr apr-util util-linux expat"
27
28EXTRA_OESCONS = " \
29                  LIBDIR=${libdir} \
30                  --install-sandbox=${D} \
31                  CC="${CC}" \
32                  CFLAGS="${CFLAGS}" \
33                  LINKFLAGS="${LDFLAGS}" \
34                  APR=`which apr-1-config` \
35                  APU=`which apu-1-config` \
36                  OPENSSL="${STAGING_EXECPREFIXDIR}" \
37                  "
38
39# scons creates non-reproducible archives
40do_install:append() {
41	rm ${D}/${libdir}/*.a
42}
43
44BBCLASSEXTEND = "native nativesdk"
45