Skip to content

Commit

Permalink
no sed for you!
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Sep 8, 2022
1 parent b67d8ee commit 887bd6a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
7 changes: 4 additions & 3 deletions recipe/install_openssl.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ rd /s /q %LIBRARY_PREFIX%\html
:: https://github.com/microsoft/vcpkg/blob/master/ports/openssl/install-pc-files.cmake
mkdir %LIBRARY_PREFIX%\lib\pkgconfig
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
echo prefix=%LIBRARY_PREFIX:\=/% > %%F.pc
type %RECIPE_DIR%\win_pkgconfig\%%F.pc.in >> %%F.pc
echo Version: %PKG_VERSION% >> %%F.pc
copy %%F.pc %LIBRARY_PREFIX%\lib\pkgconfig\%%F.pc
)

REM Install step
Expand Down
1 change: 0 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ outputs:
requirements:
build:
- {{ compiler('c') }}
- m2-sed # [win]
- make
- perl *
# Empty host section to ensure that this is identified as cb3
Expand Down
2 changes: 0 additions & 2 deletions recipe/win_pkgconfig/libcrypto.pc.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: OpenSSL-libcrypto
Description: OpenSSL cryptography library
Version: @VERSION@
Libs: -L"${libdir}" -llibcrypto
Libs.private: -lcrypt32 -lws2_32
Cflags: -I"${includedir}"
2 changes: 0 additions & 2 deletions recipe/win_pkgconfig/libssl.pc.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: OpenSSL
Description: Secure Sockets Layer and cryptography libraries and tools
Version: @VERSION@
Requires: libssl libcrypto
2 changes: 0 additions & 2 deletions recipe/win_pkgconfig/openssl.pc.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: OpenSSL
Description: Secure Sockets Layer and cryptography libraries and tools
Version: @VERSION@
Requires: libssl libcrypto

0 comments on commit 887bd6a

Please sign in to comment.