aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/atkmm
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/atkmm')
-rw-r--r--vcpkg/ports/atkmm/portfile.cmake32
-rw-r--r--vcpkg/ports/atkmm/vcpkg.json18
2 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/atkmm/portfile.cmake b/vcpkg/ports/atkmm/portfile.cmake
new file mode 100644
index 0000000..ac5af3c
--- /dev/null
+++ b/vcpkg/ports/atkmm/portfile.cmake
@@ -0,0 +1,32 @@
+if (VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
+endif()
+
+# Keep distfile, don't use GitLab!
+string(REGEX MATCH "^([0-9]*[.][0-9]*)" ATKMM_MAJOR_MINOR "${VERSION}")
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://ftp.gnome.org/pub/GNOME/sources/atkmm/${ATKMM_MAJOR_MINOR}/atkmm-${VERSION}.tar.xz"
+ FILENAME "atkmm-${VERSION}.tar.xz"
+ SHA512 2c2513b5c5fd7a5c9392727325c7551c766d4d51b8089fbea7e8043cde97d07c9b1f98a4a693f30835e4366e9236e28e092c2480a78415d77c5cb72e9432344f
+)
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE ${ARCHIVE}
+)
+
+vcpkg_configure_meson(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -Dbuild-documentation=false
+ -Dbuild-deprecated-api=true # Build deprecated API and include it in the library
+ -Dmsvc14x-parallel-installable=false # Use separate DLL and LIB filenames for Visual Studio 2017 and 2019
+)
+vcpkg_install_meson()
+
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME readme.txt)
+file(INSTALL "${SOURCE_PATH}/README.win32.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/atkmm/vcpkg.json b/vcpkg/ports/atkmm/vcpkg.json
new file mode 100644
index 0000000..d900466
--- /dev/null
+++ b/vcpkg/ports/atkmm/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "atkmm",
+ "version": "2.36.3",
+ "description": "atkmm is the official C++ interface for the ATK accessibility toolkit library. It may be used, for instance, by user interfaces implemented with gtkmm.",
+ "homepage": "https://www.gtkmm.org",
+ "license": "LGPL-2.1-or-later",
+ "supports": "!xbox",
+ "dependencies": [
+ "atk",
+ "gettext",
+ "glib",
+ "glibmm",
+ {
+ "name": "vcpkg-tool-meson",
+ "host": true
+ }
+ ]
+}