From 147ff99cf43afc58040fdf6d2d9d0058b04e96b8 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 9 Jul 2020 16:17:43 -0700 Subject: [PATCH] libwslay: update to 1.1.1 Switch to CMake. Allows faster compilation and simplification of the Makefile. Switched libwslay to a static InstallDev library. Allows further simplification of the Makefile and a smaller size when used with h2o. Signed-off-by: Rosen Penev --- libs/libwslay/Makefile | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/libs/libwslay/Makefile b/libs/libwslay/Makefile index 1c62d4599..ecd79de53 100644 --- a/libs/libwslay/Makefile +++ b/libs/libwslay/Makefile @@ -1,31 +1,30 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libwslay -PKG_VERSION:=1.1.0 -PKG_RELEASE=1 +PKG_VERSION:=1.1.1 +PKG_RELEASE:=1 PKG_SOURCE:=release-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/tatsuhiro-t/wslay/tar.gz/release-$(PKG_VERSION)? -PKG_HASH:=df5dca9f03614073cd8bdd22aa3c9b116f841ed3120b2d4463d2382cc44fc594 - +PKG_HASH:=7b9f4b9df09adaa6e07ec309b68ab376c0db2cfd916613023b52a47adfda224a PKG_BUILD_DIR:=$(BUILD_DIR)/wslay-release-$(PKG_VERSION) PKG_MAINTAINER:=James Taylor PKG_LICENSE:=MIT PKG_LICENSE_FILES:=COPYING +CMAKE_INSTALL:=1 PKG_BUILD_PARALLEL:=1 -PKG_INSTALL:=1 - -PKG_FIXUP:=autoreconf include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk define Package/libwslay SECTION:=libs CATEGORY:=Libraries TITLE:=Wslay is a WebSocket library written in C URL:=https://tatsuhiro-t.github.io/wslay/ + BUILDONLY:=1 endef define Package/libwslay/description @@ -37,20 +36,7 @@ define Package/libwslay/description handshake in HTTP. endef -define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/include/wslay - $(CP) $(PKG_INSTALL_DIR)/usr/include/wslay/*.h $(1)/usr/include/wslay/ - - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwslay.{a,so*} $(1)/usr/lib/ - - $(INSTALL_DIR) $(1)/usr/lib/pkgconfig - $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libwslay.pc $(1)/usr/lib/pkgconfig/ -endef - -define Package/libwslay/install - $(INSTALL_DIR) $(1)/usr/lib - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libwslay.so* $(1)/usr/lib/ -endef +CMAKE_OPTIONS += \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON $(eval $(call BuildPackage,libwslay))