pantry/projects/libwebsockets.org/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

34 lines
683 B
YAML

distributable:
url: https://github.com/warmcat/libwebsockets/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: warmcat/libwebsockets/tags
dependencies:
libuv.org: 1
libevent.org: 2
build:
dependencies:
cmake.org: 3
working-directory: build
script: |
cmake .. -DCMAKE_INSTALL_PREFIX="{{prefix}}" $ARGS
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- -DLWS_IPV6=ON
- -DLWS_WITH_HTTP2=ON
- -DLWS_WITH_LIBEVENT=ON
- -DLWS_WITH_LIBUV=ON
- -DLWS_WITH_PLUGINS=ON
- -DLWS_WITHOUT_TESTAPPS=ON
- -DLWS_UNIX_SOCK=ON
test:
dependencies:
script: |
cc fixture.c -lwebsockets
./a.out