mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-02-17 09:41:38 +01:00
67 lines
1.4 KiB
Makefile
67 lines
1.4 KiB
Makefile
# Added to inteno by Martin Schröder
|
|
# used by JUCI lua backend
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libuv
|
|
PKG_VERSION:=master
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/libuv/libuv.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
MAKE_VARS += WITH_LUA_ENGINE=Lua
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libuv
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Cross-platform asychronous I/O library
|
|
URL:=https://github.com/libuv/libuv
|
|
DEPENDS:=+libpthread +librt
|
|
endef
|
|
|
|
define Package/libuv/description
|
|
libuv is a multi-platform support library with a focus on asynchronous I/O. It
|
|
was primarily developed for use by Node.js, but it's also used by Luvit, Julia,
|
|
pyuv, and others.
|
|
endef
|
|
|
|
define Build/Configure
|
|
( cd $(PKG_BUILD_DIR); ./autogen.sh )
|
|
$(call Build/Configure/Default)
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/include/* \
|
|
$(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/libuv.so* \
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libuv.pc \
|
|
$(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libuv/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/libuv.so* \
|
|
$(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libuv))
|
|
|