aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vsgxchange/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/vsgxchange/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/vsgxchange/portfile.cmake')
-rw-r--r--vcpkg/ports/vsgxchange/portfile.cmake42
1 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/vsgxchange/portfile.cmake b/vcpkg/ports/vsgxchange/portfile.cmake
new file mode 100644
index 0000000..3ef81d0
--- /dev/null
+++ b/vcpkg/ports/vsgxchange/portfile.cmake
@@ -0,0 +1,42 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO vsg-dev/vsgXchange
+ REF "v${VERSION}"
+ SHA512 674a5ab3429009b99e465b5f063714b410d4cfc47e83117d0ea7304ca23f850ec135155b2cfb50055745e5e6a58d3eb3e1849f021c499c49e59558deac5b2526
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ assimp vsgXchange_assimp
+ assimp VCPKG_LOCK_FIND_PACKAGE_assimp
+ curl vsgXchange_curl
+ curl VCPKG_LOCK_FIND_PACKAGE_CURL
+ freetype vsgXchange_freetype
+ freetype VCPKG_LOCK_FIND_PACKAGE_Freetype
+ gdal vsgXchange_GDAL
+ gdal VCPKG_LOCK_FIND_PACKAGE_GDAL
+ openexr vsgXchange_openexr
+ openexr VCPKG_LOCK_FIND_PACKAGE_OpenEXR
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ -DVCPKG_LOCK_FIND_PACKAGE_Doxygen=OFF
+ -DVCPKG_LOCK_FIND_PACKAGE_osg2vsg=OFF
+ -DVCPKG_LOCK_FIND_PACKAGE_draco=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/vsgXchange")
+
+vcpkg_copy_tools(TOOL_NAMES vsgconv AUTO_CLEAN)
+vcpkg_clean_executables_in_bin(FILE_NAMES vsgconvd)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")