aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/mailio/portfile.cmake24
-rw-r--r--ports/mailio/vcpkg.json19
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/m-/mailio.json9
4 files changed, 56 insertions, 0 deletions
diff --git a/ports/mailio/portfile.cmake b/ports/mailio/portfile.cmake
new file mode 100644
index 000000000..2c3dfb932
--- /dev/null
+++ b/ports/mailio/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO karastojko/mailio
+ REF 1872f29d88a52f06cd96b611673b2e46c6b9832b # version_0-20-0
+ SHA512 1686e49ed2c7163c33f88c820633e772986ecfea5696b78a44b370f44051190b14a1ddcd055bce2a9104324c80e8045cf0441c085eb6f272261da7e80bc4fdb5
+ HEAD_REF master
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DMAILIO_BUILD_SHARED_LIBRARY=${BUILD_SHARED}
+ -DMAILIO_BUILD_DOCUMENTATION=OFF
+ -DMAILIO_BUILD_EXAMPLES=OFF
+)
+vcpkg_cmake_install()
+
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/mailio/vcpkg.json b/ports/mailio/vcpkg.json
new file mode 100644
index 000000000..6048ec488
--- /dev/null
+++ b/ports/mailio/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "mailio",
+ "version": "0.20.0",
+ "maintainers": "Tomislav Karastojković <contact@alepho.com>",
+ "description": "mailio is a cross platform C++ library for MIME format and SMTP, POP3 and IMAP protocols. It is based on the standard C++ 17 and Boost library.",
+ "homepage": "https://github.com/karastojko/mailio",
+ "license": "BSD-2-clause",
+ "dependencies": [
+ "boost-asio",
+ "boost-date-time",
+ "boost-regex",
+ "boost-system",
+ "openssl",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index 1c4862486..6d278ab94 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -3720,6 +3720,10 @@
"baseline": "2020.06",
"port-version": 4
},
+ "mailio": {
+ "baseline": "0.20.0",
+ "port-version": 0
+ },
"mapbox-variant": {
"baseline": "1.2.0",
"port-version": 0
diff --git a/versions/m-/mailio.json b/versions/m-/mailio.json
new file mode 100644
index 000000000..da9c63cb0
--- /dev/null
+++ b/versions/m-/mailio.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "d0031c324fcbf44f0af73cb045551c01c5cc21e3",
+ "version": "0.20.0",
+ "port-version": 0
+ }
+ ]
+}