mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
fix(websockets)
This commit is contained in:
parent
7d21407668
commit
85823ef67f
1 changed files with 18 additions and 3 deletions
|
@ -13,9 +13,24 @@ build:
|
||||||
dependencies:
|
dependencies:
|
||||||
cmake.org: 3
|
cmake.org: 3
|
||||||
working-directory: build
|
working-directory: build
|
||||||
script: |
|
script:
|
||||||
cmake .. -DCMAKE_INSTALL_PREFIX="{{prefix}}" $ARGS
|
- cmake .. -DCMAKE_INSTALL_PREFIX="{{prefix}}" $ARGS
|
||||||
make --jobs {{ hw.concurrency }} install
|
- make --jobs {{ hw.concurrency }} install
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
sed -E -i.bak \
|
||||||
|
-e "s:{{pkgx.prefix}}:\$\{_IMPORT_PREFIX\}/../..:g" \
|
||||||
|
-e '/^ INTERFACE_INCLUDE_DIRECTORIES/ s|/v([0-9]+)(\.[0-9]+)*[a-z]?/include|/v\1/include|g' \
|
||||||
|
-e '/^ INTERFACE_LINK_LIBRARIES/ s|/v([0-9]+)(\.[0-9]+)*[a-z]?/lib|/v\1/lib|g' \
|
||||||
|
LibwebsocketsTargets.cmake
|
||||||
|
|
||||||
|
sed -E -i.bak \
|
||||||
|
-e "s:{{pkgx.prefix}}:\$\{_IMPORT_PREFIX\}/../..:g" \
|
||||||
|
-e '/^set\(LIBWEBSOCKETS_INCLUDE_DIRS/ s|/v([0-9]+)(\.[0-9]+)*[a-z]?/include|/v\1/include|g' \
|
||||||
|
libwebsockets-config.cmake
|
||||||
|
|
||||||
|
rm LibwebsocketsTargets.cmake.bak libwebsockets-config.cmake.bak
|
||||||
|
working-directory: ${{prefix}}/lib/cmake/libwebsockets
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -DLWS_IPV6=ON
|
- -DLWS_IPV6=ON
|
||||||
|
|
Loading…
Reference in a new issue