Skip to content

Commit

Permalink
Merge pull request #27748 from zklaus/add-ixwebsocket
Browse files Browse the repository at this point in the history
Add ixwebsocket
  • Loading branch information
isuruf authored Oct 7, 2024
2 parents 0525b71 + e0f8ad6 commit 4e3ae3d
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
21 changes: 21 additions & 0 deletions recipes/ixwebsocket/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

set -xeo pipefail

mkdir build
cd build

cmake \
-LAH \
${CMAKE_ARGS} \
-DBUILD_SHARED_LIBS=ON \
-DUSE_ZLIB=1 \
-DUSE_TLS=1 \
-DUSE_OPEN_SSL=1 \
-DUSE_WS=1 \
-DUSE_TEST=1 \
..

make -j ${CPU_COUNT}

make install
90 changes: 90 additions & 0 deletions recipes/ixwebsocket/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{% set name = "ixwebsocket" %}
{% set version = "11.4.5" %}

package:
name: {{ name|lower }}-split
version: {{ version }}

source:
url: https://github.com/machinezone/IXWebSocket/archive/v{{ version }}.tar.gz
sha256: c5fc225edec32bf7d583e55347ef2c9c4940d005c13ef5e848354a85602f5fd6

build:
number: 0
skip: true # [win]

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ stdlib('c') }}
- cmake
- make
host:
- zlib
- openssl
run:

outputs:
- name: libixwebsocket
build:
run_exports:
- {{ pin_subpackage('libixwebsocket', max_pin="x.x.x") }}
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ stdlib('c') }}
host:
- zlib
- openssl
run:
files:
- lib/libixwebsocket.so.* # [linux]
- lib/libixwebsocket.*.dylib # [osx]
test:
commands:
- test ! -f ${PREFIX}/lib/libixwebsocket${SHLIB_EXT} # [unix]

- name: ixwebsocket
build:
run_exports:
- {{ pin_subpackage('libixwebsocket', max_pin="x.x.x") }}
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ stdlib('c') }}
host:
- {{ pin_subpackage('libixwebsocket', exact=True) }}
run:
- {{ pin_subpackage('libixwebsocket', exact=True) }}
files:
- lib/libixwebsocket.so # [linux]
- lib/libixwebsocket.dylib # [osx]
- include/ixwebsocket # [unix]
- lib/cmake/ixwebsocket # [unix]
- lib/pkgconfig/ixwebsocket.pc # [unix]
- bin/ws # [unix]
test:
commands:
- ws --help


about:
home: https://machinezone.github.io/IXWebSocket/
summary: IXWebSocket is a C++ library for WebSocket client and server development.
description: |
IXWebSocket is a C++ library for WebSocket client and server development. It has
minimal dependencies (no boost), is very simple to use and support everything you'll
likely need for websocket dev (SSL, deflate compression, compiles on most platforms, etc...).
license: BSD-3-Clause
license_family: BSD
license_file: LICENSE.txt
doc_url: https://machinezone.github.io/IXWebSocket
dev_url: https://github.com/machinezone/IXWebSocket

extra:
recipe-maintainers:
- zklaus
- timkpaine

0 comments on commit 4e3ae3d

Please sign in to comment.