diff options
| author | wangli28 <47812810+wangli28@users.noreply.github.com> | 2019-06-07 02:03:08 +0000 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-06-06 19:03:08 -0700 |
| commit | 5ef8bb9abc0f6a9551ac48006fc04b9d91cc5716 (patch) | |
| tree | 7c9ddc14de53296dad369cb56c3bfa4063a09b8c /ports/forge | |
| parent | b9cf3384c38585273319ca2111629e955f8c4097 (diff) | |
| download | vcpkg-5ef8bb9abc0f6a9551ac48006fc04b9d91cc5716.tar.gz vcpkg-5ef8bb9abc0f6a9551ac48006fc04b9d91cc5716.zip | |
[draco, flatbuffers, forge] Update to new version (#6796)
Diffstat (limited to 'ports/forge')
| -rw-r--r-- | ports/forge/CONTROL | 2 | ||||
| -rw-r--r-- | ports/forge/fix-static_build.patch | 28 | ||||
| -rw-r--r-- | ports/forge/forge_targets_fix.patch | 115 | ||||
| -rw-r--r-- | ports/forge/portfile.cmake | 13 | ||||
| -rw-r--r-- | ports/forge/static_build.patch | 39 |
5 files changed, 33 insertions, 164 deletions
diff --git a/ports/forge/CONTROL b/ports/forge/CONTROL index f4317486e..595f6d2a2 100644 --- a/ports/forge/CONTROL +++ b/ports/forge/CONTROL @@ -1,4 +1,4 @@ Source: forge
-Version: 1.0.3-1
+Version: 1.0.4-1 Description: Helps with high performance visualizations involving OpenGL-CUDA/OpenCL interop.
Build-Depends: glfw3, glm, glbinding, freetype, boost-functional, freeimage, fontconfig (!windows)
diff --git a/ports/forge/fix-static_build.patch b/ports/forge/fix-static_build.patch new file mode 100644 index 000000000..67f498cd8 --- /dev/null +++ b/ports/forge/fix-static_build.patch @@ -0,0 +1,28 @@ +diff --git a/extern/glad/CMakeLists.txt b/extern/glad/CMakeLists.txt +index c8c8d86..27adf86 100644 +--- a/extern/glad/CMakeLists.txt ++++ b/extern/glad/CMakeLists.txt +@@ -2,15 +2,19 @@ add_library(forge_glad_interface INTERFACE) + + target_include_directories(forge_glad_interface + INTERFACE +- ${CMAKE_CURRENT_SOURCE_DIR}/include ++ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> + ) + + target_sources(forge_glad_interface + INTERFACE +- ${CMAKE_CURRENT_SOURCE_DIR}/src/glad.c ++ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/glad.c> + ) + + target_link_libraries(forge_glad_interface + INTERFACE +- ${CMAKE_DL_LIBS} ++ $<BUILD_INTERFACE:${CMAKE_DL_LIBS}> + ) ++ ++if (NOT BUILD_SHARED_LIBS) ++ install(TARGETS forge_glad_interface EXPORT ForgeTargets) ++endif () +\ No newline at end of file diff --git a/ports/forge/forge_targets_fix.patch b/ports/forge/forge_targets_fix.patch deleted file mode 100644 index f2d8371d2..000000000 --- a/ports/forge/forge_targets_fix.patch +++ /dev/null @@ -1,115 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index c7236a6..b4b910a 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -110,64 +110,63 @@ install(DIRECTORY include/ - PATTERN "*.h" - PATTERN "*.hpp" - PATTERN ".gitignore" EXCLUDE) --# The Forge version header is generated and thus need to be --# included explicitly -+ - install(FILES ${Forge_BINARY_DIR}/include/fg/version.h - DESTINATION "${FG_INSTALL_INC_DIR}/fg/" - COMPONENT headers) - --install(EXPORT ForgeTargets -- NAMESPACE Forge:: -- DESTINATION ${FG_INSTALL_CMAKE_DIR} -- COMPONENT forge) -- --export(EXPORT ForgeTargets -- NAMESPACE Forge:: -- FILE cmake/ForgeTargets.cmake) -+# install the examples irrespective of the FG_BUILD_EXAMPLES value -+# only the examples source files are installed, so the installation of these -+# source files does not depend on FG_BUILD_EXAMPLES -+# when FG_BUILD_EXAMPLES is OFF, the examples source is installed without -+# building the example executables -+install(DIRECTORY examples/ #NOTE The slash at the end is important -+ DESTINATION ${FG_INSTALL_EXAMPLE_DIR} -+ COMPONENT examples) - - include(CMakePackageConfigHelpers) - write_basic_package_version_file( -- "${Forge_BINARY_DIR}/cmake/ForgeConfigVersion.cmake" -+ "${Forge_BINARY_DIR}/ForgeConfigVersion.cmake" - COMPATIBILITY SameMajorVersion) - --# This config file will be installed so we need to set the install_destination --# path relative to the install path -+ -+# export install config file - set(INCLUDE_DIRS include) - set(CMAKE_DIR ${FG_INSTALL_CMAKE_DIR}) - configure_package_config_file( -- "${PROJECT_SOURCE_DIR}/CMakeModules/ForgeConfig.cmake.in" -- "cmake/install/ForgeConfig.cmake" -- INSTALL_DESTINATION "${FG_INSTALL_CMAKE_DIR}" -- PATH_VARS INCLUDE_DIRS CMAKE_DIR) -- --install(FILES ${Forge_BINARY_DIR}/cmake/install/ForgeConfig.cmake -- ${Forge_BINARY_DIR}/cmake/ForgeConfigVersion.cmake -+ "${PROJECT_SOURCE_DIR}/CMakeModules/ForgeConfig.cmake.in" -+ "cmake_install/ForgeConfig.cmake" -+ INSTALL_DESTINATION "${FG_INSTALL_CMAKE_DIR}" -+ PATH_VARS INCLUDE_DIRS CMAKE_DIR -+) -+install(FILES ${Forge_BINARY_DIR}/cmake_install/ForgeConfig.cmake -+ ${Forge_BINARY_DIR}/ForgeConfigVersion.cmake - DESTINATION ${FG_INSTALL_CMAKE_DIR} -- COMPONENT cmake) -+ COMPONENT cmake -+) -+install(EXPORT ForgeTargets -+ NAMESPACE Forge:: -+ DESTINATION ${FG_INSTALL_CMAKE_DIR} -+ COMPONENT forge -+) - --# Following file will be used to create the config file for the build directory. --# These config files will be used by the examples to find the Forge --# libraries -+ -+# export build tree targets config file - set(INCLUDE_DIRS "${Forge_SOURCE_DIR}/include" "${Forge_BINARY_DIR}/include") --set(CMAKE_DIR "${Forge_BINARY_DIR}/cmake") -+set(CMAKE_DIR "${Forge_BINARY_DIR}") - configure_package_config_file( -- "${PROJECT_SOURCE_DIR}/CMakeModules/ForgeConfig.cmake.in" -- "cmake/ForgeConfig.cmake" -- INSTALL_DESTINATION "${Forge_BINARY_DIR}/cmake" -- PATH_VARS INCLUDE_DIRS CMAKE_DIR -- INSTALL_PREFIX "${Forge_BINARY_DIR}") -+ "${PROJECT_SOURCE_DIR}/CMakeModules/ForgeConfig.cmake.in" -+ "ForgeConfig.cmake" -+ INSTALL_DESTINATION "${Forge_BINARY_DIR}" -+ PATH_VARS INCLUDE_DIRS CMAKE_DIR -+ INSTALL_PREFIX "${Forge_BINARY_DIR}" -+) -+export(EXPORT ForgeTargets -+ NAMESPACE Forge:: -+ FILE ForgeTargets.cmake -+) -+#export(PACKAGE Forge) - --#-------------------------------------------------------------------- --# Install examples --#-------------------------------------------------------------------- --# install the examples irrespective of the FG_BUILD_EXAMPLES value --# only the examples source files are installed, so the installation of these --# source files does not depend on FG_BUILD_EXAMPLES --# when FG_BUILD_EXAMPLES is OFF, the examples source is installed without --# building the example executables --install(DIRECTORY examples/ #NOTE The slash at the end is important -- DESTINATION ${FG_INSTALL_EXAMPLE_DIR} -- COMPONENT examples) - - include(CPackConfig) - -@@ -177,4 +176,4 @@ conditional_directory(FG_BUILD_EXAMPLES examples) - mark_as_advanced( - pkgcfg_lib_FontConfigPkg_freetype - pkgcfg_lib_FontConfigPkg_fontconfig -- ) -+) diff --git a/ports/forge/portfile.cmake b/ports/forge/portfile.cmake index cd7c2ca54..24df90dce 100644 --- a/ports/forge/portfile.cmake +++ b/ports/forge/portfile.cmake @@ -4,18 +4,13 @@ if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") message(FATAL_ERROR "This port currently only supports x64 architecture")
endif()
-set(PATCHES forge_targets_fix.patch)
-if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
- list(APPEND PATCHES static_build.patch)
-endif()
-
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO arrayfire/forge
- REF v1.0.3
- SHA512 e1a7688c1c3ab4659401463c5d025917b6e5766129446aefbebe0d580756cd2cc07256ddda9b20899690765220e5467b9209e00476c80ea6a51a1a0c0e9da616
+ REF 650bf611de102a2cc0c32dba7646f8128f0300c8 + SHA512 2093464db0f3a7f0178f65bed37986a4df1117f1d7ad65157d525584490cdf234475f01ed1a2003a9e54bdc3b9e2e450808044a264c2284d67b8c2a353400027
HEAD_REF master
- PATCHES ${PATCHES}
+ PATCHES fix-static_build.patch
)
vcpkg_configure_cmake(
@@ -41,4 +36,4 @@ file(REMOVE_RECURSE ${DLLS}
)
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/forge RENAME copyright)
+file(INSTALL ${SOURCE_PATH}/.github/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/forge RENAME copyright)
diff --git a/ports/forge/static_build.patch b/ports/forge/static_build.patch deleted file mode 100644 index 387811ce1..000000000 --- a/ports/forge/static_build.patch +++ /dev/null @@ -1,39 +0,0 @@ -diff --git a/src/backend/opengl/CMakeLists.txt b/src/backend/opengl/CMakeLists.txt -index 1aeec1e..52eff05 100755 ---- a/src/backend/opengl/CMakeLists.txt -+++ b/src/backend/opengl/CMakeLists.txt -@@ -142,7 +142,7 @@ install(TARGETS forge - INCLUDES DESTINATION ${FG_INSTALL_INC_DIR}) - - # install dependencies --if (WIN32) -+if (WIN32 AND BUILD_SHARED_LIBS) - if (FG_WITH_FREEIMAGE AND NOT FG_USE_STATIC_FREEIMAGE) - install(FILES $<TARGET_FILE:FreeImage::FreeImage> - DESTINATION ${FG_INSTALL_BIN_DIR} -diff --git a/src/backend/opengl/glfw/CMakeLists.txt b/src/backend/opengl/glfw/CMakeLists.txt -index caf4913..3c8d71c 100644 ---- a/src/backend/opengl/glfw/CMakeLists.txt -+++ b/src/backend/opengl/glfw/CMakeLists.txt -@@ -24,7 +24,7 @@ if (NOT BUILD_SHARED_LIBS) - install(TARGETS forge_wtk_interface EXPORT ForgeTargets) - endif () - --if (WIN32) -+if (WIN32 AND BUILD_SHARED_LIBS) - install(FILES $<TARGET_FILE:glfw> - DESTINATION ${FG_INSTALL_BIN_DIR} - COMPONENT dependencies) -diff --git a/src/backend/opengl/sdl/CMakeLists.txt b/src/backend/opengl/sdl/CMakeLists.txt -index d8cd312..d55f27d 100644 ---- a/src/backend/opengl/sdl/CMakeLists.txt -+++ b/src/backend/opengl/sdl/CMakeLists.txt -@@ -24,7 +24,7 @@ if (NOT BUILD_SHARED_LIBS) - install(TARGETS forge_wtk_interface EXPORT ForgeTargets) - endif () - --if (WIN32) -+if (WIN32 AND BUILD_SHARED_LIBS) - install(FILES $<TARGET_FILE:SDL2::SDL2> - DESTINATION ${FG_INSTALL_BIN_DIR} - COMPONENT dependencies) |
