2 # Copyright (C) 2014-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://dist.schmorp.de/libev/Attic/
16 PKG_MD5SUM:=bf0007e37240103d3c2be80ca9bee3f9
17 PKG_LICENSE:=BSD-2-Clause
18 PKG_MAINTAINER:=Karl Palsson <karlp@tweak.net.au>
25 include $(INCLUDE_DIR)/package.mk
30 TITLE:=High-performance event loop
31 URL:=http://software.schmorp.de/pkg/libev.html
34 define Package/libev/description
35 A full-featured and high-performance event loop that is loosely modelled after
36 libevent, but without its limitations and bugs.
39 TARGET_CFLAGS += $(FPIC)
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/event.h $(1)/usr/include/ev_event_compat.h
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/ev.h $(1)/usr/include/
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/ev++.h $(1)/usr/include/
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.{a,so*} $(1)/usr/lib/
54 define Package/libev/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.so* $(1)/usr/lib/
59 $(eval $(call BuildPackage,libev))