2007-01-14 06:38:00 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libevent
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
LIBEVENT_VERSION:=1.2
|
|
|
|
LIBEVENT_SOURCE:=libevent-$(LIBEVENT_VERSION).tar.gz
|
2007-01-14 06:38:00 +01:00
|
|
|
LIBEVENT_SITE:=http://monkey.org/~provos/
|
2007-07-11 16:06:06 +02:00
|
|
|
LIBEVENT_DIR:=$(BUILD_DIR)/libevent-$(LIBEVENT_VERSION)
|
2007-01-14 06:38:00 +01:00
|
|
|
LIBEVENT_CAT:=$(ZCAT)
|
|
|
|
LIBEVENT_BINARY:=libevent.la
|
|
|
|
LIBEVENT_TARGET_BINARY:=usr/lib/libevent.so
|
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBEVENT_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LIBEVENT_SITE)/$(LIBEVENT_SOURCE)
|
|
|
|
|
2007-01-14 12:14:27 +01:00
|
|
|
libevent-source: $(DL_DIR)/$(LIBEVENT_SOURCE)
|
|
|
|
|
2007-01-14 06:38:00 +01:00
|
|
|
libevent-unpacked: $(LIBEVENT_DIR)/.unpacked
|
|
|
|
$(LIBEVENT_DIR)/.unpacked: $(DL_DIR)/$(LIBEVENT_SOURCE)
|
|
|
|
$(LIBEVENT_CAT) $(DL_DIR)/$(LIBEVENT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-06-20 15:18:53 +02:00
|
|
|
toolchain/patch-kernel.sh $(LIBEVENT_DIR) package/libevent/ \*.patch
|
2007-06-20 15:19:40 +02:00
|
|
|
touch $@
|
2007-01-14 06:38:00 +01:00
|
|
|
|
|
|
|
$(LIBEVENT_DIR)/.configured: $(LIBEVENT_DIR)/.unpacked
|
|
|
|
(cd $(LIBEVENT_DIR); rm -rf config.cache; \
|
2007-01-14 12:25:22 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-01-14 06:38:00 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
2007-09-19 22:13:08 +02:00
|
|
|
--mandir=/usr/share/man \
|
2007-01-14 06:38:00 +01:00
|
|
|
--disable-static \
|
|
|
|
--with-gnu-ld \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-06-20 15:19:40 +02:00
|
|
|
touch $@
|
2007-01-14 06:38:00 +01:00
|
|
|
|
|
|
|
$(LIBEVENT_DIR)/$(LIBEVENT_BINARY): $(LIBEVENT_DIR)/.configured
|
2007-07-09 10:30:38 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LIBEVENT_DIR)
|
2007-01-14 06:38:00 +01:00
|
|
|
|
|
|
|
$(STAGING_DIR)/$(LIBEVENT_TARGET_BINARY): $(LIBEVENT_DIR)/$(LIBEVENT_BINARY)
|
2007-01-21 22:32:49 +01:00
|
|
|
$(MAKE) -C $(LIBEVENT_DIR) DESTDIR=$(STAGING_DIR) install
|
2007-01-14 06:38:00 +01:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(LIBEVENT_TARGET_BINARY): $(STAGING_DIR)/$(LIBEVENT_TARGET_BINARY)
|
2007-01-21 22:32:49 +01:00
|
|
|
$(MAKE) -C $(LIBEVENT_DIR) DESTDIR=$(TARGET_DIR) install
|
2007-09-19 22:13:08 +02:00
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/,lib/libevent*.la \
|
|
|
|
include/ev*)
|
|
|
|
ifneq ($(BR2_HAVE_MANPAGES),y)
|
|
|
|
rm -fr $(TARGET_DIR)/usr/share/man
|
|
|
|
endif
|
2007-01-14 06:38:00 +01:00
|
|
|
|
|
|
|
libevent: uclibc $(TARGET_DIR)/$(LIBEVENT_TARGET_BINARY)
|
|
|
|
|
|
|
|
libevent-clean:
|
2007-01-14 07:07:49 +01:00
|
|
|
rm -f $(TARGET_DIR)/$(LIBEVENT_TARGET_BINARY)*
|
2007-01-14 06:38:00 +01:00
|
|
|
-$(MAKE) -C $(LIBEVENT_DIR) clean
|
|
|
|
|
|
|
|
libevent-dirclean:
|
|
|
|
rm -rf $(LIBEVENT_DIR)
|
2007-01-14 07:07:49 +01:00
|
|
|
|
2007-01-14 06:38:00 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LIBEVENT)),y)
|
|
|
|
TARGETS+=libevent
|
|
|
|
endif
|