aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxmlpp/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libxmlpp/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libxmlpp/portfile.cmake')
-rw-r--r--vcpkg/ports/libxmlpp/portfile.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/libxmlpp/portfile.cmake b/vcpkg/ports/libxmlpp/portfile.cmake
new file mode 100644
index 0000000..7a8861a
--- /dev/null
+++ b/vcpkg/ports/libxmlpp/portfile.cmake
@@ -0,0 +1,28 @@
+string(REGEX MATCH "^([0-9]*[.][0-9]*)" MAJOR_MINOR "${VERSION}")
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://ftp.gnome.org/pub/GNOME/sources/libxml++/${MAJOR_MINOR}/libxml++-${VERSION}.tar.xz"
+ "https://www.mirrorservice.org/sites/ftp.gnome.org/pub/GNOME/sources/libxml++/${MAJOR_MINOR}/libxml++-${VERSION}.tar.xz"
+ FILENAME "libxml++-${VERSION}.tar.xz"
+ SHA512 bba28edf40c60ac186ff1b704d9f4f41f73c1be3126cfb345005283b32bb5c9a596b8def64be8ad8e295e1e169bed91d120d5105cbbb6cecc4675d10b897dfe6
+)
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+)
+
+vcpkg_configure_meson(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -Dbuild-documentation=false
+ -Dbuild-manual=false
+ -Dvalidation=false # Validate the tutorial XML file
+ -Dbuild-examples=false
+ -Dbuild-tests=false
+ -Dbuild-deprecated-api=true # Build deprecated API and include it in the library
+)
+vcpkg_install_meson()
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_pdbs()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")