diff options
| author | Tri Tran <lepnit205@gmail.com> | 2019-03-05 14:03:17 -0600 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-03-05 12:03:17 -0800 |
| commit | e424790f73bc810397be60fa009b2c572a23f98b (patch) | |
| tree | 41242aede0f79d616b8fda2f13dbcb233596112c | |
| parent | a9f8430961f9d8bf2a9560767100bcc433004e24 (diff) | |
| download | vcpkg-e424790f73bc810397be60fa009b2c572a23f98b.tar.gz vcpkg-e424790f73bc810397be60fa009b2c572a23f98b.zip | |
[tgui] Add new package TGUI (fix #5505) (#5524)
* Add TGUI package
* [tgui] add missing sfml depends
| -rw-r--r-- | ports/tgui/CONTROL | 4 | ||||
| -rw-r--r-- | ports/tgui/portfile.cmake | 29 |
2 files changed, 33 insertions, 0 deletions
diff --git a/ports/tgui/CONTROL b/ports/tgui/CONTROL new file mode 100644 index 000000000..8b253080a --- /dev/null +++ b/ports/tgui/CONTROL @@ -0,0 +1,4 @@ +Source: tgui
+Version: 0.8.4
+Description: TGUI is an easy to use, cross-platform, c++ GUI for SFML.
+Build-Depends: sfml
diff --git a/ports/tgui/portfile.cmake b/ports/tgui/portfile.cmake new file mode 100644 index 000000000..dccecd0ac --- /dev/null +++ b/ports/tgui/portfile.cmake @@ -0,0 +1,29 @@ +include(vcpkg_common_functions)
+
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/texus/TGUI/archive/v0.8.4.tar.gz"
+ FILENAME "tgui-0.8.4.zip"
+ SHA512 52d38419a1650cbde517a5022e3b719b9fb4c3b336533c35aa839757f929b56e477d397d735170ba8be434afedc4c00bfcd4898d97da66015776b5f22bb04ea0
+)
+
+vcpkg_extract_source_archive_ex(
+ OUT_SOURCE_PATH SOURCE_PATH
+ ARCHIVE ${ARCHIVE}
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA # Disable this option if project cannot be built with Ninja
+ OPTIONS
+ -DTGUI_BUILD_GUI_BUILDER=OFF
+ -DTGUI_MISC_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}/share/tgui
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/TGUI)
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# Handle copyright
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/tgui/license.txt ${CURRENT_PACKAGES_DIR}/share/tgui/copyright)
|
