Makefile (1492B)
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 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=libev 11 PKG_VERSION:=4.22 12 PKG_RELEASE:=1 13 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> 19 20 PKG_BUILD_PARALLEL:=1 21 PKG_FIXUP:=autoreconf 22 PKG_INSTALL:=1 23 PKG_USE_MIPS16:=0 24 25 include $(INCLUDE_DIR)/package.mk 26 27 define Package/libev 28 SECTION:=libs 29 CATEGORY:=Libraries 30 TITLE:=High-performance event loop 31 URL:=http://software.schmorp.de/pkg/libev.html 32 endef 33 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. 37 endef 38 39 TARGET_CFLAGS += $(FPIC) 40 41 CONFIGURE_ARGS += \ 42 --enable-shared \ 43 --enable-static \ 44 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/ 52 endef 53 54 define Package/libev/install 55 $(INSTALL_DIR) $(1)/usr/lib 56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.so* $(1)/usr/lib/ 57 endef 58 59 $(eval $(call BuildPackage,libev))