mirror of https://git.wownero.com/dsc/mxe.git
27 lines
912 B
Makefile
27 lines
912 B
Makefile
# This file is part of MXE.
|
|
# See index.html for further information.
|
|
|
|
PKG := libwebsockets
|
|
$(PKG)_IGNORE :=
|
|
$(PKG)_VERSION := 1.4-chrome43-firefox-36
|
|
$(PKG)_CHECKSUM := e11492477e582ef0b1a6ea2f18d81a9619b449170a3a5c43f32a9468461a9798
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
|
$(PKG)_URL := http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/snapshot/$($(PKG)_FILE)
|
|
$(PKG)_DEPS := gcc openssl zlib
|
|
|
|
define $(PKG)_UPDATE
|
|
$(WGET) -q -O- 'http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/' | \
|
|
$(SED) -n 's,.*libwebsockets-\([0-9][^"]*\)\.tar.*,\1,p' | \
|
|
head -1
|
|
endef
|
|
|
|
define $(PKG)_BUILD
|
|
cd '$(1)' && cmake \
|
|
-DLWS_WITHOUT_TESTAPPS=ON \
|
|
-DLWS_USE_EXTERNAL_ZLIB=ON \
|
|
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'
|
|
$(MAKE) -C '$(1)' -j $(JOBS)
|
|
$(MAKE) -C '$(1)' install
|
|
endef
|