cfb4d2451b
We want to use the github helper since there is not a specific releases tarball that we can download, as specified in the manual. This tarball is generated from the tag, which doesn't contains the autotools generated files, we then need to use AUTORECONF. We want to use the github helper anyway as the current URL use an old GitHub feature which was called 'Download' where you could upload files along your repositories, theses files were not related to your tags. This features has been replaced with the 'Release' option where you can create a release from a git tag. But these tarball are generated from the sources and they don't contains all the generated autotools file. Since the old URL scheme can be deprecated at any time, we want to switch to the new URL scheme, which in the case of libevent, implies having to do an AUTORECONF. The patch that was already present is updated to apply against Makefile.am instead of Makefile.in The second patch is backported from upstream to remove the use of $(top_src_dirs) which makes current autotools error out. Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
27 lines
829 B
Makefile
27 lines
829 B
Makefile
################################################################################
|
|
#
|
|
# libevent
|
|
#
|
|
################################################################################
|
|
|
|
LIBEVENT_VERSION = release-2.0.21-stable
|
|
LIBEVENT_SITE = $(call github,libevent,libevent,$(LIBEVENT_VERSION))
|
|
LIBEVENT_INSTALL_STAGING = YES
|
|
LIBEVENT_LICENSE = BSD-3c, OpenBSD
|
|
LIBEVENT_LICENSE_FILES = LICENSE
|
|
# Straight from the repository, need to generate autotools files
|
|
LIBEVENT_AUTORECONF = YES
|
|
|
|
define LIBEVENT_REMOVE_PYSCRIPT
|
|
rm $(TARGET_DIR)/usr/bin/event_rpcgen.py
|
|
endef
|
|
|
|
# libevent installs a python script to target - get rid of it if we
|
|
# don't have python support enabled
|
|
ifneq ($(BR2_PACKAGE_PYTHON),y)
|
|
LIBEVENT_POST_INSTALL_TARGET_HOOKS += LIBEVENT_REMOVE_PYSCRIPT
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|