2022-11-01 10:04:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2018-present Team CoreELEC (https://coreelec.org)
|
|
|
|
|
|
|
|
PKG_NAME="libevent"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="2.1.12-stable"
|
2022-11-01 10:04:06 +00:00
|
|
|
PKG_LICENSE="BSD"
|
|
|
|
PKG_SITE="https://libevent.org"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="https://github.com/libevent/libevent/releases/download/release-${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
2022-11-01 10:04:06 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain openssl"
|
|
|
|
PKG_LONGDESC="The libevent API provides a mechanism to execute a callback function when a specific event occurs."
|
|
|
|
PKG_TOOLCHAIN="configure"
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-static \
|
|
|
|
--disable-libevent-regress \
|
|
|
|
--disable-samples \
|
|
|
|
--enable-openssl"
|
|
|
|
|
|
|
|
post_unpack() {
|
|
|
|
# https://github.com/libevent/libevent/issues/863
|
|
|
|
# Uninstall.cmake.in is missing from 2.1.11 release
|
2023-02-24 13:53:43 +00:00
|
|
|
touch ${PKG_BUILD}/cmake/Uninstall.cmake.in
|
2022-11-01 10:04:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
rm -f ${INSTALL}/usr/bin/event_rpcgen.py
|
2022-11-01 10:04:06 +00:00
|
|
|
}
|