diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/at-spi2-core | |
Diffstat (limited to 'vcpkg/ports/at-spi2-core')
| -rw-r--r-- | vcpkg/ports/at-spi2-core/portfile.cmake | 45 | ||||
| -rw-r--r-- | vcpkg/ports/at-spi2-core/vcpkg.json | 27 |
2 files changed, 72 insertions, 0 deletions
diff --git a/vcpkg/ports/at-spi2-core/portfile.cmake b/vcpkg/ports/at-spi2-core/portfile.cmake new file mode 100644 index 0000000..3084f71 --- /dev/null +++ b/vcpkg/ports/at-spi2-core/portfile.cmake @@ -0,0 +1,45 @@ +if(VCPKG_TARGET_IS_LINUX) + message(STATUS "${PORT} currently requires the following libraries from the system package manager:\n libxi-dev\n libxtst-dev\n\nThese can be installed on Ubuntu systems via apt-get install libxi-dev libxtst-dev") +endif() + +vcpkg_from_gitlab( + OUT_SOURCE_PATH SOURCE_PATH + GITLAB_URL https://gitlab.gnome.org + REPO GNOME/at-spi2-core + REF AT_SPI2_CORE_2_44_1 + SHA512 4e98b76e019f33af698a5e2b7ae7ce17ce0ff57784b4d505fe4bad58b097080899c1ca82b443502068c5504b60886e2d4a341bba833e0279ebef352211bf3813 +) + +vcpkg_configure_meson( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -Dintrospection=no + ADDITIONAL_BINARIES + glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal' + glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums' +) + +vcpkg_install_meson() + +vcpkg_copy_pdbs() + +vcpkg_fixup_pkgconfig() + +if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/atspi-2.pc" + "-DG_LOG_DOMAIN=\"dbind\"" "" + ) +endif() +if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/atspi-2.pc" + "-DG_LOG_DOMAIN=\"dbind\"" "" + ) +endif() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/share/defaults") + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() diff --git a/vcpkg/ports/at-spi2-core/vcpkg.json b/vcpkg/ports/at-spi2-core/vcpkg.json new file mode 100644 index 0000000..bd862d5 --- /dev/null +++ b/vcpkg/ports/at-spi2-core/vcpkg.json @@ -0,0 +1,27 @@ +{ + "name": "at-spi2-core", + "version": "2.44.1", + "port-version": 4, + "description": "Base DBus XML interfaces for accessibility, the accessibility registry daemon, and atspi library.", + "homepage": "https://www.gtk.org/", + "license": null, + "supports": "linux", + "dependencies": [ + { + "name": "dbus", + "platform": "linux" + }, + "glib", + { + "name": "glib", + "host": true + }, + "libx11", + "libxi", + "libxtst", + { + "name": "vcpkg-tool-meson", + "host": true + } + ] +} |