Skip to content

Truly independent web browser

Meta: Update libtommath to version 1.3.0#3

Timothy Flynne1001595684d
diff --git a/Meta/CMake/vcpkg/overlay-ports/libtommath/install-pc.patch b/Meta/CMake/vcpkg/overlay-ports/libtommath/pkgconfig.diff
similarity index 92%
rename from Meta/CMake/vcpkg/overlay-ports/libtommath/install-pc.patch
rename to Meta/CMake/vcpkg/overlay-ports/libtommath/pkgconfig.diff
index 864e1c16a6d..b735d684416 100644
--- a/Meta/CMake/vcpkg/overlay-ports/libtommath/install-pc.patch
+++ b/Meta/CMake/vcpkg/overlay-ports/libtommath/pkgconfig.diff
@@ -1,4 +1,5 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 0b84e79..6b5c73c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -168,7 +168,7 @@ install(TARGETS ${PROJECT_NAME}
@@ -6,7 +7,7 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
# Install libtommath.pc for pkg-config if we build a shared library
-if(BUILD_SHARED_LIBS)
-+if(BUILD_SHARED_LIBS OR TRUE)
++if(1)
# Let the user override the default directory of the pkg-config file (usually this shouldn't be required to be changed)
set(CMAKE_INSTALL_PKGCONFIGDIR "${CMAKE_INSTALL_LIBDIR}/pkgconfig" CACHE PATH "Folder where to install .pc files")
diff --git a/Meta/CMake/vcpkg/overlay-ports/libtommath/portfile.cmake b/Meta/CMake/vcpkg/overlay-ports/libtommath/portfile.cmake
index 82962613549..2b2db5a36a8 100644
--- a/Meta/CMake/vcpkg/overlay-ports/libtommath/portfile.cmake
+++ b/Meta/CMake/vcpkg/overlay-ports/libtommath/portfile.cmake
@@ -5,12 +5,12 @@ vcpkg_from_github(
SHA512 3dbd7053a670afa563a069a9785f1aa4cab14a210bcd05d8fc7db25bd3dcce36b10a3f4f54ca92d75a694f891226f01bdf6ac15bacafeb93a8be6b04c579beb3
HEAD_REF develop
PATCHES
+ pkgconfig.diff
bcrypt.patch
import-lib.patch
has-set-double.patch # Remove in next release.
msvc-dce.patch # This is a won't fix, see https://github.com/libtom/libtommath/blob/develop/s_mp_rand_platform.c#L120-L138
stdc-iec-559.patch # Define __STDC_IEC_559__ like glibc and musl do.
- install-pc.patch # Always install pkgconfig file, even when building statically.
)
vcpkg_cmake_configure(
diff --git a/Meta/CMake/vcpkg/overlay-ports/libtommath/vcpkg.json b/Meta/CMake/vcpkg/overlay-ports/libtommath/vcpkg.json
index f0ab5327925..c2c1434c8c5 100644
--- a/Meta/CMake/vcpkg/overlay-ports/libtommath/vcpkg.json
+++ b/Meta/CMake/vcpkg/overlay-ports/libtommath/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "libtommath",
"version": "1.3.0",
- "port-version": 2,
+ "port-version": 3,
"description": "LibTomMath is a free open source portable number theoretic multiple-precision integer library written entirely in C.",
"homepage": "https://www.libtom.net/LibTomMath/",
"dependencies": [
diff --git a/vcpkg.json b/vcpkg.json
index 882f34bb904..87b3158e121 100644
--- a/vcpkg.json
+++ b/vcpkg.json
@@ -335,7 +335,7 @@
},
{
"name": "libtommath",
- "version": "1.3.0#2"
+ "version": "1.3.0#3"
},
{
"name": "libwebp",