-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use vcpkg to build macOS packages (#465)
- Loading branch information
1 parent
bdf6854
commit 1e8e4d2
Showing
7 changed files
with
109 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
diff --git a/ports/curl/portfile.cmake b/ports/curl/portfile.cmake | ||
index bdc544e9e..340d93865 100644 | ||
--- a/ports/curl/portfile.cmake | ||
+++ b/ports/curl/portfile.cmake | ||
@@ -64,6 +64,10 @@ if(VCPKG_TARGET_IS_WINDOWS) | ||
list(APPEND OPTIONS -DENABLE_UNICODE=ON) | ||
endif() | ||
|
||
+if(VCPKG_TARGET_IS_OSX) | ||
+ list(APPEND OPTIONS -DENABLE_IPV6=OFF) | ||
+endif() | ||
+ | ||
vcpkg_cmake_configure( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
OPTIONS | ||
diff --git a/ports/curl/vcpkg.json b/ports/curl/vcpkg.json | ||
index e028d3897..a63858e34 100644 | ||
--- a/ports/curl/vcpkg.json | ||
+++ b/ports/curl/vcpkg.json | ||
@@ -1,6 +1,7 @@ | ||
{ | ||
"name": "curl", | ||
"version": "8.4.0", | ||
+ "port-version": 1, | ||
"description": "A library for transferring data with URLs", | ||
"homepage": "https://curl.se/", | ||
"license": "curl AND ISC AND BSD-3-Clause", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set(VCPKG_TARGET_ARCHITECTURE arm64) | ||
set(VCPKG_CRT_LINKAGE dynamic) | ||
set(VCPKG_LIBRARY_LINKAGE static) | ||
|
||
set(VCPKG_CMAKE_SYSTEM_NAME Darwin) | ||
set(VCPKG_OSX_ARCHITECTURES arm64) | ||
set(VCPKG_OSX_DEPLOYMENT_TARGET 13.0) | ||
|
||
set(VCPKG_BUILD_TYPE release) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set(VCPKG_TARGET_ARCHITECTURE x64) | ||
set(VCPKG_CRT_LINKAGE dynamic) | ||
set(VCPKG_LIBRARY_LINKAGE static) | ||
|
||
set(VCPKG_CMAKE_SYSTEM_NAME Darwin) | ||
set(VCPKG_OSX_ARCHITECTURES x86_64) | ||
set(VCPKG_OSX_DEPLOYMENT_TARGET 13.0) | ||
|
||
set(VCPKG_BUILD_TYPE release) |