Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Civetweb embedded web server" |
| 2 | HOMEPAGE = "https://github.com/civetweb/civetweb" |
| 3 | |
| 4 | LICENSE = "MIT" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=50bd1d7f135b50d7e218996ba28d0d88" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 6 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 7 | SRCREV = "4b440a339979852d5a51fb11a822952712231c23" |
| 8 | PV = "1.12+git${SRCPV}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | SRC_URI = "git://github.com/civetweb/civetweb.git \ |
| 10 | file://0001-Unittest-Link-librt-and-libm-using-l-option.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | " |
| 12 | |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
| 15 | # civetweb supports building with make or cmake (although cmake lacks few features) |
| 16 | inherit cmake |
| 17 | |
| 18 | # Disable Lua and Duktape because they do not compile from CMake (as of v1.8, v1.9 and v1.10). |
| 19 | # Disable ASAN as it is included only in Debug build. |
| 20 | EXTRA_OECMAKE = " \ |
| 21 | -DBUILD_SHARED_LIBS=ON \ |
| 22 | -DCIVETWEB_ENABLE_DUKTAPE=OFF \ |
| 23 | -DCIVETWEB_ENABLE_LUA=OFF \ |
| 24 | -DCIVETWEB_ENABLE_ASAN=OFF \ |
| 25 | -DCIVETWEB_BUILD_TESTING=OFF \ |
| 26 | " |
| 27 | |
| 28 | # Building with ninja fails on missing third_party/lib/libcheck.a (which |
| 29 | # should come from external CMake project) |
| 30 | OECMAKE_GENERATOR = "Unix Makefiles" |
| 31 | |
| 32 | PACKAGECONFIG ??= "caching ipv6 server ssl websockets" |
| 33 | PACKAGECONFIG[caching] = "-DCIVETWEB_DISABLE_CACHING=OFF,-DCIVETWEB_DISABLE_CACHING=ON," |
| 34 | PACKAGECONFIG[cgi] = "-DCIVETWEB_DISABLE_CGI=OFF,-DCIVETWEB_DISABLE_CGI=ON," |
| 35 | PACKAGECONFIG[cpp] = "-DCIVETWEB_ENABLE_CXX=ON,-DCIVETWEB_ENABLE_CXX=OFF," |
| 36 | PACKAGECONFIG[debug] = "-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=ON,-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=OFF," |
| 37 | PACKAGECONFIG[ipv6] = "-DCIVETWEB_ENABLE_IPV6=ON,-DCIVETWEB_ENABLE_IPV6=OFF," |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 38 | PACKAGECONFIG[server] = "-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=ON -DCIVETWEB_INSTALL_EXECUTABLE=ON,-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=OFF -DCIVETWEB_INSTALL_EXECUTABLE=OFF," |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 39 | PACKAGECONFIG[ssl] = "-DCIVETWEB_ENABLE_SSL=ON -DCIVETWEB_SSL_OPENSSL_API_1_1=OFF -DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF,-DCIVETWEB_ENABLE_SSL=OFF,openssl (=1.0.2%)," |
| 40 | PACKAGECONFIG[websockets] = "-DCIVETWEB_ENABLE_WEBSOCKETS=ON,-DCIVETWEB_ENABLE_WEBSOCKETS=OFF," |
| 41 | |
| 42 | BBCLASSEXTEND = "native" |