xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/libmicrohttpd/libmicrohttpd_0.9.76.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDESCRIPTION = "A small C library that is supposed to make it easy to run an HTTP server as part of another application"
2*4882a593SmuzhiyunHOMEPAGE = "http://www.gnu.org/software/libmicrohttpd/"
3*4882a593SmuzhiyunLICENSE = "LGPL-2.1-or-later"
4*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=57d09285feac8a64efa878e692b14f36"
5*4882a593SmuzhiyunSECTION = "net"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunDEPENDS = "file"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunSRC_URI = "${GNU_MIRROR}/libmicrohttpd/${BPN}-${PV}.tar.gz"
10*4882a593SmuzhiyunSRC_URI[sha256sum] = "f0b1547b5a42a6c0f724e8e1c1cb5ce9c4c35fb495e7d780b9930d35011ceb4c"
11*4882a593Smuzhiyun
12*4882a593Smuzhiyuninherit autotools lib_package pkgconfig gettext
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunCFLAGS += "-pthread -D_REENTRANT"
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunEXTRA_OECONF += "--disable-static --with-gnutls=${STAGING_LIBDIR}/../"
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunPACKAGECONFIG ?= "curl https"
19*4882a593SmuzhiyunPACKAGECONFIG:append:class-target = "\
20*4882a593Smuzhiyun        ${@bb.utils.filter('DISTRO_FEATURES', 'largefile', d)} \
21*4882a593Smuzhiyun"
22*4882a593SmuzhiyunPACKAGECONFIG[largefile] = "--enable-largefile,--disable-largefile,,"
23*4882a593SmuzhiyunPACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl,"
24*4882a593SmuzhiyunPACKAGECONFIG[https] = "--enable-https,--disable-https,libgcrypt gnutls,"
25*4882a593Smuzhiyun
26*4882a593Smuzhiyundo_compile:append() {
27*4882a593Smuzhiyun    sed -i s:-L${STAGING_LIBDIR}::g libmicrohttpd.pc
28*4882a593Smuzhiyun}
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
31