Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Sep 7, 2022
1 parent fb92be1 commit bcd9252
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
18 changes: 6 additions & 12 deletions recipe/install_openssl.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@echo on
setlocal enabledelayedexpansion

nmake install
if %ERRORLEVEL% neq 0 exit 1
Expand All @@ -10,18 +11,11 @@ rd /s /q %LIBRARY_PREFIX%\html
:: adapted from inspecting the conda-forge .pc files for unix, and
:: https://github.com/microsoft/vcpkg/blob/master/ports/openssl/install-pc-files.cmake
mkdir %LIBRARY_PREFIX%\lib\pkgconfig
:: openssl.pc
copy %RECIPE_DIR%\win_pkgconfig\openssl.pc.in %LIBRARY_PREFIX%\lib\pkgconfig\openssl.pc
sed "s|@PREFIX@|%LIBRARY_PREFIX:\=/%|g" %LIBRARY_PREFIX%\lib\pkgconfig\openssl.pc
sed "s|@VERSION@|%PKG_VERSION%|g" %LIBRARY_PREFIX%\lib\pkgconfig\openssl.pc
:: libcrypto.pc
copy %RECIPE_DIR%\win_pkgconfig\libcrypto.pc.in %LIBRARY_PREFIX%\lib\pkgconfig\libcrypto.pc
sed "s|@PREFIX@|%LIBRARY_PREFIX:\=/%|g" %LIBRARY_PREFIX%\lib\pkgconfig\libcrypto.pc
sed "s|@VERSION@|%PKG_VERSION%|g" %LIBRARY_PREFIX%\lib\pkgconfig\libcrypto.pc
:: libssl.pc
copy %RECIPE_DIR%\win_pkgconfig\libssl.pc.in %LIBRARY_PREFIX%\lib\pkgconfig\libssl.pc
sed "s|@PREFIX@|%LIBRARY_PREFIX:\=/%|g" %LIBRARY_PREFIX%\lib\pkgconfig\libssl.pc
sed "s|@VERSION@|%PKG_VERSION%|g" %LIBRARY_PREFIX%\lib\pkgconfig\libssl.pc
for %%F in (openssl libssl libcrypto) DO (
copy %RECIPE_DIR%\win_pkgconfig\%%F.pc.in %LIBRARY_PREFIX%\lib\pkgconfig\%%F.pc
sed -i "s|@PREFIX@|%LIBRARY_PREFIX:\=/%|g" %LIBRARY_PREFIX%\lib\pkgconfig\%%F.pc
sed -i "s|@VERSION@|%PKG_VERSION%|g" %LIBRARY_PREFIX%\lib\pkgconfig\%%F.pc
)

type "========================================"
type "========================================"
Expand Down
4 changes: 4 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ outputs:
- $PREFIX/bin/openssl sha256 checksum.txt # [unix]
- '%LIBRARY_BIN%\openssl sha256 checksum.txt' # [win]

# debug
- type %LIBRARY_PREFIX%\lib\pkgconfig\openssl.pc # [win]
- type %LIBRARY_PREFIX%\lib\pkgconfig\libssl.pc # [win]
- type %LIBRARY_PREFIX%\lib\pkgconfig\libcrypto.pc # [win]
# test pkgconfig metadata
- pkg-config --print-errors --exact-version "{{ version }}" openssl

Expand Down

0 comments on commit bcd9252

Please sign in to comment.