@ -8,13 +8,13 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := libwebsockets
PKG_NAME := libwebsockets
PKG_VERSION := 2.2.1
PKG_RELEASE := 3
PKG_VERSION := 2.4.0
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_SUBDIR := $( PKG_NAME) -$( PKG_VERSION)
PKG_SOURCE_SUBDIR := $( PKG_NAME) -$( PKG_VERSION)
PKG_SOURCE_URL := https://codeload.github.com/warmcat/libwebsockets/tar.gz/v$( PKG_VERSION) ?
PKG_SOURCE_URL := https://codeload.github.com/warmcat/libwebsockets/tar.gz/v$( PKG_VERSION) ?
PKG_HASH := e7f9eaef258e003c9ada0803a9a5636757a5bc0a58927858834fb38a87d18ad2
PKG_HASH := 0dc355c1f9a660b98667cc616fa4c4fe08dacdaeff2d5cc9f74e49e9d4af2d95
PKG_SOURCE_VERSION := v$( PKG_VERSION)
PKG_SOURCE_VERSION := v$( PKG_VERSION)
@ -43,9 +43,10 @@ define Package/libwebsockets/Default
SECTION:= libs
SECTION:= libs
CATEGORY:= Libraries
CATEGORY:= Libraries
TITLE:= libwebsockets
TITLE:= libwebsockets
DEPENDS:= +zlib
DEPENDS:= +zlib +libcap
URL:= https://libwebsockets.org
URL:= https://libwebsockets.org
MAINTAINER:= Karl Palsson <karlp@etactica.com>
MAINTAINER:= Karl Palsson <karlp@etactica.com>
PROVIDES:= libwebsockets
e n d e f
e n d e f
d e f i n e P a c k a g e / l i b w e b s o c k e t s - o p e n s s l
d e f i n e P a c k a g e / l i b w e b s o c k e t s - o p e n s s l
@ -55,11 +56,11 @@ define Package/libwebsockets-openssl
VARIANT:= openssl
VARIANT:= openssl
e n d e f
e n d e f
d e f i n e P a c k a g e / l i b w e b s o c k e t s - w o l f s s l
$( call Package/libwebsockets /Default)
TITLE += ( WolfSSL )
DEPENDS += +libcyassl
VARIANT:= wolfssl
d e f i n e P a c k a g e / l i b w e b s o c k e t s - m b e d t l s
$( call Package/$( PKG_NAME) /Default)
TITLE += ( mbedTLS )
DEPENDS += +libmbedtls
VARIANT:= mbedtls
e n d e f
e n d e f
d e f i n e P a c k a g e / l i b w e b s o c k e t s - f u l l
d e f i n e P a c k a g e / l i b w e b s o c k e t s - f u l l
@ -75,15 +76,8 @@ ifeq ($(BUILD_VARIANT),openssl)
CMAKE_OPTIONS += -DLWS_WITH_SSL= ON
CMAKE_OPTIONS += -DLWS_WITH_SSL= ON
e n d i f
e n d i f
i f e q ( $( BUILD_VARIANT ) , w o l f s s l )
CMAKE_OPTIONS += -DLWS_OPENSSL_CLIENT_CERTS= /etc/ssl/certs
CMAKE_OPTIONS += -DLWS_OPENSSL_SUPPORT= ON
CMAKE_OPTIONS += -DLWS_WITH_SSL= ON
# for wolfssl, edit package/libs/wolfssl/Makefile to include --enable-opensslextra
# NOTE: it will compile without it, untested whether it it's needed?!
CMAKE_OPTIONS += -DLWS_USE_WOLFSSL= ON
CMAKE_OPTIONS += -DLWS_WOLFSSL_LIBRARIES= $( STAGING_DIR) /usr/lib/libwolfssl.so
CMAKE_OPTIONS += -DLWS_WOLFSSL_INCLUDE_DIRS= $( STAGING_DIR) /usr/include
i f e q ( $( BUILD_VARIANT ) , m b e d t l s )
CMAKE_OPTIONS += -DLWS_WITH_MBEDTLS= 1
e n d i f
e n d i f
i f e q ( $( BUILD_VARIANT ) , f u l l )
i f e q ( $( BUILD_VARIANT ) , f u l l )
@ -102,10 +96,10 @@ define Package/libwebsockets/install
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libwebsockets.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libwebsockets.so* $( 1) /usr/lib/
e n d e f
e n d e f
P a c k a g e / l i b w e b s o c k e t s - w o l f s s l / install = $( Package/libwebsockets/install)
P a c k a g e / l i b w e b s o c k e t s - m b e d t l s / install = $( Package/libwebsockets/install)
P a c k a g e / l i b w e b s o c k e t s - o p e n s s l / install = $( Package/libwebsockets/install)
P a c k a g e / l i b w e b s o c k e t s - o p e n s s l / install = $( Package/libwebsockets/install)
P a c k a g e / l i b w e b s o c k e t s - f u l l / install = $( Package/libwebsockets/install)
P a c k a g e / l i b w e b s o c k e t s - f u l l / install = $( Package/libwebsockets/install)
$( eval $ ( call BuildPackage ,libwebsockets -openssl ) )
$( eval $ ( call BuildPackage ,libwebsockets -openssl ) )
$( eval $ ( call BuildPackage ,libwebsockets -wolfssl ) )
$( eval $ ( call BuildPackage ,libwebsockets -mbedtls ) )
$( eval $ ( call BuildPackage ,libwebsockets -full ) )
$( eval $ ( call BuildPackage ,libwebsockets -full ) )