2019-04-25 05:13:04 +08:00
|
|
|
vcpkg_from_github(
|
2019-03-06 04:03:17 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-04-25 05:13:04 +08:00
|
|
|
REPO texus/TGUI
|
2021-06-08 06:50:11 +08:00
|
|
|
REF 6515153c2466e6677ba933679b3dca6c283daf87
|
2021-05-18 14:24:46 +08:00
|
|
|
SHA512 109e64c114336979a4bd0d44765e4bc26cb4ecb6e4db92d7441230d148438b084d01cb56dd292f09a6fd28b0f7420044455ffb519147cc3aea71e322142cd9a0
|
|
|
|
HEAD_REF 0.9
|
|
|
|
PATCHES
|
|
|
|
fix-usage.patch
|
|
|
|
fix-dependencies.patch
|
2019-03-06 04:03:17 +08:00
|
|
|
)
|
|
|
|
|
2019-03-09 09:51:27 +08:00
|
|
|
set(TGUI_SHARE_PATH ${CURRENT_PACKAGES_DIR}/share/tgui)
|
|
|
|
set(TGUI_TOOLS_PATH ${CURRENT_PACKAGES_DIR}/tools/tgui)
|
|
|
|
|
2019-03-07 02:12:58 +08:00
|
|
|
# Enable static build
|
2019-03-09 09:51:27 +08:00
|
|
|
file(REMOVE "${SOURCE_PATH}/cmake/Modules/FindSFML.cmake")
|
2020-02-04 06:22:52 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" TGUI_SHARED_LIBS)
|
2019-03-09 09:51:27 +08:00
|
|
|
|
2021-05-18 14:24:46 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
sdl2 TGUI_HAS_BACKEND_SDL
|
|
|
|
sfml TGUI_HAS_BACKEND_SFML
|
|
|
|
tool TGUI_BUILD_GUI_BUILDER
|
|
|
|
)
|
2019-03-07 02:12:58 +08:00
|
|
|
|
2022-02-23 03:47:23 +08:00
|
|
|
vcpkg_cmake_configure(
|
2019-03-09 09:51:27 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-02-04 06:22:52 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2021-05-18 14:24:46 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2019-03-09 09:51:27 +08:00
|
|
|
-DTGUI_MISC_INSTALL_PREFIX=${TGUI_SHARE_PATH}
|
2019-03-07 02:12:58 +08:00
|
|
|
-DTGUI_SHARED_LIBS=${TGUI_SHARED_LIBS}
|
2021-06-08 06:50:11 +08:00
|
|
|
-DTGUI_BACKEND=Custom
|
2021-05-18 14:24:46 +08:00
|
|
|
-DTGUI_BUILD_EXAMPLES=OFF
|
2019-03-06 04:03:17 +08:00
|
|
|
)
|
|
|
|
|
2022-02-23 03:47:23 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/TGUI)
|
2019-03-06 04:03:17 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-05-18 14:24:46 +08:00
|
|
|
if("tool" IN_LIST FEATURES)
|
|
|
|
message(STATUS "Check for: ${TGUI_SHARE_PATH}/gui-builder/gui-builder${VCPKG_TARGET_EXECUTABLE_SUFFIX}")
|
|
|
|
if(EXISTS "${TGUI_SHARE_PATH}/gui-builder/gui-builder${VCPKG_TARGET_EXECUTABLE_SUFFIX}")
|
2019-03-09 09:51:27 +08:00
|
|
|
file(MAKE_DIRECTORY "${TGUI_TOOLS_PATH}")
|
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
|
|
|
file(RENAME
|
2021-05-18 14:24:46 +08:00
|
|
|
"${TGUI_SHARE_PATH}/gui-builder/gui-builder${VCPKG_TARGET_EXECUTABLE_SUFFIX}"
|
|
|
|
"${TGUI_TOOLS_PATH}/gui-builder${VCPKG_TARGET_EXECUTABLE_SUFFIX}")
|
2019-03-09 09:51:27 +08:00
|
|
|
# Need to copy `resources` and `themes` directories
|
|
|
|
file(COPY "${TGUI_SHARE_PATH}/gui-builder/resources" DESTINATION "${TGUI_TOOLS_PATH}")
|
|
|
|
file(COPY "${TGUI_SHARE_PATH}/gui-builder/themes" DESTINATION "${TGUI_TOOLS_PATH}")
|
|
|
|
file(REMOVE_RECURSE "${TGUI_SHARE_PATH}/gui-builder")
|
|
|
|
vcpkg_copy_tool_dependencies("${TGUI_TOOLS_PATH}")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2021-05-18 14:24:46 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/TGUI/extlibs/nanosvg" "${CURRENT_PACKAGES_DIR}/include/TGUI/extlibs/glad"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/include/TGUI/extlibs/stb"
|
|
|
|
) # All folders are empty
|
|
|
|
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/share/doc" "${CURRENT_PACKAGES_DIR}/share/${PORT}/doc")
|
2019-03-06 04:03:17 +08:00
|
|
|
|
2022-02-23 03:47:23 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2019-03-06 04:03:17 +08:00
|
|
|
# Handle copyright
|
2021-05-18 14:24:46 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|