aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/imcce-openfa/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/imcce-openfa/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/imcce-openfa/portfile.cmake')
-rwxr-xr-xvcpkg/ports/imcce-openfa/portfile.cmake25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/imcce-openfa/portfile.cmake b/vcpkg/ports/imcce-openfa/portfile.cmake
new file mode 100755
index 0000000..d24bff5
--- /dev/null
+++ b/vcpkg/ports/imcce-openfa/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_from_gitlab(
+ OUT_SOURCE_PATH SOURCE_PATH
+ GITLAB_URL https://gitlab.obspm.fr
+ REPO imcce_openfa/openfa
+ REF ${VERSION}
+ SHA512 8f4cd47c80afcf91514233ff77730d65d264a11d6fa7b6f4eb5382a336577af8ec683a582a14b7aa440fa19f9cdeb780a6010144ce94029b759cb4ee52f7c654
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME "openfa" CONFIG_PATH "lib/cmake/openfa")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
+endif()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME readme.md)
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")