You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2014-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libev
  9. PKG_VERSION:=4.31
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://dist.schmorp.de/libev/Attic/
  13. PKG_HASH:=ed855d2b52118e32c0c1a6a32bd18c97f9e6711ca511f5ee12de3b9eccc66e5a
  14. PKG_LICENSE:=BSD-2-Clause
  15. PKG_MAINTAINER:=Karl Palsson <karlp@tweak.net.au>
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_USE_MIPS16:=0
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libev
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=High-performance event loop
  25. URL:=http://software.schmorp.de/pkg/libev.html
  26. endef
  27. define Package/libev/description
  28. A full-featured and high-performance event loop that is loosely modelled after
  29. libevent, but without its limitations and bugs.
  30. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. CONFIGURE_ARGS += \
  33. --enable-shared \
  34. --enable-static \
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/event.h $(1)/usr/include/ev_event_compat.h
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/ev.h $(1)/usr/include/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/ev++.h $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.{a,so*} $(1)/usr/lib/
  42. endef
  43. define Package/libev/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.so* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libev))