mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
fix(wangle)
This commit is contained in:
parent
0566c8ff9f
commit
e5d9ed5461
1 changed files with 8 additions and 2 deletions
|
@ -37,8 +37,14 @@ build:
|
||||||
- make
|
- make
|
||||||
- cp lib/libwangle.a {{prefix}}/lib
|
- cp lib/libwangle.a {{prefix}}/lib
|
||||||
|
|
||||||
- sed -i.bak "s:$PKGX_DIR:\$\{_IMPORT_PREFIX\}/../../../..:g" "{{prefix}}"/lib/cmake/wangle/wangle-targets.cmake
|
- run: |
|
||||||
- rm "{{prefix}}"/lib/cmake/wangle/wangle-targets.cmake.bak
|
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' \
|
||||||
|
wangle-targets.cmake
|
||||||
|
rm wangle-targets.cmake.bak
|
||||||
|
working-directory: "{{prefix}}/lib/cmake/wangle"
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
||||||
|
|
Loading…
Reference in a new issue