aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Towner <jwtowner@users.noreply.github.com>2021-02-26 13:16:38 -0800
committerGitHub <noreply@github.com>2021-02-26 13:16:38 -0800
commit82034dbd5ff7708ee1ccf5990ca0e15fb746587e (patch)
treef523b7c4f7461d654aafd9237ff5a661c1e6bd62
parentb5e6d68c2097255b7453b0b6ddbbeba2ae48b348 (diff)
downloadvcpkg-82034dbd5ff7708ee1ccf5990ca0e15fb746587e.tar.gz
vcpkg-82034dbd5ff7708ee1ccf5990ca0e15fb746587e.zip
[libwebm] apply upstream changes to support Android NDK r15b and later (#16398)
* [libwebm] upstream changes for Android NDK r15b This applies upstream changes from master to libwebm 1.0.0.27 to support building with Android NDK r15b and later up through Android NDK r23 beta. Commits taken from https://chromium.googlesource.com/webm/libwebm master branch: 0ae757087f5e6eb01dfea16cc09205b2425cfb74 Fix android build failure with NDK r15b. 90967863b2f67962f52595a26abb8e4fa4105d44 mkvparser: fix float conversion warning * [libwebm] update control file * [libwebm] update versions * Update ports/libwebm/CONTROL Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update versions/baseline.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update versions/l-/libwebm.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update versions/baseline.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [libpx] use file INSTALL instead of COPY & RENAME * [libvpx] update versions Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
-rw-r--r--ports/libwebm/0003-fix-android-ndk-r22.patch25
-rw-r--r--ports/libwebm/CONTROL3
-rw-r--r--ports/libwebm/portfile.cmake4
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/l-/libwebm.json5
5 files changed, 36 insertions, 5 deletions
diff --git a/ports/libwebm/0003-fix-android-ndk-r22.patch b/ports/libwebm/0003-fix-android-ndk-r22.patch
new file mode 100644
index 000000000..b08168ade
--- /dev/null
+++ b/ports/libwebm/0003-fix-android-ndk-r22.patch
@@ -0,0 +1,25 @@
+diff --git a/mkvmuxerutil.cpp b/mkvmuxerutil.cpp
+index 27ab15d..8949c85 100644
+--- a/mkvmuxerutil.cpp
++++ b/mkvmuxerutil.cpp
+@@ -10,6 +10,7 @@
+
+ #ifdef __ANDROID__
+ #include <fcntl.h>
++#include <unistd.h>
+ #endif
+
+ #include <cassert>
+diff --git a/mkvparser.cpp b/mkvparser.cpp
+index 4f20148..9cc6971 100644
+--- a/mkvparser.cpp
++++ b/mkvparser.cpp
+@@ -4034,7 +4034,7 @@ long SegmentInfo::Parse() {
+ }
+
+ const double rollover_check = m_duration * m_timecodeScale;
+- if (rollover_check > LLONG_MAX)
++ if (rollover_check > static_cast<double>(LLONG_MAX))
+ return E_FILE_FORMAT_INVALID;
+
+ if (pos != stop)
diff --git a/ports/libwebm/CONTROL b/ports/libwebm/CONTROL
index c2d9d878f..243a220c5 100644
--- a/ports/libwebm/CONTROL
+++ b/ports/libwebm/CONTROL
@@ -1,4 +1,5 @@
Source: libwebm
-Version: 1.0.0.27-5
+Version: 1.0.0.27
+Port-Version: 6
Homepage: https://github.com/webmproject/libwebm
Description: WebM File Parser
diff --git a/ports/libwebm/portfile.cmake b/ports/libwebm/portfile.cmake
index 9e8d4c907..a461ae0cb 100644
--- a/ports/libwebm/portfile.cmake
+++ b/ports/libwebm/portfile.cmake
@@ -7,6 +7,7 @@ vcpkg_from_github(
PATCHES
0001-fix-cmake.patch
no-samples.patch
+ 0003-fix-android-ndk-r22.patch
)
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
@@ -28,5 +29,4 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-file(COPY ${SOURCE_PATH}/LICENSE.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/libwebm)
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/libwebm/LICENSE.TXT ${CURRENT_PACKAGES_DIR}/share/libwebm/copyright)
+file(INSTALL ${SOURCE_PATH}/LICENSE.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/versions/baseline.json b/versions/baseline.json
index 6062b122b..07fa06c7b 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -3521,8 +3521,8 @@
"port-version": 3
},
"libwebm": {
- "baseline": "1.0.0.27-5",
- "port-version": 0
+ "baseline": "1.0.0.27",
+ "port-version": 6
},
"libwebp": {
"baseline": "1.1.0",
diff --git a/versions/l-/libwebm.json b/versions/l-/libwebm.json
index 9e0626466..d24a3f5fe 100644
--- a/versions/l-/libwebm.json
+++ b/versions/l-/libwebm.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "09eeb5a939e4dcb87f405fea40875b2a803cd381",
+ "version-string": "1.0.0.27",
+ "port-version": 6
+ },
+ {
"git-tree": "f0a6e61554dbc2b0682711214e704f8fc04275ae",
"version-string": "1.0.0.27-5",
"port-version": 0