aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gz-cmake/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/gz-cmake/portfile.cmake')
-rw-r--r--vcpkg/ports/gz-cmake/portfile.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg/ports/gz-cmake/portfile.cmake b/vcpkg/ports/gz-cmake/portfile.cmake
new file mode 100644
index 0000000..259e108
--- /dev/null
+++ b/vcpkg/ports/gz-cmake/portfile.cmake
@@ -0,0 +1,18 @@
+string(REGEX MATCH "^[0-9]+" VERSION_MAJOR ${VERSION})
+string(REGEX MATCH "^gz-([a-z-]+)" MATCHED_VALUE ${PORT})
+set(PACKAGE_NAME ${CMAKE_MATCH_1})
+
+ignition_modular_library(
+ NAME ${PACKAGE_NAME}
+ REF ${PORT}${VERSION_MAJOR}_${VERSION}
+ VERSION ${VERSION}
+ SHA512 d761aba28fc79af6bbb021215367e48e1b7449885d0410a0cabd09674a59b17132810ebb796fe0e1ddefc1510aba832fb192cc908156d8eae15e35c1afe464c7
+ PATCHES
+ find-modules.diff
+ gz-find-package.diff
+ gz-import-target.diff
+ lock-dependencies.diff
+ pkg-check-modules.diff
+)
+
+configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)