diff --git a/ports/gmime/config-linux.h b/ports/gmime/config-linux.h new file mode 100644 index 00000000000000..6dfe10fbc711ed --- /dev/null +++ b/ports/gmime/config-linux.h @@ -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 diff --git a/ports/gmime/portfile.cmake b/ports/gmime/portfile.cmake index dbdc226e4e342b..a2900194c8de9f 100644 --- a/ports/gmime/portfile.cmake +++ b/ports/gmime/portfile.cmake @@ -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}" diff --git a/ports/gmime/vcpkg.json b/ports/gmime/vcpkg.json index 349a31b7051f2a..edad9e4c051ac2 100644 --- a/ports/gmime/vcpkg.json +++ b/ports/gmime/vcpkg.json @@ -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", diff --git a/versions/baseline.json b/versions/baseline.json index e3c2c74389cfb7..66a0eb978ce8a0 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3194,7 +3194,7 @@ }, "gmime": { "baseline": "3.2.6", - "port-version": 6 + "port-version": 7 }, "gmmlib": { "baseline": "22.5.2", diff --git a/versions/g-/gmime.json b/versions/g-/gmime.json index 4f6711334cb6aa..bf7ff1f84191ab 100644 --- a/versions/g-/gmime.json +++ b/versions/g-/gmime.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "eff4c5cfc721a3f1e23cf22c5fd7fc0cad6c4f1d", + "version": "3.2.6", + "port-version": 7 + }, { "git-tree": "93e8b6f02474e1edb7e99db85020d864ee071ce0", "version": "3.2.6",