aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gcem
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/gcem')
-rw-r--r--vcpkg/ports/gcem/portfile.cmake21
-rw-r--r--vcpkg/ports/gcem/vcpkg.json17
2 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/gcem/portfile.cmake b/vcpkg/ports/gcem/portfile.cmake
new file mode 100644
index 0000000..8c91780
--- /dev/null
+++ b/vcpkg/ports/gcem/portfile.cmake
@@ -0,0 +1,21 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO kthohr/gcem
+ REF "v${VERSION}"
+ SHA512 b9bbf16cfc3488a99ab371db36879bdde1699f0890db609278c03fb161cdffef0fbd34dbbf6004d6352e9e90c49e08e6b77357c4a424b0b5e174198b42dc049c
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gcem)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/gcem/vcpkg.json b/vcpkg/ports/gcem/vcpkg.json
new file mode 100644
index 0000000..9580206
--- /dev/null
+++ b/vcpkg/ports/gcem/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "gcem",
+ "version": "1.18.0",
+ "description": "A C++ compile-time math library using generalized constant expressions",
+ "homepage": "https://www.kthohr.com/gcem.html",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}