mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-05 19:18:43 +08:00
32 lines
874 B
TOML
32 lines
874 B
TOML
#TODO compiles, not tested
|
|
[source]
|
|
tar = "https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz"
|
|
patches = [
|
|
"redox.patch"
|
|
]
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"openssl1",
|
|
]
|
|
script = """
|
|
COOKBOOK_CONFIGURE="cmake"
|
|
COOKBOOK_CONFIGURE_FLAGS=(
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DCMAKE_CROSSCOMPILING=True
|
|
-DCMAKE_INSTALL_PREFIX="${COOKBOOK_STAGE}/"
|
|
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
|
-DCMAKE_SYSTEM_NAME=Generic
|
|
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
|
-DCMAKE_VERBOSE_MAKEFILE=On
|
|
-DEVENT__LIBRARY_TYPE=STATIC
|
|
"${COOKBOOK_SOURCE}"
|
|
)
|
|
|
|
# Can't call `cookbook_configure` because it sets DESTDIR (which causes an error)
|
|
"${COOKBOOK_CONFIGURE}" "${COOKBOOK_CONFIGURE_FLAGS[@]}"
|
|
"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
|
|
"${COOKBOOK_MAKE}" install
|
|
"""
|