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.

57 lines
1.3 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.20
  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_MD5SUM:=1cac539cfc560f381a490c9fba940de9
  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/* $(1)/usr/include/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.{a,so*} $(1)/usr/lib/
  40. endef
  41. define Package/libev/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.so* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libev))