# # Copyright (C) 2006-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=wsserver PKG_SOURCE_DATE:=2022-12-03 PKG_SOURCE_VERSION:=eb45cd5d2fcf748a06f50a7e0a5d781c198185b8 PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/Theldus/wsServer PKG_FIXUP:=autoreconf PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk define Package/wsserver SECTION:=libs CATEGORY:=Libraries URL:=https://github.com/Theldus/wsServer TITLE:=wsServer endef define Package/wsserver/description A very tiny WebSocket server library written in C. endef CONFIGURE_ARGS += --without-documentation --disable-tests TARGET_CFLAGS += $(FPIC) define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/local/include/wsserver/ws.h $(1)/usr/include/ $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/local/lib64/libws.a $(1)/usr/lib/ endef define Package/wsserver/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/local/lib64/libws.a $(1)/usr/lib/ endef $(eval $(call BuildPackage,wsserver))