diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-11-06 10:47:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-06 10:47:34 -0800 |
| commit | 531d820709b452f37b11daaca3611721d74e3ffe (patch) | |
| tree | 920ab156e596799fd6a69bfeb1cb91203ec27df3 | |
| parent | 7fa618093d76b160b2c4d02e4a5bba1d38c674d3 (diff) | |
| parent | 6e7eb0b787b3a88ae6f5a9394560622fafc7c5ba (diff) | |
| download | vcpkg-531d820709b452f37b11daaca3611721d74e3ffe.tar.gz vcpkg-531d820709b452f37b11daaca3611721d74e3ffe.zip | |
Merge pull request #2138 from Mixaill/sfgui-032
[sfgui] add version 0.3.2
| -rw-r--r-- | ports/sfgui/CONTROL | 4 | ||||
| -rw-r--r-- | ports/sfgui/portfile.cmake | 43 |
2 files changed, 47 insertions, 0 deletions
diff --git a/ports/sfgui/CONTROL b/ports/sfgui/CONTROL new file mode 100644 index 000000000..39962e0e5 --- /dev/null +++ b/ports/sfgui/CONTROL @@ -0,0 +1,4 @@ +Source: sfgui +Version: 0.3.2-1 +Description: simple and fast graphical user interface library +Build-Depends: sfml diff --git a/ports/sfgui/portfile.cmake b/ports/sfgui/portfile.cmake new file mode 100644 index 000000000..7764a60a1 --- /dev/null +++ b/ports/sfgui/portfile.cmake @@ -0,0 +1,43 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO TankOs/SFGUI + REF 0.3.2 + SHA512 cd97e421695f6189995c1b7a4180e3738bf785abae37d3eb51ac6d687a88a26a1f088863b37e065edaff6ba43eea379e423b31118324c4daa65dba0b3e904869 + HEAD_REF master +) + +if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) + set(SFGUI_BUILD_SHARED_LIBS ON) + set(SFML_STATIC_LIBRARIES OFF) +else() + set(SFGUI_BUILD_SHARED_LIBS OFF) + set(SFML_STATIC_LIBRARIES ON) +endif() + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DSFGUI_BUILD_DOC=OFF + -DSFGUI_BUILD_EXAMPLES=OFF + -DSFGUI_BUILD_SHARED_LIBS=${SFGUI_BUILD_SHARED_LIBS} + -DSFML_STATIC_LIBRARIES=${SFML_STATIC_LIBRARIES} +) + +vcpkg_install_cmake() +vcpkg_copy_pdbs() + +file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/sfgui RENAME copyright) + +file(RENAME ${CURRENT_PACKAGES_DIR}/cmake/Modules/FindSFGUI.cmake ${CURRENT_PACKAGES_DIR}/share/sfgui/FindSFGUI.cmake) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/cmake/Modules) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/cmake) + +file(GLOB_RECURSE SFGUI_DOC_RELEASE ${CURRENT_PACKAGES_DIR}/*.md) +file(GLOB_RECURSE SFGUI_DOC_DEBUG ${CURRENT_PACKAGES_DIR}/debug/*.md) +file(REMOVE ${SFGUI_DOC_RELEASE} ${SFGUI_DOC_DEBUG}) |
