distribution/packages/devel/libevent/package.mk

27 lines
951 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2018-present Team CoreELEC (https://coreelec.org)
PKG_NAME="libevent"
PKG_VERSION="2.1.12-stable"
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"
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
}
post_makeinstall_target() {
2023-02-24 13:53:43 +00:00
rm -f ${INSTALL}/usr/bin/event_rpcgen.py
}