Skip to content

Commit

Permalink
[libvpx] Use msys2 perl on win32 hosts
Browse files Browse the repository at this point in the history
Ensures the perl scripts for libvpx's generated headers generate correctly when the installation is under msys2.
  • Loading branch information
HybridEidolon committed Dec 12, 2023
1 parent 000d1bd commit cc8cad7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
10 changes: 4 additions & 6 deletions ports/libvpx/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ vcpkg_from_github(
0005-fix-arm64-build.patch # Upstream commit: https://github.com/webmproject/libvpx/commit/858a8c611f4c965078485860a6820e2135e6611b
)

vcpkg_find_acquire_program(PERL)

get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)

if(CMAKE_HOST_WIN32)
vcpkg_acquire_msys(MSYS_ROOT PACKAGES make)
vcpkg_acquire_msys(MSYS_ROOT PACKAGES make perl)
set(BASH ${MSYS_ROOT}/usr/bin/bash.exe)
set(ENV{PATH} "${MSYS_ROOT}/usr/bin;$ENV{PATH};${PERL_EXE_PATH}")
set(ENV{PATH} "${MSYS_ROOT}/usr/bin;$ENV{PATH}")
else()
vcpkg_find_acquire_program(PERL)
get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
set(BASH /bin/bash)
set(ENV{PATH} "${MSYS_ROOT}/usr/bin:$ENV{PATH}:${PERL_EXE_PATH}")
endif()
Expand Down
1 change: 1 addition & 0 deletions ports/libvpx/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "libvpx",
"version": "1.13.1",
"port-version": 1,
"description": "The reference software implementation for the video coding formats VP8 and VP9.",
"homepage": "https://github.com/webmproject/libvpx",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5006,7 +5006,7 @@
},
"libvpx": {
"baseline": "1.13.1",
"port-version": 0
"port-version": 1
},
"libwandio": {
"baseline": "4.2.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libvpx.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c0d7ae69c74bf3fe7d746750779a5f018e74998f",
"version": "1.13.1",
"port-version": 1
},
{
"git-tree": "1484fb529e99fdedd95f2b46f65738a9e95fcaa1",
"version": "1.13.1",
Expand Down

0 comments on commit cc8cad7

Please sign in to comment.