libks: bump to 2.0.2

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
Sebastian Kemper 2023-08-18 14:23:30 +02:00
parent 4cce5ebdd0
commit 04f03b98a5
3 changed files with 23 additions and 23 deletions

View file

@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libks PKG_NAME:=libks
PKG_VERSION:=1.8.2 PKG_VERSION:=2.0.2
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=libks-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/signalwire/libks/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/signalwire/libks/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=131d7896c81a7f3c9bf06860e4f564ca558d4be1614568fec688b3eb66d38107 PKG_HASH:=af94f9fcdb2022b8f09187309ac2d372a5a4cc639af77cd4375f2d5c88b4fd63
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1 CMAKE_INSTALL:=1
@ -33,13 +33,13 @@ PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk include $(INCLUDE_DIR)/cmake.mk
define Package/$(PKG_NAME) define Package/libks
SUBMENU:=Telephony SUBMENU:=Telephony
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
TITLE:=Foundational support for SignalWire C products TITLE:=Foundational support for SignalWire C products
URL:=https://github.com/signalwire/libks URL:=https://github.com/signalwire/libks
ABI_VERSION:=1 ABI_VERSION:=2
DEPENDS:=+libatomic +libopenssl +libuuid DEPENDS:=+libatomic +libopenssl +libuuid
endef endef
@ -47,20 +47,20 @@ endef
TARGET_CFLAGS += $(TARGET_CPPFLAGS) TARGET_CFLAGS += $(TARGET_CPPFLAGS)
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME) $(INSTALL_DIR) $(1)/usr/include/libks2/libks/cmake
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME)/*.h \ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libks2/libks/*.h \
$(1)/usr/include/$(PKG_NAME) $(1)/usr/include/libks2/libks
$(INSTALL_DIR) $(1)/usr/lib/{cmake/$(PKG_NAME),pkgconfig} $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME)/cmake/* \ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libks2/libks/cmake/* \
$(1)/usr/lib/cmake/$(PKG_NAME) $(1)/usr/include/libks2/libks/cmake
$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME).so* $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libks2.so* $(1)/usr/lib
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/$(PKG_NAME).pc \ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libks2.pc \
$(1)/usr/lib/pkgconfig $(1)/usr/lib/pkgconfig
endef endef
define Package/$(PKG_NAME)/install define Package/libks/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME).so.$(ABI_VERSION)* $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libks2.so.$(ABI_VERSION)* $(1)/usr/lib
endef endef
$(eval $(call BuildPackage,$(PKG_NAME))) $(eval $(call BuildPackage,libks))

View file

@ -1,6 +1,6 @@
--- a/src/include/libks/ks_platform.h --- a/src/include/libks/ks_platform.h
+++ b/src/include/libks/ks_platform.h +++ b/src/include/libks/ks_platform.h
@@ -91,7 +91,7 @@ KS_BEGIN_EXTERN_C @@ -93,7 +93,7 @@ KS_BEGIN_EXTERN_C
#include <sys/time.h> #include <sys/time.h>
#include <sys/select.h> #include <sys/select.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>

View file

@ -4,9 +4,9 @@
# Must include cotire before anything else for auto pch setup # Must include cotire before anything else for auto pch setup
#include(cmake/cotire.cmake) #include(cmake/cotire.cmake)
+# Declare our project, libks +# Declare our project, libks2
+project(LibKS VERSION 1.8.2 LANGUAGES C CXX) +project(LibKS2 VERSION 2.0.2 LANGUAGES C CXX)
+message("LibKS Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}") +message("LibKS2 Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
+ +
# Load our common utility api and setup the platfomrm and build # Load our common utility api and setup the platfomrm and build
include(cmake/ksutil.cmake) include(cmake/ksutil.cmake)
@ -15,9 +15,9 @@
endif() endif()
endif() endif()
-# Declare our project, libks -# Declare our project, libks2
-project(LibKS VERSION 1.8.2 LANGUAGES C CXX) -project(LibKS2 VERSION 2.0.2 LANGUAGES C CXX)
-message("LibKS Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}") -message("LibKS2 Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
- -
# Set package version # Set package version
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})