blob: 9ae5b423ee5f376d6834fc9de9e44e883bf76309 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# This file is part of MXE.
# See doc/index.html for further information.
# libevent
PKG := libevent
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.0.18
$(PKG)_CHECKSUM := 2a2cc87ce1945f43dfa5a5f9575fef3d14a8f57a
$(PKG)_SUBDIR := libevent-$($(PKG)_VERSION)-stable
$(PKG)_FILE := libevent-$($(PKG)_VERSION)-stable.tar.gz
$(PKG)_WEBSITE := http://libevent.org
$(PKG)_URL := https://github.com/downloads/$(PKG)/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://libevent.org/' | \
grep 'libevent-' | \
$(SED) -n 's,.*libevent-\([0-9][^>]*\)-stable\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= defexec_DATA=
endef
|