[manifest]
name = libevent

[debs]
libevent-dev

[homebrew]
libevent

[rpms]
libevent-devel

[pps]
libevent

# Pinned to a specific master commit rather than release-2.1.12-stable so that
# cmake_minimum_required is high enough for CMake 4 without needing
# CMAKE_POLICY_VERSION_MINIMUM=3.5 in consumer workflows. release-2.2.x is still
# alpha, so a pinned commit is the safer middle ground.
[git]
repo_url = https://github.com/libevent/libevent.git
rev = 4d9b432eef84eb0f9555dfa9249c20ecc823af0d

[build]
builder = cmake

[cmake.defines]
EVENT__DISABLE_TESTS = ON
EVENT__DISABLE_BENCHMARK = ON
EVENT__DISABLE_SAMPLES = ON
EVENT__DISABLE_REGRESS = ON
EVENT__LIBRARY_TYPE = STATIC

[dependencies.not(any(os=linux, os=freebsd))]
openssl
