early-access version 2853
This commit is contained in:
48
externals/vcpkg/ports/sail/portfile.cmake
vendored
Executable file
48
externals/vcpkg/ports/sail/portfile.cmake
vendored
Executable file
@@ -0,0 +1,48 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO HappySeaFox/sail
|
||||
REF v0.9.0-pre21
|
||||
SHA512 51c23792d18b28520d04d7a097a6d46521d12107919ff76a7ff270a518beb862e4a1df89f3effb945ff908c39336bd60c5f118d6db80baf50005c05f55d2d96f
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
|
||||
OPTIONS
|
||||
-DSAIL_COMBINE_CODECS=ON
|
||||
-DSAIL_BUILD_APPS=OFF
|
||||
-DSAIL_BUILD_EXAMPLES=OFF
|
||||
-DSAIL_BUILD_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# Remove duplicate files
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
# Move cmake configs
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME sail CONFIG_PATH lib/cmake/sail DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME sailcodecs CONFIG_PATH lib/cmake/sailcodecs DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME sailcommon CONFIG_PATH lib/cmake/sailcommon DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME sailc++ CONFIG_PATH lib/cmake/sailc++ DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME sailmanip CONFIG_PATH lib/cmake/sailmanip DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
|
||||
|
||||
|
||||
# Fix pkg-config files
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
# Unused because SAIL_COMBINE_CODECS is On
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/sail/sail-common/config.h" "#define SAIL_CODECS_PATH \"${CURRENT_PACKAGES_DIR}/lib/sail/codecs\"" "")
|
||||
|
||||
# Handle usage
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
11
externals/vcpkg/ports/sail/usage
vendored
Executable file
11
externals/vcpkg/ports/sail/usage
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
The package sail provides CMake targets:
|
||||
|
||||
C libraries:
|
||||
|
||||
find_package(Sail CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE SAIL::sail)
|
||||
|
||||
C++ bindings:
|
||||
|
||||
find_package(SailC++ CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE SAIL::sail-c++)
|
||||
25
externals/vcpkg/ports/sail/vcpkg.json
vendored
Executable file
25
externals/vcpkg/ports/sail/vcpkg.json
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "sail",
|
||||
"version-semver": "0.9.0-pre21",
|
||||
"description": "The missing small and fast image decoding library for humans (not for machines)",
|
||||
"homepage": "https://github.com/HappySeaFox/sail",
|
||||
"license": "MIT",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"giflib",
|
||||
"jasper",
|
||||
"libavif",
|
||||
"libjpeg-turbo",
|
||||
"libpng",
|
||||
"libwebp",
|
||||
"tiff",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user