Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gmime] Enable library to be built and used in linux #42898

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ports/gmime/config-linux.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#define HAVE_GETHOSTNAME 1
#define HAVE_GETADDRINFO 1
#define HAVE_NETDB_H 1
#define LIBIDN 1
#define HAVE_FSYNC 1

#define ssize_t intptr_t
12 changes: 9 additions & 3 deletions ports/gmime/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ vcpkg_extract_source_archive(
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")

# We can use file supplied with original sources
configure_file("${SOURCE_PATH}/build/vs2017/unistd.h" "${SOURCE_PATH}" COPYONLY)
configure_file("${SOURCE_PATH}/build/vs2017/config.h" "${SOURCE_PATH}" COPYONLY)
configure_file("${SOURCE_PATH}/build/vs2017/gmime.def" "${SOURCE_PATH}" COPYONLY)
if(VCPKG_TARGET_IS_WINDOWS)
configure_file("${SOURCE_PATH}/build/vs2017/unistd.h" "${SOURCE_PATH}" COPYONLY)
configure_file("${SOURCE_PATH}/build/vs2017/config.h" "${SOURCE_PATH}" COPYONLY)
configure_file("${SOURCE_PATH}/build/vs2017/gmime.def" "${SOURCE_PATH}" COPYONLY)
else()
configure_file(${CMAKE_CURRENT_LIST_DIR}/config-linux.h "${SOURCE_PATH}/config.h" COPYONLY)
endif()


vcpkg_find_acquire_program(PKGCONFIG)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
Expand Down
4 changes: 2 additions & 2 deletions ports/gmime/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "gmime",
"version": "3.2.6",
"port-version": 6,
"port-version": 7,
"description": "GMime is a C/C++ library which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME).",
"homepage": "https://developer.gnome.org/gmime/",
"license": "LGPL-2.1-or-later",
"supports": "windows & !xbox",
"supports": "(linux & x64) | (windows & !xbox)",
"dependencies": [
"glib",
"libiconv",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3194,7 +3194,7 @@
},
"gmime": {
"baseline": "3.2.6",
"port-version": 6
"port-version": 7
},
"gmmlib": {
"baseline": "22.5.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/gmime.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "eff4c5cfc721a3f1e23cf22c5fd7fc0cad6c4f1d",
"version": "3.2.6",
"port-version": 7
},
{
"git-tree": "93e8b6f02474e1edb7e99db85020d864ee071ce0",
"version": "3.2.6",
Expand Down