summaryrefslogtreecommitdiffstats
path: root/package/libevent/libevent.mk
diff options
context:
space:
mode:
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>2014-10-19 19:21:01 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-10-26 16:57:27 +0100
commitcfb4d2451ba0feac9e5e050319e542e128b3aec9 (patch)
tree58561e0bb8148901e853c0139223c9fe04c639da /package/libevent/libevent.mk
parenta732c545246d4066d8eb389ac17c6983c0b4e20e (diff)
downloadbuildroot-cfb4d2451ba0feac9e5e050319e542e128b3aec9.tar.gz
buildroot-cfb4d2451ba0feac9e5e050319e542e128b3aec9.zip
libevent: Use github call & fix patch
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>
Diffstat (limited to 'package/libevent/libevent.mk')
-rw-r--r--package/libevent/libevent.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/libevent/libevent.mk b/package/libevent/libevent.mk
index 73be50242f..607b7b2150 100644
--- a/package/libevent/libevent.mk
+++ b/package/libevent/libevent.mk
@@ -4,12 +4,13 @@
#
################################################################################
-LIBEVENT_VERSION = 2.0.21
-LIBEVENT_SOURCE = libevent-$(LIBEVENT_VERSION)-stable.tar.gz
-LIBEVENT_SITE = https://github.com/downloads/libevent/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
OpenPOWER on IntegriCloud