aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSztergbaum Roman <roman.sztergbaum@epitech.eu>2018-08-25 07:29:51 +0200
committerRobert Schumacher <roschuma@microsoft.com>2018-08-24 22:29:51 -0700
commit04ba5aa07bddb72056a5a04ed705f54bc515923f (patch)
tree0ba731424796a83a586c8784783e3cf59f2c4daa
parent61253f80ad2074ee278e4279507c57d46cf000e6 (diff)
downloadvcpkg-04ba5aa07bddb72056a5a04ed705f54bc515923f.tar.gz
vcpkg-04ba5aa07bddb72056a5a04ed705f54bc515923f.zip
[imgui-sfml] introduce new port for imgui with sfml development (#4106)
* [imgui-sfml] introduce new port for imgui with sfml development * [imgui-sfml] rename the port * [milerius-sfml-imgui] Rename from sfml-imgui. Small cleanup
-rw-r--r--ports/milerius-sfml-imgui/CONTROL4
-rw-r--r--ports/milerius-sfml-imgui/portfile.cmake24
2 files changed, 28 insertions, 0 deletions
diff --git a/ports/milerius-sfml-imgui/CONTROL b/ports/milerius-sfml-imgui/CONTROL
new file mode 100644
index 000000000..a9f8e9096
--- /dev/null
+++ b/ports/milerius-sfml-imgui/CONTROL
@@ -0,0 +1,4 @@
+Source: milerius-sfml-imgui
+Version: 1.1
+Description: imgui dll for sfml usage
+Build-Depends: sfml (windows), imgui
diff --git a/ports/milerius-sfml-imgui/portfile.cmake b/ports/milerius-sfml-imgui/portfile.cmake
new file mode 100644
index 000000000..1520d5e35
--- /dev/null
+++ b/ports/milerius-sfml-imgui/portfile.cmake
@@ -0,0 +1,24 @@
+include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Milerius/imgui-sfml-shared
+ REF 1.1
+ SHA512 191184f7b302f643bd7c241b69d9f9edc0d03c6f5a0b3a49f57ac84f3828202f8065291fb17993073a2c07f1237ba491de677c47e2f8160dc70ea77f20eb1946
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/sfml-imgui)
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/sfml-imgui)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/sfml-imgui/LICENSE ${CURRENT_PACKAGES_DIR}/share/sfml-imgui/copyright)