Created
October 10, 2022 12:46
-
-
Save idoop/2e947e6aeaa632dff9ccd487546f09f5 to your computer and use it in GitHub Desktop.
Concurrency Kit for OpenWRT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include $(TOPDIR)/rules.mk | |
PKG_NAME:=concurrencykit | |
PKG_VERSION:=master | |
PKG_MAINTAINER:=ChenYang <[email protected]> | |
PKG_SOURCE_PROTO:=git | |
#PKG_SOURCE_VERSION:=master | |
PKG_SOURCE_URL:=https://github.com/idoop/ck.git | |
PKG_SOURCE_VERSION:=e408b8bd045aa7c07b7a7924952408483b8a8c61 | |
PKG_BUILD_PARALLEL:=1 | |
PKG_INSTALL:=1 | |
PKG_FIXUP:=autoreconf | |
include $(INCLUDE_DIR)/package.mk | |
define Package/$(PKG_NAME) | |
SECTION:=libs | |
CATEGORY:=Libraries | |
TITLE:=sysbench | |
URL:==https://github.com/concurrencykit/ck | |
DEPENDS:=+libstdcpp | |
endef | |
define Package/$(PKG_NAME)/description | |
sysbench is a scriptable multi-threaded benchmark tool based on LuaJIT. | |
endef | |
CONFIGURE_VARS += COMPILER=gcc PLATFORM=$(CONFIG_ARCH) | |
CONFIGURE_ARGS += --use-cc-builtins | |
define Build/InstallDev | |
$(INSTALL_DIR) $(1)/usr/include | |
$(INSTALL_DIR) $(1)/usr/lib | |
$(CP) $(PKG_INSTALL_DIR)/usr/include/ck* $(1)/usr/include/ | |
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/ | |
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig | |
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/ | |
endef | |
define Package/$(PKG_NAME)/install | |
$(INSTALL_DIR) $(1)/usr/lib | |
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib | |
endef | |
$(eval $(call BuildPackage,$(PKG_NAME))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment