@ -8,17 +8,17 @@
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 := 3.1.0
PKG_RELEASE := 2
PKG_VERSION := 4.1.6
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 := db948be74c78fc13f1f1a55e76707d7baae3a1c8f62b625f639e8f2736298324
PKG_HASH := 402e9a8df553c9cd2aff5d7a9758e9e5285bf3070c82539082864633db3deb83
PKG_SOURCE_VERSION := v$( PKG_VERSION)
PKG_SOURCE_VERSION := v$( PKG_VERSION)
PKG_LICENSE := LGPL-2.1+exception
PKG_LICENSE := MIT
PKG_LICENSE_FILES := LICENSE
PKG_LICENSE_FILES := LICENSE
CMAKE_INSTALL := 1
CMAKE_INSTALL := 1
@ -27,14 +27,15 @@ include $(INCLUDE_DIR)/package.mk
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
CMAKE_OPTIONS += -DLWS_IPV6= $( if $( CONFIG_IPV6) ,ON,OFF)
CMAKE_OPTIONS += -DLWS_IPV6= $( if $( CONFIG_IPV6) ,ON,OFF)
CMAKE_OPTIONS += -DLWS_WITHOUT_TESTAPPS= ON
# other options worth noting
# CMAKE_OPTIONS += -DLWS_WITHOUT_EXTENSIONS=ON
# CMAKE_OPTIONS += -DLWS_WITHOUT_DAEMONIZE=ON
# CMAKE_OPTIONS += -DLWS_WITHOUT_SERVER=ON
# CMAKE_OPTIONS += -DLWS_WITHOUT_DEBUG=ON
CMAKE_OPTIONS += -DISABLE_WERROR= ON
CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE= Release
# turn off all test apps
CMAKE_OPTIONS += -DLWS_WITHOUT_TESTAPPS= ON
CMAKE_OPTIONS += -DLWS_WITHOUT_TEST_SERVER= ON
CMAKE_OPTIONS += -DLWS_WITHOUT_TEST_SERVER_EXTPOLL= ON
CMAKE_OPTIONS += -DLWS_WITHOUT_TEST_PING= ON
CMAKE_OPTIONS += -DLWS_WITHOUT_TEST_CLIENT= ON
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 / D e f a u l t
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 / D e f a u l t
SECTION:= libs
SECTION:= libs
@ -69,7 +70,6 @@ endef
i f e q ( $( BUILD_VARIANT ) , o p e n s s l )
i f e q ( $( BUILD_VARIANT ) , o p e n s s l )
CMAKE_OPTIONS += -DLWS_OPENSSL_CLIENT_CERTS= /etc/ssl/certs
CMAKE_OPTIONS += -DLWS_OPENSSL_CLIENT_CERTS= /etc/ssl/certs
CMAKE_OPTIONS += -DLWS_OPENSSL_SUPPORT= ON
CMAKE_OPTIONS += -DLWS_WITH_SSL= ON
CMAKE_OPTIONS += -DLWS_WITH_SSL= ON
e n d i f
e n d i f
@ -79,7 +79,6 @@ endif
i f e q ( $( BUILD_VARIANT ) , f u l l )
i f e q ( $( BUILD_VARIANT ) , f u l l )
CMAKE_OPTIONS += -DLWS_OPENSSL_CLIENT_CERTS= /etc/ssl/certs
CMAKE_OPTIONS += -DLWS_OPENSSL_CLIENT_CERTS= /etc/ssl/certs
CMAKE_OPTIONS += -DLWS_OPENSSL_SUPPORT= ON
CMAKE_OPTIONS += -DLWS_WITH_SSL= ON
CMAKE_OPTIONS += -DLWS_WITH_SSL= ON
CMAKE_OPTIONS += -DLWS_WITH_LIBUV= ON
CMAKE_OPTIONS += -DLWS_WITH_LIBUV= ON
CMAKE_OPTIONS += -DLWS_WITH_PLUGINS= ON
CMAKE_OPTIONS += -DLWS_WITH_PLUGINS= ON
@ -96,7 +95,11 @@ endef
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 - 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)
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 / i n s t a l l
$( call Package/libwebsockets/install,$( 1) )
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libwebsockets-evlib_uv.so* $( 1) /usr/lib
e n d e f
$( eval $ ( call BuildPackage ,libwebsockets -openssl ) )
$( eval $ ( call BuildPackage ,libwebsockets -openssl ) )
$( eval $ ( call BuildPackage ,libwebsockets -mbedtls ) )
$( eval $ ( call BuildPackage ,libwebsockets -mbedtls ) )