mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-27 03:24:17 +01:00
vcpkg: Update dependencies (#1229)
This commit is contained in:
parent
16070458ed
commit
6772b1993f
2
dependencies/vcpkg
vendored
2
dependencies/vcpkg
vendored
@ -1 +1 @@
|
|||||||
Subproject commit cbf4a6641528cee6f172328984576f51698de726
|
Subproject commit a4275b7eee79fb24ec2e135481ef5fce8b41c339
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/SDL2Config.cmake.in b/SDL2Config.cmake.in
|
|
||||||
index cc8bcf26d..ead829767 100644
|
|
||||||
--- a/SDL2Config.cmake.in
|
|
||||||
+++ b/SDL2Config.cmake.in
|
|
||||||
@@ -35,7 +35,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/sdlfind.cmake")
|
|
||||||
|
|
||||||
set(SDL_ALSA @SDL_ALSA@)
|
|
||||||
set(SDL_ALSA_SHARED @SDL_ALSA_SHARED@)
|
|
||||||
-if(SDL_ALSA AND NOT SDL_ALSA_SHARED AND TARGET SDL2::SDL2-static)
|
|
||||||
+if(SDL_ALSA)
|
|
||||||
sdlFindALSA()
|
|
||||||
endif()
|
|
||||||
unset(SDL_ALSA)
|
|
13
dependencies/vcpkg_overlay_ports/sdl2/deps.patch
vendored
13
dependencies/vcpkg_overlay_ports/sdl2/deps.patch
vendored
@ -1,13 +0,0 @@
|
|||||||
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
|
|
||||||
index 65a98efbe..2f99f28f1 100644
|
|
||||||
--- a/cmake/sdlchecks.cmake
|
|
||||||
+++ b/cmake/sdlchecks.cmake
|
|
||||||
@@ -352,7 +352,7 @@ endmacro()
|
|
||||||
# - HAVE_SDL_LOADSO opt
|
|
||||||
macro(CheckLibSampleRate)
|
|
||||||
if(SDL_LIBSAMPLERATE)
|
|
||||||
- find_package(SampleRate QUIET)
|
|
||||||
+ find_package(SampleRate CONFIG REQUIRED)
|
|
||||||
if(SampleRate_FOUND AND TARGET SampleRate::samplerate)
|
|
||||||
set(HAVE_LIBSAMPLERATE TRUE)
|
|
||||||
set(HAVE_LIBSAMPLERATE_H TRUE)
|
|
137
dependencies/vcpkg_overlay_ports/sdl2/portfile.cmake
vendored
137
dependencies/vcpkg_overlay_ports/sdl2/portfile.cmake
vendored
@ -1,137 +0,0 @@
|
|||||||
vcpkg_from_github(
|
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
|
||||||
REPO libsdl-org/SDL
|
|
||||||
REF "release-${VERSION}"
|
|
||||||
SHA512 c7635a83a52f3970a372b804a8631f0a7e6b8d89aed1117bcc54a2040ad0928122175004cf2b42cf84a4fd0f86236f779229eaa63dfa6ca9c89517f999c5ff1c
|
|
||||||
HEAD_REF main
|
|
||||||
PATCHES
|
|
||||||
deps.patch
|
|
||||||
alsa-dep-fix.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SDL_STATIC)
|
|
||||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SDL_SHARED)
|
|
||||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" FORCE_STATIC_VCRT)
|
|
||||||
|
|
||||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
||||||
FEATURES
|
|
||||||
alsa SDL_ALSA
|
|
||||||
alsa CMAKE_REQUIRE_FIND_PACKAGE_ALSA
|
|
||||||
ibus SDL_IBUS
|
|
||||||
samplerate SDL_LIBSAMPLERATE
|
|
||||||
vulkan SDL_VULKAN
|
|
||||||
wayland SDL_WAYLAND
|
|
||||||
x11 SDL_X11
|
|
||||||
INVERTED_FEATURES
|
|
||||||
alsa CMAKE_DISABLE_FIND_PACKAGE_ALSA
|
|
||||||
)
|
|
||||||
|
|
||||||
if ("x11" IN_LIST FEATURES)
|
|
||||||
message(WARNING "You will need to install Xorg dependencies to use feature x11:\nsudo apt install libx11-dev libxft-dev libxext-dev\n")
|
|
||||||
endif()
|
|
||||||
if ("wayland" IN_LIST FEATURES)
|
|
||||||
message(WARNING "You will need to install Wayland dependencies to use feature wayland:\nsudo apt install libwayland-dev libxkbcommon-dev libegl1-mesa-dev\n")
|
|
||||||
endif()
|
|
||||||
if ("ibus" IN_LIST FEATURES)
|
|
||||||
message(WARNING "You will need to install ibus dependencies to use feature ibus:\nsudo apt install libibus-1.0-dev\n")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_UWP)
|
|
||||||
set(configure_opts WINDOWS_USE_MSBUILD)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_cmake_configure(
|
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
|
||||||
${configure_opts}
|
|
||||||
OPTIONS ${FEATURE_OPTIONS}
|
|
||||||
-DSDL_STATIC=${SDL_STATIC}
|
|
||||||
-DSDL_SHARED=${SDL_SHARED}
|
|
||||||
-DSDL_FORCE_STATIC_VCRT=${FORCE_STATIC_VCRT}
|
|
||||||
-DSDL_LIBC=ON
|
|
||||||
-DSDL_TEST=OFF
|
|
||||||
-DSDL_INSTALL_CMAKEDIR="cmake"
|
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
|
||||||
-DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON
|
|
||||||
-DSDL_LIBSAMPLERATE_SHARED=OFF
|
|
||||||
MAYBE_UNUSED_VARIABLES
|
|
||||||
SDL_FORCE_STATIC_VCRT
|
|
||||||
PKG_CONFIG_USE_CMAKE_PREFIX_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_cmake_install()
|
|
||||||
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
|
||||||
|
|
||||||
file(REMOVE_RECURSE
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/bin/sdl2-config"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/bin/sdl2-config"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/SDL2.framework"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/SDL2.framework"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/licenses"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/aclocal"
|
|
||||||
)
|
|
||||||
|
|
||||||
file(GLOB BINS "${CURRENT_PACKAGES_DIR}/debug/bin/*" "${CURRENT_PACKAGES_DIR}/bin/*")
|
|
||||||
if(NOT BINS)
|
|
||||||
file(REMOVE_RECURSE
|
|
||||||
"${CURRENT_PACKAGES_DIR}/bin"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_UWP AND NOT VCPKG_TARGET_IS_MINGW)
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
||||||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib/manual-link")
|
|
||||||
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/SDL2main.lib" "${CURRENT_PACKAGES_DIR}/lib/manual-link/SDL2main.lib")
|
|
||||||
endif()
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/lib/manual-link")
|
|
||||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/SDL2maind.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/manual-link/SDL2maind.lib")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
file(GLOB SHARE_FILES "${CURRENT_PACKAGES_DIR}/share/sdl2/*.cmake")
|
|
||||||
foreach(SHARE_FILE ${SHARE_FILES})
|
|
||||||
vcpkg_replace_string("${SHARE_FILE}" "lib/SDL2main" "lib/manual-link/SDL2main")
|
|
||||||
endforeach()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
|
||||||
|
|
||||||
set(DYLIB_COMPATIBILITY_VERSION_REGEX "set\\(DYLIB_COMPATIBILITY_VERSION (.+)\\)")
|
|
||||||
set(DYLIB_CURRENT_VERSION_REGEX "set\\(DYLIB_CURRENT_VERSION (.+)\\)")
|
|
||||||
file(STRINGS "${SOURCE_PATH}/CMakeLists.txt" DYLIB_COMPATIBILITY_VERSION REGEX ${DYLIB_COMPATIBILITY_VERSION_REGEX})
|
|
||||||
file(STRINGS "${SOURCE_PATH}/CMakeLists.txt" DYLIB_CURRENT_VERSION REGEX ${DYLIB_CURRENT_VERSION_REGEX})
|
|
||||||
string(REGEX REPLACE ${DYLIB_COMPATIBILITY_VERSION_REGEX} "\\1" DYLIB_COMPATIBILITY_VERSION "${DYLIB_COMPATIBILITY_VERSION}")
|
|
||||||
string(REGEX REPLACE ${DYLIB_CURRENT_VERSION_REGEX} "\\1" DYLIB_CURRENT_VERSION "${DYLIB_CURRENT_VERSION}")
|
|
||||||
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2main" "-lSDL2maind")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2 " "-lSDL2d ")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2-static " "-lSDL2-staticd ")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" AND VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/sdl2.pc" "-lSDL2-static " " ")
|
|
||||||
endif()
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2-staticd " " ")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_UWP)
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/sdl2.pc" "$<$<CONFIG:Debug>:d>.lib" "")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/sdl2.pc" "-l-nodefaultlib:" "-nodefaultlib:")
|
|
||||||
endif()
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "$<$<CONFIG:Debug>:d>.lib" "d")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-l-nodefaultlib:" "-nodefaultlib:")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_fixup_pkgconfig()
|
|
||||||
|
|
||||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
||||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
|
8
dependencies/vcpkg_overlay_ports/sdl2/usage
vendored
8
dependencies/vcpkg_overlay_ports/sdl2/usage
vendored
@ -1,8 +0,0 @@
|
|||||||
sdl2 provides CMake targets:
|
|
||||||
|
|
||||||
find_package(SDL2 CONFIG REQUIRED)
|
|
||||||
target_link_libraries(main
|
|
||||||
PRIVATE
|
|
||||||
$<TARGET_NAME_IF_EXISTS:SDL2::SDL2main>
|
|
||||||
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static>
|
|
||||||
)
|
|
68
dependencies/vcpkg_overlay_ports/sdl2/vcpkg.json
vendored
68
dependencies/vcpkg_overlay_ports/sdl2/vcpkg.json
vendored
@ -1,68 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "sdl2",
|
|
||||||
"version": "2.30.0",
|
|
||||||
"description": "Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.",
|
|
||||||
"homepage": "https://www.libsdl.org/download-2.0.php",
|
|
||||||
"license": "Zlib",
|
|
||||||
"dependencies": [
|
|
||||||
{
|
|
||||||
"name": "dbus",
|
|
||||||
"default-features": false,
|
|
||||||
"platform": "linux"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake",
|
|
||||||
"host": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake-config",
|
|
||||||
"host": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default-features": [
|
|
||||||
{
|
|
||||||
"name": "ibus",
|
|
||||||
"platform": "linux"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "wayland",
|
|
||||||
"platform": "linux"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "x11",
|
|
||||||
"platform": "linux"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"features": {
|
|
||||||
"alsa": {
|
|
||||||
"description": "Support for alsa audio",
|
|
||||||
"dependencies": [
|
|
||||||
{
|
|
||||||
"name": "alsa",
|
|
||||||
"platform": "linux"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"ibus": {
|
|
||||||
"description": "Build with ibus IME support",
|
|
||||||
"supports": "linux"
|
|
||||||
},
|
|
||||||
"samplerate": {
|
|
||||||
"description": "Use libsamplerate for audio rate conversion",
|
|
||||||
"dependencies": [
|
|
||||||
"libsamplerate"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"vulkan": {
|
|
||||||
"description": "Vulkan functionality for SDL"
|
|
||||||
},
|
|
||||||
"wayland": {
|
|
||||||
"description": "Build with Wayland support",
|
|
||||||
"supports": "linux"
|
|
||||||
},
|
|
||||||
"x11": {
|
|
||||||
"description": "Build with X11 support",
|
|
||||||
"supports": "!windows"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/cmake/FindCMath.cmake b/cmake/FindCMath.cmake
|
|
||||||
index ad92218..dd42aba 100644
|
|
||||||
--- a/cmake/FindCMath.cmake
|
|
||||||
+++ b/cmake/FindCMath.cmake
|
|
||||||
@@ -31,7 +31,7 @@ include(CheckSymbolExists)
|
|
||||||
include(CheckLibraryExists)
|
|
||||||
|
|
||||||
check_symbol_exists(pow "math.h" CMath_HAVE_LIBC_POW)
|
|
||||||
-find_library(CMath_LIBRARY NAMES m)
|
|
||||||
+find_library(CMath_LIBRARY NAMES m PATHS ${CMAKE_C_IMPLICIT_LINK_DIRECTORIES})
|
|
||||||
|
|
||||||
if(NOT CMath_HAVE_LIBC_POW)
|
|
||||||
set(CMAKE_REQUIRED_LIBRARIES_SAVE ${CMAKE_REQUIRED_LIBRARIES})
|
|
@ -1,86 +0,0 @@
|
|||||||
vcpkg_from_gitlab(
|
|
||||||
GITLAB_URL https://gitlab.com
|
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
|
||||||
REPO libtiff/libtiff
|
|
||||||
REF "v${VERSION}"
|
|
||||||
SHA512 ef2f1d424219d9e245069b7d23e78f5e817cf6ee516d46694915ab6c8909522166f84997513d20a702f4e52c3f18467813935b328fafa34bea5156dee00f66fa
|
|
||||||
HEAD_REF master
|
|
||||||
PATCHES
|
|
||||||
FindCMath.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
||||||
FEATURES
|
|
||||||
cxx cxx
|
|
||||||
jpeg jpeg
|
|
||||||
jpeg CMAKE_REQUIRE_FIND_PACKAGE_JPEG
|
|
||||||
libdeflate libdeflate
|
|
||||||
libdeflate CMAKE_REQUIRE_FIND_PACKAGE_Deflate
|
|
||||||
lzma lzma
|
|
||||||
lzma CMAKE_REQUIRE_FIND_PACKAGE_liblzma
|
|
||||||
tools tiff-tools
|
|
||||||
webp webp
|
|
||||||
webp CMAKE_REQUIRE_FIND_PACKAGE_WebP
|
|
||||||
zip zlib
|
|
||||||
zip CMAKE_REQUIRE_FIND_PACKAGE_ZLIB
|
|
||||||
zstd zstd
|
|
||||||
zstd CMAKE_REQUIRE_FIND_PACKAGE_ZSTD
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_cmake_configure(
|
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
|
||||||
OPTIONS
|
|
||||||
${FEATURE_OPTIONS}
|
|
||||||
-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON
|
|
||||||
-Dtiff-docs=OFF
|
|
||||||
-Dtiff-contrib=OFF
|
|
||||||
-Dtiff-tests=OFF
|
|
||||||
-Djbig=OFF # This is disabled by default due to GPL/Proprietary licensing.
|
|
||||||
-Djpeg12=OFF
|
|
||||||
-Dlerc=OFF
|
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_OpenGL=ON
|
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_GLUT=ON
|
|
||||||
-DZSTD_HAVE_DECOMPRESS_STREAM=ON
|
|
||||||
-DHAVE_JPEGTURBO_DUAL_MODE_8_12=OFF
|
|
||||||
OPTIONS_DEBUG
|
|
||||||
-DCMAKE_DEBUG_POSTFIX=d # tiff sets "d" for MSVC only.
|
|
||||||
MAYBE_UNUSED_VARIABLES
|
|
||||||
CMAKE_DISABLE_FIND_PACKAGE_GLUT
|
|
||||||
CMAKE_DISABLE_FIND_PACKAGE_OpenGL
|
|
||||||
ZSTD_HAVE_DECOMPRESS_STREAM
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_cmake_install()
|
|
||||||
|
|
||||||
# CMake config wasn't packaged in the past and is not yet usable now,
|
|
||||||
# cf. https://gitlab.com/libtiff/libtiff/-/merge_requests/496
|
|
||||||
# vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/tiff")
|
|
||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake" "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
|
|
||||||
|
|
||||||
set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libtiff-4.pc")
|
|
||||||
if(EXISTS "${_file}")
|
|
||||||
vcpkg_replace_string("${_file}" "-ltiff" "-ltiffd")
|
|
||||||
endif()
|
|
||||||
vcpkg_fixup_pkgconfig()
|
|
||||||
|
|
||||||
file(REMOVE_RECURSE
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
||||||
)
|
|
||||||
|
|
||||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|
|
||||||
|
|
||||||
if ("tools" IN_LIST FEATURES)
|
|
||||||
vcpkg_copy_tools(TOOL_NAMES
|
|
||||||
tiffcp
|
|
||||||
tiffdump
|
|
||||||
tiffinfo
|
|
||||||
tiffset
|
|
||||||
tiffsplit
|
|
||||||
AUTO_CLEAN
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
|
||||||
file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
||||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
|
9
dependencies/vcpkg_overlay_ports/tiff/usage
vendored
9
dependencies/vcpkg_overlay_ports/tiff/usage
vendored
@ -1,9 +0,0 @@
|
|||||||
tiff is compatible with built-in CMake targets:
|
|
||||||
|
|
||||||
find_package(TIFF REQUIRED)
|
|
||||||
target_link_libraries(main PRIVATE TIFF::TIFF)
|
|
||||||
|
|
||||||
tiff provides pkg-config modules:
|
|
||||||
|
|
||||||
# Tag Image File Format (TIFF) library.
|
|
||||||
libtiff-4
|
|
@ -1,104 +0,0 @@
|
|||||||
cmake_policy(PUSH)
|
|
||||||
cmake_policy(SET CMP0012 NEW)
|
|
||||||
cmake_policy(SET CMP0057 NEW)
|
|
||||||
set(z_vcpkg_tiff_find_options "")
|
|
||||||
if("REQUIRED" IN_LIST ARGS)
|
|
||||||
list(APPEND z_vcpkg_tiff_find_options "REQUIRED")
|
|
||||||
endif()
|
|
||||||
if("QUIET" IN_LIST ARGS)
|
|
||||||
list(APPEND z_vcpkg_tiff_find_options "QUIET")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
_find_package(${ARGS})
|
|
||||||
|
|
||||||
if(TIFF_FOUND AND "@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
|
||||||
include(SelectLibraryConfigurations)
|
|
||||||
set(z_vcpkg_tiff_link_libraries "")
|
|
||||||
set(z_vcpkg_tiff_libraries "")
|
|
||||||
if("@webp@")
|
|
||||||
find_package(WebP CONFIG ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:WebP::WebP>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${WebP_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if("@lzma@")
|
|
||||||
find_package(LibLZMA ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:LibLZMA::LibLZMA>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${LIBLZMA_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if("@jpeg@")
|
|
||||||
find_package(JPEG ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:JPEG::JPEG>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${JPEG_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if("@zstd@")
|
|
||||||
find_package(zstd CONFIG ${z_vcpkg_tiff_find_options})
|
|
||||||
set(z_vcpkg_tiff_zstd_target_property "IMPORTED_LOCATION_")
|
|
||||||
if(TARGET zstd::libzstd_shared)
|
|
||||||
set(z_vcpkg_tiff_zstd "\$<LINK_ONLY:zstd::libzstd_shared>")
|
|
||||||
set(z_vcpkg_tiff_zstd_target zstd::libzstd_shared)
|
|
||||||
if(WIN32)
|
|
||||||
set(z_vcpkg_tiff_zstd_target_property "IMPORTED_IMPLIB_")
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
set(z_vcpkg_tiff_zstd "\$<LINK_ONLY:zstd::libzstd_static>")
|
|
||||||
set(z_vcpkg_tiff_zstd_target zstd::libzstd_static)
|
|
||||||
endif()
|
|
||||||
get_target_property(z_vcpkg_tiff_zstd_configs "${z_vcpkg_tiff_zstd_target}" IMPORTED_CONFIGURATIONS)
|
|
||||||
foreach(z_vcpkg_config IN LISTS z_vcpkg_tiff_zstd_configs)
|
|
||||||
get_target_property(ZSTD_LIBRARY_${z_vcpkg_config} "${z_vcpkg_tiff_zstd_target}" "${z_vcpkg_tiff_zstd_target_property}${z_vcpkg_config}")
|
|
||||||
endforeach()
|
|
||||||
select_library_configurations(ZSTD)
|
|
||||||
if(NOT TARGET ZSTD::ZSTD)
|
|
||||||
add_library(ZSTD::ZSTD INTERFACE IMPORTED)
|
|
||||||
set_property(TARGET ZSTD::ZSTD APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${z_vcpkg_tiff_zstd})
|
|
||||||
endif()
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries ${z_vcpkg_tiff_zstd})
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${ZSTD_LIBRARIES})
|
|
||||||
unset(z_vcpkg_tiff_zstd)
|
|
||||||
unset(z_vcpkg_tiff_zstd_configs)
|
|
||||||
unset(z_vcpkg_config)
|
|
||||||
unset(z_vcpkg_tiff_zstd_target)
|
|
||||||
endif()
|
|
||||||
if("@libdeflate@")
|
|
||||||
find_package(libdeflate ${z_vcpkg_tiff_find_options})
|
|
||||||
set(z_vcpkg_property "IMPORTED_LOCATION_")
|
|
||||||
if(TARGET libdeflate::libdeflate_shared)
|
|
||||||
set(z_vcpkg_libdeflate_target libdeflate::libdeflate_shared)
|
|
||||||
if(WIN32)
|
|
||||||
set(z_vcpkg_property "IMPORTED_IMPLIB_")
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
set(z_vcpkg_libdeflate_target libdeflate::libdeflate_static)
|
|
||||||
endif()
|
|
||||||
get_target_property(z_vcpkg_libdeflate_configs "${z_vcpkg_libdeflate_target}" IMPORTED_CONFIGURATIONS)
|
|
||||||
foreach(z_vcpkg_config IN LISTS z_vcpkg_libdeflate_configs)
|
|
||||||
get_target_property(Z_VCPKG_DEFLATE_LIBRARY_${z_vcpkg_config} "${z_vcpkg_libdeflate_target}" "${z_vcpkg_property}${z_vcpkg_config}")
|
|
||||||
endforeach()
|
|
||||||
select_library_configurations(Z_VCPKG_DEFLATE)
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:${z_vcpkg_libdeflate_target}>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${Z_VCPKG_DEFLATE_LIBRARIES})
|
|
||||||
unset(z_vcpkg_config)
|
|
||||||
unset(z_vcpkg_libdeflate_configs)
|
|
||||||
unset(z_vcpkg_libdeflate_target)
|
|
||||||
unset(z_vcpkg_property)
|
|
||||||
unset(Z_VCPKG_DEFLATE_FOUND)
|
|
||||||
endif()
|
|
||||||
if("@zlib@")
|
|
||||||
find_package(ZLIB ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:ZLIB::ZLIB>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${ZLIB_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if(UNIX)
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries m)
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries m)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(TARGET TIFF::TIFF)
|
|
||||||
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${z_vcpkg_tiff_link_libraries})
|
|
||||||
endif()
|
|
||||||
list(APPEND TIFF_LIBRARIES ${z_vcpkg_tiff_libraries})
|
|
||||||
unset(z_vcpkg_tiff_link_libraries)
|
|
||||||
unset(z_vcpkg_tiff_libraries)
|
|
||||||
endif()
|
|
||||||
unset(z_vcpkg_tiff_find_options)
|
|
||||||
cmake_policy(POP)
|
|
67
dependencies/vcpkg_overlay_ports/tiff/vcpkg.json
vendored
67
dependencies/vcpkg_overlay_ports/tiff/vcpkg.json
vendored
@ -1,67 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "tiff",
|
|
||||||
"version": "4.6.0",
|
|
||||||
"port-version": 2,
|
|
||||||
"description": "A library that supports the manipulation of TIFF image files",
|
|
||||||
"homepage": "https://libtiff.gitlab.io/libtiff/",
|
|
||||||
"license": "libtiff",
|
|
||||||
"dependencies": [
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake",
|
|
||||||
"host": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake-config",
|
|
||||||
"host": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default-features": [
|
|
||||||
"jpeg",
|
|
||||||
"zip"
|
|
||||||
],
|
|
||||||
"features": {
|
|
||||||
"cxx": {
|
|
||||||
"description": "Build C++ libtiffxx library"
|
|
||||||
},
|
|
||||||
"jpeg": {
|
|
||||||
"description": "Support JPEG compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"libjpeg-turbo"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"libdeflate": {
|
|
||||||
"description": "Use libdeflate for faster ZIP support",
|
|
||||||
"dependencies": [
|
|
||||||
"libdeflate",
|
|
||||||
{
|
|
||||||
"name": "tiff",
|
|
||||||
"default-features": false,
|
|
||||||
"features": [
|
|
||||||
"zip"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"tools": {
|
|
||||||
"description": "Build tools"
|
|
||||||
},
|
|
||||||
"webp": {
|
|
||||||
"description": "Support WEBP compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"libwebp"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"zip": {
|
|
||||||
"description": "Support ZIP/deflate compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"zlib"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"zstd": {
|
|
||||||
"description": "Support ZSTD compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"zstd"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
|
|
||||||
index 8cde1ffe0..d4d09f223 100644
|
|
||||||
--- a/tools/CMakeLists.txt
|
|
||||||
+++ b/tools/CMakeLists.txt
|
|
||||||
@@ -91,7 +91,9 @@ endif()
|
|
||||||
add_executable(dbus-launch ${dbus_launch_SOURCES})
|
|
||||||
target_link_libraries(dbus-launch ${DBUS_LIBRARIES})
|
|
||||||
if(DBUS_BUILD_X11)
|
|
||||||
- target_link_libraries(dbus-launch ${X11_LIBRARIES} )
|
|
||||||
+ find_package(Threads REQUIRED)
|
|
||||||
+ target_link_libraries(dbus-launch ${X11_LIBRARIES} ${X11_xcb_LIB} ${X11_Xau_LIB} ${X11_Xdmcp_LIB} Threads::Threads)
|
|
||||||
+ target_include_directories(dbus-launch PRIVATE ${X11_INCLUDE_DIR})
|
|
||||||
endif()
|
|
||||||
install(TARGETS dbus-launch ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake
|
|
||||||
index b7f3702..e2336ba 100644
|
|
||||||
--- a/cmake/ConfigureChecks.cmake
|
|
||||||
+++ b/cmake/ConfigureChecks.cmake
|
|
||||||
@@ -51,6 +51,7 @@ check_symbol_exists(closefrom "unistd.h" HAVE_CLOSEFROM) #
|
|
||||||
check_symbol_exists(environ "unistd.h" HAVE_DECL_ENVIRON)
|
|
||||||
check_symbol_exists(fstatfs "sys/vfs.h" HAVE_FSTATFS)
|
|
||||||
check_symbol_exists(getgrouplist "grp.h" HAVE_GETGROUPLIST) # dbus-sysdeps.c
|
|
||||||
+check_symbol_exists(getpeereid "sys/types.h;unistd.h" HAVE_GETPEEREID) # dbus-sysdeps.c,
|
|
||||||
check_symbol_exists(getpeerucred "ucred.h" HAVE_GETPEERUCRED) # dbus-sysdeps.c, dbus-sysdeps-win.c
|
|
||||||
check_symbol_exists(getpwnam_r "errno.h;pwd.h" HAVE_GETPWNAM_R) # dbus-sysdeps-util-unix.c
|
|
||||||
check_symbol_exists(getrandom "sys/random.h" HAVE_GETRANDOM)
|
|
||||||
diff --git a/cmake/config.h.cmake b/cmake/config.h.cmake
|
|
||||||
index 77fc19c..2f25643 100644
|
|
||||||
--- a/cmake/config.h.cmake
|
|
||||||
+++ b/cmake/config.h.cmake
|
|
||||||
@@ -140,6 +140,9 @@
|
|
||||||
/* Define to 1 if you have getgrouplist */
|
|
||||||
#cmakedefine HAVE_GETGROUPLIST 1
|
|
||||||
|
|
||||||
+/* Define to 1 if you have getpeereid */
|
|
||||||
+#cmakedefine HAVE_GETPEEREID 1
|
|
||||||
+
|
|
||||||
/* Define to 1 if you have getpeerucred */
|
|
||||||
#cmakedefine HAVE_GETPEERUCRED 1
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index d3ec71b..932066a 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -141,6 +141,10 @@ if(DBUS_LINUX)
|
|
||||||
if(ENABLE_SYSTEMD AND SYSTEMD_FOUND)
|
|
||||||
set(DBUS_BUS_ENABLE_SYSTEMD ON)
|
|
||||||
set(HAVE_SYSTEMD ${SYSTEMD_FOUND})
|
|
||||||
+ pkg_check_modules(SYSTEMD libsystemd IMPORTED_TARGET)
|
|
||||||
+ set(SYSTEMD_LIBRARIES PkgConfig::SYSTEMD CACHE INTERNAL "")
|
|
||||||
+ else()
|
|
||||||
+ set(SYSTEMD_LIBRARIES "" CACHE INTERNAL "")
|
|
||||||
endif()
|
|
||||||
option(ENABLE_USER_SESSION "enable user-session semantics for session bus under systemd" OFF)
|
|
||||||
set(DBUS_ENABLE_USER_SESSION ${ENABLE_USER_SESSION})
|
|
@ -1,21 +0,0 @@
|
|||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index caef738..b878f42 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -724,11 +724,11 @@ add_custom_target(help-options
|
|
||||||
#
|
|
||||||
if(DBUS_ENABLE_PKGCONFIG)
|
|
||||||
set(PLATFORM_LIBS pthread ${LIBRT})
|
|
||||||
- if(PKG_CONFIG_FOUND)
|
|
||||||
- # convert lists of link libraries into -lstdc++ -lm etc..
|
|
||||||
- foreach(LIB ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${PLATFORM_LIBS})
|
|
||||||
- set(LIBDBUS_LIBS "${LIBDBUS_LIBS} -l${LIB}")
|
|
||||||
- endforeach()
|
|
||||||
+ if(1)
|
|
||||||
+ set(LIBDBUS_LIBS "${CMAKE_THREAD_LIBS_INIT}")
|
|
||||||
+ if(LIBRT)
|
|
||||||
+ string(APPEND LIBDBUS_LIBS " -lrt")
|
|
||||||
+ endif()
|
|
||||||
set(original_prefix "${CMAKE_INSTALL_PREFIX}")
|
|
||||||
if(DBUS_RELOCATABLE)
|
|
||||||
set(pkgconfig_prefix "\${pcfiledir}/../..")
|
|
@ -1,88 +0,0 @@
|
|||||||
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
||||||
|
|
||||||
vcpkg_from_gitlab(
|
|
||||||
GITLAB_URL https://gitlab.freedesktop.org/
|
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
|
||||||
REPO dbus/dbus
|
|
||||||
REF "dbus-${VERSION}"
|
|
||||||
SHA512 8e476b408514e6540c36beb84e8025827c22cda8958b6eb74d22b99c64765eb3cd5a6502aea546e3e5f0534039857b37edee89c659acef40e7cab0939947d4af
|
|
||||||
HEAD_REF master
|
|
||||||
PATCHES
|
|
||||||
cmake.dep.patch
|
|
||||||
pkgconfig.patch
|
|
||||||
getpeereid.patch # missing check from configure.ac
|
|
||||||
libsystemd.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_check_features(OUT_FEATURE_OPTIONS options
|
|
||||||
FEATURES
|
|
||||||
systemd ENABLE_SYSTEMD
|
|
||||||
x11 DBUS_BUILD_X11
|
|
||||||
x11 CMAKE_REQUIRE_FIND_PACKAGE_X11
|
|
||||||
)
|
|
||||||
|
|
||||||
unset(ENV{DBUSDIR})
|
|
||||||
|
|
||||||
vcpkg_cmake_configure(
|
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
|
||||||
OPTIONS
|
|
||||||
-DDBUS_BUILD_TESTS=OFF
|
|
||||||
-DDBUS_ENABLE_DOXYGEN_DOCS=OFF
|
|
||||||
-DDBUS_ENABLE_XML_DOCS=OFF
|
|
||||||
-DDBUS_INSTALL_SYSTEM_LIBS=OFF
|
|
||||||
#-DDBUS_SERVICE=ON
|
|
||||||
-DDBUS_WITH_GLIB=OFF
|
|
||||||
-DTHREADS_PREFER_PTHREAD_FLAG=ON
|
|
||||||
-DXSLTPROC_EXECUTABLE=FALSE
|
|
||||||
"-DCMAKE_INSTALL_SYSCONFDIR=${CURRENT_PACKAGES_DIR}/etc/${PORT}"
|
|
||||||
"-DWITH_SYSTEMD_SYSTEMUNITDIR=lib/systemd/system"
|
|
||||||
"-DWITH_SYSTEMD_USERUNITDIR=lib/systemd/user"
|
|
||||||
${options}
|
|
||||||
OPTIONS_RELEASE
|
|
||||||
-DDBUS_DISABLE_ASSERT=OFF
|
|
||||||
-DDBUS_ENABLE_STATS=OFF
|
|
||||||
-DDBUS_ENABLE_VERBOSE_MODE=OFF
|
|
||||||
MAYBE_UNUSED_VARIABLES
|
|
||||||
DBUS_BUILD_X11
|
|
||||||
DBUS_WITH_GLIB
|
|
||||||
ENABLE_SYSTEMD
|
|
||||||
THREADS_PREFER_PTHREAD_FLAG
|
|
||||||
WITH_SYSTEMD_SYSTEMUNITDIR
|
|
||||||
WITH_SYSTEMD_USERUNITDIR
|
|
||||||
)
|
|
||||||
vcpkg_cmake_install()
|
|
||||||
vcpkg_copy_pdbs()
|
|
||||||
vcpkg_cmake_config_fixup(PACKAGE_NAME "DBus1" CONFIG_PATH "lib/cmake/DBus1")
|
|
||||||
vcpkg_fixup_pkgconfig()
|
|
||||||
|
|
||||||
file(REMOVE_RECURSE
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/var/"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/etc"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/dbus-1/services"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/dbus-1/session.d"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/dbus-1/system-services"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/dbus-1/system.d"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/dbus-1/system.conf"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/dbus-1/system.conf"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/doc"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/var"
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/dbus-1/session.conf" "<include ignore_missing=\"yes\">${CURRENT_PACKAGES_DIR}/etc/dbus/dbus-1/session.conf</include>" "")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/dbus-1/session.conf" "<includedir>${CURRENT_PACKAGES_DIR}/etc/dbus/dbus-1/session.d</includedir>" "")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/dbus-1/session.conf" "<include ignore_missing=\"yes\">${CURRENT_PACKAGES_DIR}/etc/dbus/dbus-1/session-local.conf</include>" "")
|
|
||||||
|
|
||||||
set(TOOLS daemon launch monitor run-session send test-tool update-activation-environment)
|
|
||||||
if(VCPKG_TARGET_IS_WINDOWS)
|
|
||||||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
|
||||||
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/dbus-env.bat" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/dbus-env.bat")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/dbus-env.bat" "${CURRENT_PACKAGES_DIR}" "%~dp0/../..")
|
|
||||||
else()
|
|
||||||
list(APPEND TOOLS cleanup-sockets uuidgen)
|
|
||||||
endif()
|
|
||||||
list(TRANSFORM TOOLS PREPEND "dbus-" )
|
|
||||||
vcpkg_copy_tools(TOOL_NAMES ${TOOLS} AUTO_CLEAN)
|
|
||||||
|
|
||||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "dbus",
|
|
||||||
"version": "1.15.8",
|
|
||||||
"port-version": 2,
|
|
||||||
"description": "D-Bus specification and reference implementation, including libdbus and dbus-daemon",
|
|
||||||
"homepage": "https://gitlab.freedesktop.org/dbus/dbus",
|
|
||||||
"license": "AFL-2.1 OR GPL-2.0-or-later",
|
|
||||||
"supports": "!uwp & !staticcrt",
|
|
||||||
"dependencies": [
|
|
||||||
"expat",
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake",
|
|
||||||
"host": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake-config",
|
|
||||||
"host": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default-features": [
|
|
||||||
],
|
|
||||||
"features": {
|
|
||||||
"x11": {
|
|
||||||
"description": "Build with X11 autolaunch support",
|
|
||||||
"dependencies": [
|
|
||||||
"libx11"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/SDL2Config.cmake.in b/SDL2Config.cmake.in
|
|
||||||
index cc8bcf26d..ead829767 100644
|
|
||||||
--- a/SDL2Config.cmake.in
|
|
||||||
+++ b/SDL2Config.cmake.in
|
|
||||||
@@ -35,7 +35,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/sdlfind.cmake")
|
|
||||||
|
|
||||||
set(SDL_ALSA @SDL_ALSA@)
|
|
||||||
set(SDL_ALSA_SHARED @SDL_ALSA_SHARED@)
|
|
||||||
-if(SDL_ALSA AND NOT SDL_ALSA_SHARED AND TARGET SDL2::SDL2-static)
|
|
||||||
+if(SDL_ALSA)
|
|
||||||
sdlFindALSA()
|
|
||||||
endif()
|
|
||||||
unset(SDL_ALSA)
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
|
|
||||||
index 65a98efbe..2f99f28f1 100644
|
|
||||||
--- a/cmake/sdlchecks.cmake
|
|
||||||
+++ b/cmake/sdlchecks.cmake
|
|
||||||
@@ -352,7 +352,7 @@ endmacro()
|
|
||||||
# - HAVE_SDL_LOADSO opt
|
|
||||||
macro(CheckLibSampleRate)
|
|
||||||
if(SDL_LIBSAMPLERATE)
|
|
||||||
- find_package(SampleRate QUIET)
|
|
||||||
+ find_package(SampleRate CONFIG REQUIRED)
|
|
||||||
if(SampleRate_FOUND AND TARGET SampleRate::samplerate)
|
|
||||||
set(HAVE_LIBSAMPLERATE TRUE)
|
|
||||||
set(HAVE_LIBSAMPLERATE_H TRUE)
|
|
@ -1,137 +0,0 @@
|
|||||||
vcpkg_from_github(
|
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
|
||||||
REPO libsdl-org/SDL
|
|
||||||
REF "release-${VERSION}"
|
|
||||||
SHA512 c7635a83a52f3970a372b804a8631f0a7e6b8d89aed1117bcc54a2040ad0928122175004cf2b42cf84a4fd0f86236f779229eaa63dfa6ca9c89517f999c5ff1c
|
|
||||||
HEAD_REF main
|
|
||||||
PATCHES
|
|
||||||
deps.patch
|
|
||||||
alsa-dep-fix.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SDL_STATIC)
|
|
||||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SDL_SHARED)
|
|
||||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" FORCE_STATIC_VCRT)
|
|
||||||
|
|
||||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
||||||
FEATURES
|
|
||||||
alsa SDL_ALSA
|
|
||||||
alsa CMAKE_REQUIRE_FIND_PACKAGE_ALSA
|
|
||||||
ibus SDL_IBUS
|
|
||||||
samplerate SDL_LIBSAMPLERATE
|
|
||||||
vulkan SDL_VULKAN
|
|
||||||
wayland SDL_WAYLAND
|
|
||||||
x11 SDL_X11
|
|
||||||
INVERTED_FEATURES
|
|
||||||
alsa CMAKE_DISABLE_FIND_PACKAGE_ALSA
|
|
||||||
)
|
|
||||||
|
|
||||||
if ("x11" IN_LIST FEATURES)
|
|
||||||
message(WARNING "You will need to install Xorg dependencies to use feature x11:\nsudo apt install libx11-dev libxft-dev libxext-dev\n")
|
|
||||||
endif()
|
|
||||||
if ("wayland" IN_LIST FEATURES)
|
|
||||||
message(WARNING "You will need to install Wayland dependencies to use feature wayland:\nsudo apt install libwayland-dev libxkbcommon-dev libegl1-mesa-dev\n")
|
|
||||||
endif()
|
|
||||||
if ("ibus" IN_LIST FEATURES)
|
|
||||||
message(WARNING "You will need to install ibus dependencies to use feature ibus:\nsudo apt install libibus-1.0-dev\n")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_UWP)
|
|
||||||
set(configure_opts WINDOWS_USE_MSBUILD)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_cmake_configure(
|
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
|
||||||
${configure_opts}
|
|
||||||
OPTIONS ${FEATURE_OPTIONS}
|
|
||||||
-DSDL_STATIC=${SDL_STATIC}
|
|
||||||
-DSDL_SHARED=${SDL_SHARED}
|
|
||||||
-DSDL_FORCE_STATIC_VCRT=${FORCE_STATIC_VCRT}
|
|
||||||
-DSDL_LIBC=ON
|
|
||||||
-DSDL_TEST=OFF
|
|
||||||
-DSDL_INSTALL_CMAKEDIR="cmake"
|
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
|
||||||
-DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON
|
|
||||||
-DSDL_LIBSAMPLERATE_SHARED=OFF
|
|
||||||
MAYBE_UNUSED_VARIABLES
|
|
||||||
SDL_FORCE_STATIC_VCRT
|
|
||||||
PKG_CONFIG_USE_CMAKE_PREFIX_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_cmake_install()
|
|
||||||
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
|
||||||
|
|
||||||
file(REMOVE_RECURSE
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/bin/sdl2-config"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/bin/sdl2-config"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/SDL2.framework"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/SDL2.framework"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/licenses"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/aclocal"
|
|
||||||
)
|
|
||||||
|
|
||||||
file(GLOB BINS "${CURRENT_PACKAGES_DIR}/debug/bin/*" "${CURRENT_PACKAGES_DIR}/bin/*")
|
|
||||||
if(NOT BINS)
|
|
||||||
file(REMOVE_RECURSE
|
|
||||||
"${CURRENT_PACKAGES_DIR}/bin"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_UWP AND NOT VCPKG_TARGET_IS_MINGW)
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
||||||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib/manual-link")
|
|
||||||
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/SDL2main.lib" "${CURRENT_PACKAGES_DIR}/lib/manual-link/SDL2main.lib")
|
|
||||||
endif()
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/lib/manual-link")
|
|
||||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/SDL2maind.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/manual-link/SDL2maind.lib")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
file(GLOB SHARE_FILES "${CURRENT_PACKAGES_DIR}/share/sdl2/*.cmake")
|
|
||||||
foreach(SHARE_FILE ${SHARE_FILES})
|
|
||||||
vcpkg_replace_string("${SHARE_FILE}" "lib/SDL2main" "lib/manual-link/SDL2main")
|
|
||||||
endforeach()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
|
||||||
|
|
||||||
set(DYLIB_COMPATIBILITY_VERSION_REGEX "set\\(DYLIB_COMPATIBILITY_VERSION (.+)\\)")
|
|
||||||
set(DYLIB_CURRENT_VERSION_REGEX "set\\(DYLIB_CURRENT_VERSION (.+)\\)")
|
|
||||||
file(STRINGS "${SOURCE_PATH}/CMakeLists.txt" DYLIB_COMPATIBILITY_VERSION REGEX ${DYLIB_COMPATIBILITY_VERSION_REGEX})
|
|
||||||
file(STRINGS "${SOURCE_PATH}/CMakeLists.txt" DYLIB_CURRENT_VERSION REGEX ${DYLIB_CURRENT_VERSION_REGEX})
|
|
||||||
string(REGEX REPLACE ${DYLIB_COMPATIBILITY_VERSION_REGEX} "\\1" DYLIB_COMPATIBILITY_VERSION "${DYLIB_COMPATIBILITY_VERSION}")
|
|
||||||
string(REGEX REPLACE ${DYLIB_CURRENT_VERSION_REGEX} "\\1" DYLIB_CURRENT_VERSION "${DYLIB_CURRENT_VERSION}")
|
|
||||||
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2main" "-lSDL2maind")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2 " "-lSDL2d ")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2-static " "-lSDL2-staticd ")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" AND VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/sdl2.pc" "-lSDL2-static " " ")
|
|
||||||
endif()
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2-staticd " " ")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_UWP)
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/sdl2.pc" "$<$<CONFIG:Debug>:d>.lib" "")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/sdl2.pc" "-l-nodefaultlib:" "-nodefaultlib:")
|
|
||||||
endif()
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "$<$<CONFIG:Debug>:d>.lib" "d")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-l-nodefaultlib:" "-nodefaultlib:")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_fixup_pkgconfig()
|
|
||||||
|
|
||||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
||||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
|
@ -1,8 +0,0 @@
|
|||||||
sdl2 provides CMake targets:
|
|
||||||
|
|
||||||
find_package(SDL2 CONFIG REQUIRED)
|
|
||||||
target_link_libraries(main
|
|
||||||
PRIVATE
|
|
||||||
$<TARGET_NAME_IF_EXISTS:SDL2::SDL2main>
|
|
||||||
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static>
|
|
||||||
)
|
|
@ -1,68 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "sdl2",
|
|
||||||
"version": "2.30.0",
|
|
||||||
"description": "Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.",
|
|
||||||
"homepage": "https://www.libsdl.org/download-2.0.php",
|
|
||||||
"license": "Zlib",
|
|
||||||
"dependencies": [
|
|
||||||
{
|
|
||||||
"name": "dbus",
|
|
||||||
"default-features": false,
|
|
||||||
"platform": "linux"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake",
|
|
||||||
"host": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake-config",
|
|
||||||
"host": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default-features": [
|
|
||||||
{
|
|
||||||
"name": "ibus",
|
|
||||||
"platform": "linux"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "wayland",
|
|
||||||
"platform": "linux"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "x11",
|
|
||||||
"platform": "linux"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"features": {
|
|
||||||
"alsa": {
|
|
||||||
"description": "Support for alsa audio",
|
|
||||||
"dependencies": [
|
|
||||||
{
|
|
||||||
"name": "alsa",
|
|
||||||
"platform": "linux"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"ibus": {
|
|
||||||
"description": "Build with ibus IME support",
|
|
||||||
"supports": "linux"
|
|
||||||
},
|
|
||||||
"samplerate": {
|
|
||||||
"description": "Use libsamplerate for audio rate conversion",
|
|
||||||
"dependencies": [
|
|
||||||
"libsamplerate"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"vulkan": {
|
|
||||||
"description": "Vulkan functionality for SDL"
|
|
||||||
},
|
|
||||||
"wayland": {
|
|
||||||
"description": "Build with Wayland support",
|
|
||||||
"supports": "linux"
|
|
||||||
},
|
|
||||||
"x11": {
|
|
||||||
"description": "Build with X11 support",
|
|
||||||
"supports": "!windows"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/cmake/FindCMath.cmake b/cmake/FindCMath.cmake
|
|
||||||
index ad92218..dd42aba 100644
|
|
||||||
--- a/cmake/FindCMath.cmake
|
|
||||||
+++ b/cmake/FindCMath.cmake
|
|
||||||
@@ -31,7 +31,7 @@ include(CheckSymbolExists)
|
|
||||||
include(CheckLibraryExists)
|
|
||||||
|
|
||||||
check_symbol_exists(pow "math.h" CMath_HAVE_LIBC_POW)
|
|
||||||
-find_library(CMath_LIBRARY NAMES m)
|
|
||||||
+find_library(CMath_LIBRARY NAMES m PATHS ${CMAKE_C_IMPLICIT_LINK_DIRECTORIES})
|
|
||||||
|
|
||||||
if(NOT CMath_HAVE_LIBC_POW)
|
|
||||||
set(CMAKE_REQUIRED_LIBRARIES_SAVE ${CMAKE_REQUIRED_LIBRARIES})
|
|
@ -1,86 +0,0 @@
|
|||||||
vcpkg_from_gitlab(
|
|
||||||
GITLAB_URL https://gitlab.com
|
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
|
||||||
REPO libtiff/libtiff
|
|
||||||
REF "v${VERSION}"
|
|
||||||
SHA512 ef2f1d424219d9e245069b7d23e78f5e817cf6ee516d46694915ab6c8909522166f84997513d20a702f4e52c3f18467813935b328fafa34bea5156dee00f66fa
|
|
||||||
HEAD_REF master
|
|
||||||
PATCHES
|
|
||||||
FindCMath.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
||||||
FEATURES
|
|
||||||
cxx cxx
|
|
||||||
jpeg jpeg
|
|
||||||
jpeg CMAKE_REQUIRE_FIND_PACKAGE_JPEG
|
|
||||||
libdeflate libdeflate
|
|
||||||
libdeflate CMAKE_REQUIRE_FIND_PACKAGE_Deflate
|
|
||||||
lzma lzma
|
|
||||||
lzma CMAKE_REQUIRE_FIND_PACKAGE_liblzma
|
|
||||||
tools tiff-tools
|
|
||||||
webp webp
|
|
||||||
webp CMAKE_REQUIRE_FIND_PACKAGE_WebP
|
|
||||||
zip zlib
|
|
||||||
zip CMAKE_REQUIRE_FIND_PACKAGE_ZLIB
|
|
||||||
zstd zstd
|
|
||||||
zstd CMAKE_REQUIRE_FIND_PACKAGE_ZSTD
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_cmake_configure(
|
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
|
||||||
OPTIONS
|
|
||||||
${FEATURE_OPTIONS}
|
|
||||||
-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON
|
|
||||||
-Dtiff-docs=OFF
|
|
||||||
-Dtiff-contrib=OFF
|
|
||||||
-Dtiff-tests=OFF
|
|
||||||
-Djbig=OFF # This is disabled by default due to GPL/Proprietary licensing.
|
|
||||||
-Djpeg12=OFF
|
|
||||||
-Dlerc=OFF
|
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_OpenGL=ON
|
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_GLUT=ON
|
|
||||||
-DZSTD_HAVE_DECOMPRESS_STREAM=ON
|
|
||||||
-DHAVE_JPEGTURBO_DUAL_MODE_8_12=OFF
|
|
||||||
OPTIONS_DEBUG
|
|
||||||
-DCMAKE_DEBUG_POSTFIX=d # tiff sets "d" for MSVC only.
|
|
||||||
MAYBE_UNUSED_VARIABLES
|
|
||||||
CMAKE_DISABLE_FIND_PACKAGE_GLUT
|
|
||||||
CMAKE_DISABLE_FIND_PACKAGE_OpenGL
|
|
||||||
ZSTD_HAVE_DECOMPRESS_STREAM
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_cmake_install()
|
|
||||||
|
|
||||||
# CMake config wasn't packaged in the past and is not yet usable now,
|
|
||||||
# cf. https://gitlab.com/libtiff/libtiff/-/merge_requests/496
|
|
||||||
# vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/tiff")
|
|
||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake" "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
|
|
||||||
|
|
||||||
set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libtiff-4.pc")
|
|
||||||
if(EXISTS "${_file}")
|
|
||||||
vcpkg_replace_string("${_file}" "-ltiff" "-ltiffd")
|
|
||||||
endif()
|
|
||||||
vcpkg_fixup_pkgconfig()
|
|
||||||
|
|
||||||
file(REMOVE_RECURSE
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
||||||
)
|
|
||||||
|
|
||||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|
|
||||||
|
|
||||||
if ("tools" IN_LIST FEATURES)
|
|
||||||
vcpkg_copy_tools(TOOL_NAMES
|
|
||||||
tiffcp
|
|
||||||
tiffdump
|
|
||||||
tiffinfo
|
|
||||||
tiffset
|
|
||||||
tiffsplit
|
|
||||||
AUTO_CLEAN
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
|
||||||
file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
||||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
|
@ -1,9 +0,0 @@
|
|||||||
tiff is compatible with built-in CMake targets:
|
|
||||||
|
|
||||||
find_package(TIFF REQUIRED)
|
|
||||||
target_link_libraries(main PRIVATE TIFF::TIFF)
|
|
||||||
|
|
||||||
tiff provides pkg-config modules:
|
|
||||||
|
|
||||||
# Tag Image File Format (TIFF) library.
|
|
||||||
libtiff-4
|
|
@ -1,104 +0,0 @@
|
|||||||
cmake_policy(PUSH)
|
|
||||||
cmake_policy(SET CMP0012 NEW)
|
|
||||||
cmake_policy(SET CMP0057 NEW)
|
|
||||||
set(z_vcpkg_tiff_find_options "")
|
|
||||||
if("REQUIRED" IN_LIST ARGS)
|
|
||||||
list(APPEND z_vcpkg_tiff_find_options "REQUIRED")
|
|
||||||
endif()
|
|
||||||
if("QUIET" IN_LIST ARGS)
|
|
||||||
list(APPEND z_vcpkg_tiff_find_options "QUIET")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
_find_package(${ARGS})
|
|
||||||
|
|
||||||
if(TIFF_FOUND AND "@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
|
||||||
include(SelectLibraryConfigurations)
|
|
||||||
set(z_vcpkg_tiff_link_libraries "")
|
|
||||||
set(z_vcpkg_tiff_libraries "")
|
|
||||||
if("@webp@")
|
|
||||||
find_package(WebP CONFIG ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:WebP::WebP>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${WebP_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if("@lzma@")
|
|
||||||
find_package(LibLZMA ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:LibLZMA::LibLZMA>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${LIBLZMA_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if("@jpeg@")
|
|
||||||
find_package(JPEG ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:JPEG::JPEG>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${JPEG_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if("@zstd@")
|
|
||||||
find_package(zstd CONFIG ${z_vcpkg_tiff_find_options})
|
|
||||||
set(z_vcpkg_tiff_zstd_target_property "IMPORTED_LOCATION_")
|
|
||||||
if(TARGET zstd::libzstd_shared)
|
|
||||||
set(z_vcpkg_tiff_zstd "\$<LINK_ONLY:zstd::libzstd_shared>")
|
|
||||||
set(z_vcpkg_tiff_zstd_target zstd::libzstd_shared)
|
|
||||||
if(WIN32)
|
|
||||||
set(z_vcpkg_tiff_zstd_target_property "IMPORTED_IMPLIB_")
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
set(z_vcpkg_tiff_zstd "\$<LINK_ONLY:zstd::libzstd_static>")
|
|
||||||
set(z_vcpkg_tiff_zstd_target zstd::libzstd_static)
|
|
||||||
endif()
|
|
||||||
get_target_property(z_vcpkg_tiff_zstd_configs "${z_vcpkg_tiff_zstd_target}" IMPORTED_CONFIGURATIONS)
|
|
||||||
foreach(z_vcpkg_config IN LISTS z_vcpkg_tiff_zstd_configs)
|
|
||||||
get_target_property(ZSTD_LIBRARY_${z_vcpkg_config} "${z_vcpkg_tiff_zstd_target}" "${z_vcpkg_tiff_zstd_target_property}${z_vcpkg_config}")
|
|
||||||
endforeach()
|
|
||||||
select_library_configurations(ZSTD)
|
|
||||||
if(NOT TARGET ZSTD::ZSTD)
|
|
||||||
add_library(ZSTD::ZSTD INTERFACE IMPORTED)
|
|
||||||
set_property(TARGET ZSTD::ZSTD APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${z_vcpkg_tiff_zstd})
|
|
||||||
endif()
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries ${z_vcpkg_tiff_zstd})
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${ZSTD_LIBRARIES})
|
|
||||||
unset(z_vcpkg_tiff_zstd)
|
|
||||||
unset(z_vcpkg_tiff_zstd_configs)
|
|
||||||
unset(z_vcpkg_config)
|
|
||||||
unset(z_vcpkg_tiff_zstd_target)
|
|
||||||
endif()
|
|
||||||
if("@libdeflate@")
|
|
||||||
find_package(libdeflate ${z_vcpkg_tiff_find_options})
|
|
||||||
set(z_vcpkg_property "IMPORTED_LOCATION_")
|
|
||||||
if(TARGET libdeflate::libdeflate_shared)
|
|
||||||
set(z_vcpkg_libdeflate_target libdeflate::libdeflate_shared)
|
|
||||||
if(WIN32)
|
|
||||||
set(z_vcpkg_property "IMPORTED_IMPLIB_")
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
set(z_vcpkg_libdeflate_target libdeflate::libdeflate_static)
|
|
||||||
endif()
|
|
||||||
get_target_property(z_vcpkg_libdeflate_configs "${z_vcpkg_libdeflate_target}" IMPORTED_CONFIGURATIONS)
|
|
||||||
foreach(z_vcpkg_config IN LISTS z_vcpkg_libdeflate_configs)
|
|
||||||
get_target_property(Z_VCPKG_DEFLATE_LIBRARY_${z_vcpkg_config} "${z_vcpkg_libdeflate_target}" "${z_vcpkg_property}${z_vcpkg_config}")
|
|
||||||
endforeach()
|
|
||||||
select_library_configurations(Z_VCPKG_DEFLATE)
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:${z_vcpkg_libdeflate_target}>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${Z_VCPKG_DEFLATE_LIBRARIES})
|
|
||||||
unset(z_vcpkg_config)
|
|
||||||
unset(z_vcpkg_libdeflate_configs)
|
|
||||||
unset(z_vcpkg_libdeflate_target)
|
|
||||||
unset(z_vcpkg_property)
|
|
||||||
unset(Z_VCPKG_DEFLATE_FOUND)
|
|
||||||
endif()
|
|
||||||
if("@zlib@")
|
|
||||||
find_package(ZLIB ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:ZLIB::ZLIB>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${ZLIB_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if(UNIX)
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries m)
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries m)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(TARGET TIFF::TIFF)
|
|
||||||
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${z_vcpkg_tiff_link_libraries})
|
|
||||||
endif()
|
|
||||||
list(APPEND TIFF_LIBRARIES ${z_vcpkg_tiff_libraries})
|
|
||||||
unset(z_vcpkg_tiff_link_libraries)
|
|
||||||
unset(z_vcpkg_tiff_libraries)
|
|
||||||
endif()
|
|
||||||
unset(z_vcpkg_tiff_find_options)
|
|
||||||
cmake_policy(POP)
|
|
@ -1,67 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "tiff",
|
|
||||||
"version": "4.6.0",
|
|
||||||
"port-version": 2,
|
|
||||||
"description": "A library that supports the manipulation of TIFF image files",
|
|
||||||
"homepage": "https://libtiff.gitlab.io/libtiff/",
|
|
||||||
"license": "libtiff",
|
|
||||||
"dependencies": [
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake",
|
|
||||||
"host": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake-config",
|
|
||||||
"host": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default-features": [
|
|
||||||
"jpeg",
|
|
||||||
"zip"
|
|
||||||
],
|
|
||||||
"features": {
|
|
||||||
"cxx": {
|
|
||||||
"description": "Build C++ libtiffxx library"
|
|
||||||
},
|
|
||||||
"jpeg": {
|
|
||||||
"description": "Support JPEG compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"libjpeg-turbo"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"libdeflate": {
|
|
||||||
"description": "Use libdeflate for faster ZIP support",
|
|
||||||
"dependencies": [
|
|
||||||
"libdeflate",
|
|
||||||
{
|
|
||||||
"name": "tiff",
|
|
||||||
"default-features": false,
|
|
||||||
"features": [
|
|
||||||
"zip"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"tools": {
|
|
||||||
"description": "Build tools"
|
|
||||||
},
|
|
||||||
"webp": {
|
|
||||||
"description": "Support WEBP compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"libwebp"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"zip": {
|
|
||||||
"description": "Support ZIP/deflate compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"zlib"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"zstd": {
|
|
||||||
"description": "Support ZSTD compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"zstd"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/SDL2Config.cmake.in b/SDL2Config.cmake.in
|
|
||||||
index cc8bcf26d..ead829767 100644
|
|
||||||
--- a/SDL2Config.cmake.in
|
|
||||||
+++ b/SDL2Config.cmake.in
|
|
||||||
@@ -35,7 +35,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/sdlfind.cmake")
|
|
||||||
|
|
||||||
set(SDL_ALSA @SDL_ALSA@)
|
|
||||||
set(SDL_ALSA_SHARED @SDL_ALSA_SHARED@)
|
|
||||||
-if(SDL_ALSA AND NOT SDL_ALSA_SHARED AND TARGET SDL2::SDL2-static)
|
|
||||||
+if(SDL_ALSA)
|
|
||||||
sdlFindALSA()
|
|
||||||
endif()
|
|
||||||
unset(SDL_ALSA)
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
|
|
||||||
index 65a98efbe..2f99f28f1 100644
|
|
||||||
--- a/cmake/sdlchecks.cmake
|
|
||||||
+++ b/cmake/sdlchecks.cmake
|
|
||||||
@@ -352,7 +352,7 @@ endmacro()
|
|
||||||
# - HAVE_SDL_LOADSO opt
|
|
||||||
macro(CheckLibSampleRate)
|
|
||||||
if(SDL_LIBSAMPLERATE)
|
|
||||||
- find_package(SampleRate QUIET)
|
|
||||||
+ find_package(SampleRate CONFIG REQUIRED)
|
|
||||||
if(SampleRate_FOUND AND TARGET SampleRate::samplerate)
|
|
||||||
set(HAVE_LIBSAMPLERATE TRUE)
|
|
||||||
set(HAVE_LIBSAMPLERATE_H TRUE)
|
|
@ -1,137 +0,0 @@
|
|||||||
vcpkg_from_github(
|
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
|
||||||
REPO libsdl-org/SDL
|
|
||||||
REF "release-${VERSION}"
|
|
||||||
SHA512 c7635a83a52f3970a372b804a8631f0a7e6b8d89aed1117bcc54a2040ad0928122175004cf2b42cf84a4fd0f86236f779229eaa63dfa6ca9c89517f999c5ff1c
|
|
||||||
HEAD_REF main
|
|
||||||
PATCHES
|
|
||||||
deps.patch
|
|
||||||
alsa-dep-fix.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SDL_STATIC)
|
|
||||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SDL_SHARED)
|
|
||||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" FORCE_STATIC_VCRT)
|
|
||||||
|
|
||||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
||||||
FEATURES
|
|
||||||
alsa SDL_ALSA
|
|
||||||
alsa CMAKE_REQUIRE_FIND_PACKAGE_ALSA
|
|
||||||
ibus SDL_IBUS
|
|
||||||
samplerate SDL_LIBSAMPLERATE
|
|
||||||
vulkan SDL_VULKAN
|
|
||||||
wayland SDL_WAYLAND
|
|
||||||
x11 SDL_X11
|
|
||||||
INVERTED_FEATURES
|
|
||||||
alsa CMAKE_DISABLE_FIND_PACKAGE_ALSA
|
|
||||||
)
|
|
||||||
|
|
||||||
if ("x11" IN_LIST FEATURES)
|
|
||||||
message(WARNING "You will need to install Xorg dependencies to use feature x11:\nsudo apt install libx11-dev libxft-dev libxext-dev\n")
|
|
||||||
endif()
|
|
||||||
if ("wayland" IN_LIST FEATURES)
|
|
||||||
message(WARNING "You will need to install Wayland dependencies to use feature wayland:\nsudo apt install libwayland-dev libxkbcommon-dev libegl1-mesa-dev\n")
|
|
||||||
endif()
|
|
||||||
if ("ibus" IN_LIST FEATURES)
|
|
||||||
message(WARNING "You will need to install ibus dependencies to use feature ibus:\nsudo apt install libibus-1.0-dev\n")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_UWP)
|
|
||||||
set(configure_opts WINDOWS_USE_MSBUILD)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_cmake_configure(
|
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
|
||||||
${configure_opts}
|
|
||||||
OPTIONS ${FEATURE_OPTIONS}
|
|
||||||
-DSDL_STATIC=${SDL_STATIC}
|
|
||||||
-DSDL_SHARED=${SDL_SHARED}
|
|
||||||
-DSDL_FORCE_STATIC_VCRT=${FORCE_STATIC_VCRT}
|
|
||||||
-DSDL_LIBC=ON
|
|
||||||
-DSDL_TEST=OFF
|
|
||||||
-DSDL_INSTALL_CMAKEDIR="cmake"
|
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
|
||||||
-DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON
|
|
||||||
-DSDL_LIBSAMPLERATE_SHARED=OFF
|
|
||||||
MAYBE_UNUSED_VARIABLES
|
|
||||||
SDL_FORCE_STATIC_VCRT
|
|
||||||
PKG_CONFIG_USE_CMAKE_PREFIX_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_cmake_install()
|
|
||||||
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
|
||||||
|
|
||||||
file(REMOVE_RECURSE
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/bin/sdl2-config"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/bin/sdl2-config"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/SDL2.framework"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/SDL2.framework"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/licenses"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/share/aclocal"
|
|
||||||
)
|
|
||||||
|
|
||||||
file(GLOB BINS "${CURRENT_PACKAGES_DIR}/debug/bin/*" "${CURRENT_PACKAGES_DIR}/bin/*")
|
|
||||||
if(NOT BINS)
|
|
||||||
file(REMOVE_RECURSE
|
|
||||||
"${CURRENT_PACKAGES_DIR}/bin"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_UWP AND NOT VCPKG_TARGET_IS_MINGW)
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
||||||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib/manual-link")
|
|
||||||
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/SDL2main.lib" "${CURRENT_PACKAGES_DIR}/lib/manual-link/SDL2main.lib")
|
|
||||||
endif()
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/lib/manual-link")
|
|
||||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/SDL2maind.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/manual-link/SDL2maind.lib")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
file(GLOB SHARE_FILES "${CURRENT_PACKAGES_DIR}/share/sdl2/*.cmake")
|
|
||||||
foreach(SHARE_FILE ${SHARE_FILES})
|
|
||||||
vcpkg_replace_string("${SHARE_FILE}" "lib/SDL2main" "lib/manual-link/SDL2main")
|
|
||||||
endforeach()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
|
||||||
|
|
||||||
set(DYLIB_COMPATIBILITY_VERSION_REGEX "set\\(DYLIB_COMPATIBILITY_VERSION (.+)\\)")
|
|
||||||
set(DYLIB_CURRENT_VERSION_REGEX "set\\(DYLIB_CURRENT_VERSION (.+)\\)")
|
|
||||||
file(STRINGS "${SOURCE_PATH}/CMakeLists.txt" DYLIB_COMPATIBILITY_VERSION REGEX ${DYLIB_COMPATIBILITY_VERSION_REGEX})
|
|
||||||
file(STRINGS "${SOURCE_PATH}/CMakeLists.txt" DYLIB_CURRENT_VERSION REGEX ${DYLIB_CURRENT_VERSION_REGEX})
|
|
||||||
string(REGEX REPLACE ${DYLIB_COMPATIBILITY_VERSION_REGEX} "\\1" DYLIB_COMPATIBILITY_VERSION "${DYLIB_COMPATIBILITY_VERSION}")
|
|
||||||
string(REGEX REPLACE ${DYLIB_CURRENT_VERSION_REGEX} "\\1" DYLIB_CURRENT_VERSION "${DYLIB_CURRENT_VERSION}")
|
|
||||||
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2main" "-lSDL2maind")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2 " "-lSDL2d ")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2-static " "-lSDL2-staticd ")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" AND VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/sdl2.pc" "-lSDL2-static " " ")
|
|
||||||
endif()
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-lSDL2-staticd " " ")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_UWP)
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/sdl2.pc" "$<$<CONFIG:Debug>:d>.lib" "")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/sdl2.pc" "-l-nodefaultlib:" "-nodefaultlib:")
|
|
||||||
endif()
|
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "$<$<CONFIG:Debug>:d>.lib" "d")
|
|
||||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/sdl2.pc" "-l-nodefaultlib:" "-nodefaultlib:")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_fixup_pkgconfig()
|
|
||||||
|
|
||||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
||||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
|
@ -1,8 +0,0 @@
|
|||||||
sdl2 provides CMake targets:
|
|
||||||
|
|
||||||
find_package(SDL2 CONFIG REQUIRED)
|
|
||||||
target_link_libraries(main
|
|
||||||
PRIVATE
|
|
||||||
$<TARGET_NAME_IF_EXISTS:SDL2::SDL2main>
|
|
||||||
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static>
|
|
||||||
)
|
|
@ -1,68 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "sdl2",
|
|
||||||
"version": "2.30.0",
|
|
||||||
"description": "Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.",
|
|
||||||
"homepage": "https://www.libsdl.org/download-2.0.php",
|
|
||||||
"license": "Zlib",
|
|
||||||
"dependencies": [
|
|
||||||
{
|
|
||||||
"name": "dbus",
|
|
||||||
"default-features": false,
|
|
||||||
"platform": "linux"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake",
|
|
||||||
"host": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake-config",
|
|
||||||
"host": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default-features": [
|
|
||||||
{
|
|
||||||
"name": "ibus",
|
|
||||||
"platform": "linux"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "wayland",
|
|
||||||
"platform": "linux"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "x11",
|
|
||||||
"platform": "linux"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"features": {
|
|
||||||
"alsa": {
|
|
||||||
"description": "Support for alsa audio",
|
|
||||||
"dependencies": [
|
|
||||||
{
|
|
||||||
"name": "alsa",
|
|
||||||
"platform": "linux"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"ibus": {
|
|
||||||
"description": "Build with ibus IME support",
|
|
||||||
"supports": "linux"
|
|
||||||
},
|
|
||||||
"samplerate": {
|
|
||||||
"description": "Use libsamplerate for audio rate conversion",
|
|
||||||
"dependencies": [
|
|
||||||
"libsamplerate"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"vulkan": {
|
|
||||||
"description": "Vulkan functionality for SDL"
|
|
||||||
},
|
|
||||||
"wayland": {
|
|
||||||
"description": "Build with Wayland support",
|
|
||||||
"supports": "linux"
|
|
||||||
},
|
|
||||||
"x11": {
|
|
||||||
"description": "Build with X11 support",
|
|
||||||
"supports": "!windows"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/cmake/FindCMath.cmake b/cmake/FindCMath.cmake
|
|
||||||
index ad92218..dd42aba 100644
|
|
||||||
--- a/cmake/FindCMath.cmake
|
|
||||||
+++ b/cmake/FindCMath.cmake
|
|
||||||
@@ -31,7 +31,7 @@ include(CheckSymbolExists)
|
|
||||||
include(CheckLibraryExists)
|
|
||||||
|
|
||||||
check_symbol_exists(pow "math.h" CMath_HAVE_LIBC_POW)
|
|
||||||
-find_library(CMath_LIBRARY NAMES m)
|
|
||||||
+find_library(CMath_LIBRARY NAMES m PATHS ${CMAKE_C_IMPLICIT_LINK_DIRECTORIES})
|
|
||||||
|
|
||||||
if(NOT CMath_HAVE_LIBC_POW)
|
|
||||||
set(CMAKE_REQUIRED_LIBRARIES_SAVE ${CMAKE_REQUIRED_LIBRARIES})
|
|
@ -1,86 +0,0 @@
|
|||||||
vcpkg_from_gitlab(
|
|
||||||
GITLAB_URL https://gitlab.com
|
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
|
||||||
REPO libtiff/libtiff
|
|
||||||
REF "v${VERSION}"
|
|
||||||
SHA512 ef2f1d424219d9e245069b7d23e78f5e817cf6ee516d46694915ab6c8909522166f84997513d20a702f4e52c3f18467813935b328fafa34bea5156dee00f66fa
|
|
||||||
HEAD_REF master
|
|
||||||
PATCHES
|
|
||||||
FindCMath.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
||||||
FEATURES
|
|
||||||
cxx cxx
|
|
||||||
jpeg jpeg
|
|
||||||
jpeg CMAKE_REQUIRE_FIND_PACKAGE_JPEG
|
|
||||||
libdeflate libdeflate
|
|
||||||
libdeflate CMAKE_REQUIRE_FIND_PACKAGE_Deflate
|
|
||||||
lzma lzma
|
|
||||||
lzma CMAKE_REQUIRE_FIND_PACKAGE_liblzma
|
|
||||||
tools tiff-tools
|
|
||||||
webp webp
|
|
||||||
webp CMAKE_REQUIRE_FIND_PACKAGE_WebP
|
|
||||||
zip zlib
|
|
||||||
zip CMAKE_REQUIRE_FIND_PACKAGE_ZLIB
|
|
||||||
zstd zstd
|
|
||||||
zstd CMAKE_REQUIRE_FIND_PACKAGE_ZSTD
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_cmake_configure(
|
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
|
||||||
OPTIONS
|
|
||||||
${FEATURE_OPTIONS}
|
|
||||||
-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON
|
|
||||||
-Dtiff-docs=OFF
|
|
||||||
-Dtiff-contrib=OFF
|
|
||||||
-Dtiff-tests=OFF
|
|
||||||
-Djbig=OFF # This is disabled by default due to GPL/Proprietary licensing.
|
|
||||||
-Djpeg12=OFF
|
|
||||||
-Dlerc=OFF
|
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_OpenGL=ON
|
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_GLUT=ON
|
|
||||||
-DZSTD_HAVE_DECOMPRESS_STREAM=ON
|
|
||||||
-DHAVE_JPEGTURBO_DUAL_MODE_8_12=OFF
|
|
||||||
OPTIONS_DEBUG
|
|
||||||
-DCMAKE_DEBUG_POSTFIX=d # tiff sets "d" for MSVC only.
|
|
||||||
MAYBE_UNUSED_VARIABLES
|
|
||||||
CMAKE_DISABLE_FIND_PACKAGE_GLUT
|
|
||||||
CMAKE_DISABLE_FIND_PACKAGE_OpenGL
|
|
||||||
ZSTD_HAVE_DECOMPRESS_STREAM
|
|
||||||
)
|
|
||||||
|
|
||||||
vcpkg_cmake_install()
|
|
||||||
|
|
||||||
# CMake config wasn't packaged in the past and is not yet usable now,
|
|
||||||
# cf. https://gitlab.com/libtiff/libtiff/-/merge_requests/496
|
|
||||||
# vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/tiff")
|
|
||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake" "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
|
|
||||||
|
|
||||||
set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libtiff-4.pc")
|
|
||||||
if(EXISTS "${_file}")
|
|
||||||
vcpkg_replace_string("${_file}" "-ltiff" "-ltiffd")
|
|
||||||
endif()
|
|
||||||
vcpkg_fixup_pkgconfig()
|
|
||||||
|
|
||||||
file(REMOVE_RECURSE
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
||||||
)
|
|
||||||
|
|
||||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|
|
||||||
|
|
||||||
if ("tools" IN_LIST FEATURES)
|
|
||||||
vcpkg_copy_tools(TOOL_NAMES
|
|
||||||
tiffcp
|
|
||||||
tiffdump
|
|
||||||
tiffinfo
|
|
||||||
tiffset
|
|
||||||
tiffsplit
|
|
||||||
AUTO_CLEAN
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
|
||||||
file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
||||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
|
@ -1,9 +0,0 @@
|
|||||||
tiff is compatible with built-in CMake targets:
|
|
||||||
|
|
||||||
find_package(TIFF REQUIRED)
|
|
||||||
target_link_libraries(main PRIVATE TIFF::TIFF)
|
|
||||||
|
|
||||||
tiff provides pkg-config modules:
|
|
||||||
|
|
||||||
# Tag Image File Format (TIFF) library.
|
|
||||||
libtiff-4
|
|
@ -1,104 +0,0 @@
|
|||||||
cmake_policy(PUSH)
|
|
||||||
cmake_policy(SET CMP0012 NEW)
|
|
||||||
cmake_policy(SET CMP0057 NEW)
|
|
||||||
set(z_vcpkg_tiff_find_options "")
|
|
||||||
if("REQUIRED" IN_LIST ARGS)
|
|
||||||
list(APPEND z_vcpkg_tiff_find_options "REQUIRED")
|
|
||||||
endif()
|
|
||||||
if("QUIET" IN_LIST ARGS)
|
|
||||||
list(APPEND z_vcpkg_tiff_find_options "QUIET")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
_find_package(${ARGS})
|
|
||||||
|
|
||||||
if(TIFF_FOUND AND "@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
|
||||||
include(SelectLibraryConfigurations)
|
|
||||||
set(z_vcpkg_tiff_link_libraries "")
|
|
||||||
set(z_vcpkg_tiff_libraries "")
|
|
||||||
if("@webp@")
|
|
||||||
find_package(WebP CONFIG ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:WebP::WebP>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${WebP_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if("@lzma@")
|
|
||||||
find_package(LibLZMA ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:LibLZMA::LibLZMA>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${LIBLZMA_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if("@jpeg@")
|
|
||||||
find_package(JPEG ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:JPEG::JPEG>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${JPEG_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if("@zstd@")
|
|
||||||
find_package(zstd CONFIG ${z_vcpkg_tiff_find_options})
|
|
||||||
set(z_vcpkg_tiff_zstd_target_property "IMPORTED_LOCATION_")
|
|
||||||
if(TARGET zstd::libzstd_shared)
|
|
||||||
set(z_vcpkg_tiff_zstd "\$<LINK_ONLY:zstd::libzstd_shared>")
|
|
||||||
set(z_vcpkg_tiff_zstd_target zstd::libzstd_shared)
|
|
||||||
if(WIN32)
|
|
||||||
set(z_vcpkg_tiff_zstd_target_property "IMPORTED_IMPLIB_")
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
set(z_vcpkg_tiff_zstd "\$<LINK_ONLY:zstd::libzstd_static>")
|
|
||||||
set(z_vcpkg_tiff_zstd_target zstd::libzstd_static)
|
|
||||||
endif()
|
|
||||||
get_target_property(z_vcpkg_tiff_zstd_configs "${z_vcpkg_tiff_zstd_target}" IMPORTED_CONFIGURATIONS)
|
|
||||||
foreach(z_vcpkg_config IN LISTS z_vcpkg_tiff_zstd_configs)
|
|
||||||
get_target_property(ZSTD_LIBRARY_${z_vcpkg_config} "${z_vcpkg_tiff_zstd_target}" "${z_vcpkg_tiff_zstd_target_property}${z_vcpkg_config}")
|
|
||||||
endforeach()
|
|
||||||
select_library_configurations(ZSTD)
|
|
||||||
if(NOT TARGET ZSTD::ZSTD)
|
|
||||||
add_library(ZSTD::ZSTD INTERFACE IMPORTED)
|
|
||||||
set_property(TARGET ZSTD::ZSTD APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${z_vcpkg_tiff_zstd})
|
|
||||||
endif()
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries ${z_vcpkg_tiff_zstd})
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${ZSTD_LIBRARIES})
|
|
||||||
unset(z_vcpkg_tiff_zstd)
|
|
||||||
unset(z_vcpkg_tiff_zstd_configs)
|
|
||||||
unset(z_vcpkg_config)
|
|
||||||
unset(z_vcpkg_tiff_zstd_target)
|
|
||||||
endif()
|
|
||||||
if("@libdeflate@")
|
|
||||||
find_package(libdeflate ${z_vcpkg_tiff_find_options})
|
|
||||||
set(z_vcpkg_property "IMPORTED_LOCATION_")
|
|
||||||
if(TARGET libdeflate::libdeflate_shared)
|
|
||||||
set(z_vcpkg_libdeflate_target libdeflate::libdeflate_shared)
|
|
||||||
if(WIN32)
|
|
||||||
set(z_vcpkg_property "IMPORTED_IMPLIB_")
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
set(z_vcpkg_libdeflate_target libdeflate::libdeflate_static)
|
|
||||||
endif()
|
|
||||||
get_target_property(z_vcpkg_libdeflate_configs "${z_vcpkg_libdeflate_target}" IMPORTED_CONFIGURATIONS)
|
|
||||||
foreach(z_vcpkg_config IN LISTS z_vcpkg_libdeflate_configs)
|
|
||||||
get_target_property(Z_VCPKG_DEFLATE_LIBRARY_${z_vcpkg_config} "${z_vcpkg_libdeflate_target}" "${z_vcpkg_property}${z_vcpkg_config}")
|
|
||||||
endforeach()
|
|
||||||
select_library_configurations(Z_VCPKG_DEFLATE)
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:${z_vcpkg_libdeflate_target}>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${Z_VCPKG_DEFLATE_LIBRARIES})
|
|
||||||
unset(z_vcpkg_config)
|
|
||||||
unset(z_vcpkg_libdeflate_configs)
|
|
||||||
unset(z_vcpkg_libdeflate_target)
|
|
||||||
unset(z_vcpkg_property)
|
|
||||||
unset(Z_VCPKG_DEFLATE_FOUND)
|
|
||||||
endif()
|
|
||||||
if("@zlib@")
|
|
||||||
find_package(ZLIB ${z_vcpkg_tiff_find_options})
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries "\$<LINK_ONLY:ZLIB::ZLIB>")
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries ${ZLIB_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if(UNIX)
|
|
||||||
list(APPEND z_vcpkg_tiff_link_libraries m)
|
|
||||||
list(APPEND z_vcpkg_tiff_libraries m)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(TARGET TIFF::TIFF)
|
|
||||||
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${z_vcpkg_tiff_link_libraries})
|
|
||||||
endif()
|
|
||||||
list(APPEND TIFF_LIBRARIES ${z_vcpkg_tiff_libraries})
|
|
||||||
unset(z_vcpkg_tiff_link_libraries)
|
|
||||||
unset(z_vcpkg_tiff_libraries)
|
|
||||||
endif()
|
|
||||||
unset(z_vcpkg_tiff_find_options)
|
|
||||||
cmake_policy(POP)
|
|
@ -1,67 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "tiff",
|
|
||||||
"version": "4.6.0",
|
|
||||||
"port-version": 2,
|
|
||||||
"description": "A library that supports the manipulation of TIFF image files",
|
|
||||||
"homepage": "https://libtiff.gitlab.io/libtiff/",
|
|
||||||
"license": "libtiff",
|
|
||||||
"dependencies": [
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake",
|
|
||||||
"host": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vcpkg-cmake-config",
|
|
||||||
"host": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default-features": [
|
|
||||||
"jpeg",
|
|
||||||
"zip"
|
|
||||||
],
|
|
||||||
"features": {
|
|
||||||
"cxx": {
|
|
||||||
"description": "Build C++ libtiffxx library"
|
|
||||||
},
|
|
||||||
"jpeg": {
|
|
||||||
"description": "Support JPEG compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"libjpeg-turbo"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"libdeflate": {
|
|
||||||
"description": "Use libdeflate for faster ZIP support",
|
|
||||||
"dependencies": [
|
|
||||||
"libdeflate",
|
|
||||||
{
|
|
||||||
"name": "tiff",
|
|
||||||
"default-features": false,
|
|
||||||
"features": [
|
|
||||||
"zip"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"tools": {
|
|
||||||
"description": "Build tools"
|
|
||||||
},
|
|
||||||
"webp": {
|
|
||||||
"description": "Support WEBP compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"libwebp"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"zip": {
|
|
||||||
"description": "Support ZIP/deflate compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"zlib"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"zstd": {
|
|
||||||
"description": "Support ZSTD compression in TIFF image files",
|
|
||||||
"dependencies": [
|
|
||||||
"zstd"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
18
vcpkg.json
18
vcpkg.json
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "cemu",
|
"name": "cemu",
|
||||||
"version-string": "1.0",
|
"version-string": "1.0",
|
||||||
"builtin-baseline": "cbf4a6641528cee6f172328984576f51698de726",
|
"builtin-baseline": "a4275b7eee79fb24ec2e135481ef5fce8b41c339",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"pugixml",
|
"pugixml",
|
||||||
"zlib",
|
"zlib",
|
||||||
@ -44,6 +44,22 @@
|
|||||||
"default-features": false,
|
"default-features": false,
|
||||||
"features": [ "openssl" ]
|
"features": [ "openssl" ]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "dbus",
|
||||||
|
"default-features": false,
|
||||||
|
"platform": "linux"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "tiff",
|
||||||
|
"default-features": false,
|
||||||
|
"features": ["jpeg", "zip"]
|
||||||
|
},
|
||||||
"libusb"
|
"libusb"
|
||||||
|
],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"name": "sdl2",
|
||||||
|
"version": "2.30.3"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user