[openjph] add new port (#47795)

This commit is contained in:
toge 2025-10-16 10:41:09 +09:00 committed by GitHub
parent cd71278b61
commit b2c74683ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 79 additions and 0 deletions

View File

@ -0,0 +1,37 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO aous72/OpenJPH
REF "${VERSION}"
SHA512 081ae567beeefec550b55585b1b31534fa3bc798a9372659d7d621342d0c3a6d673b7afe636c68785e17a64cc8a29b0869ab08b2d520c4ed53597b9d6b7edc20
HEAD_REF master
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
tools OJPH_BUILD_EXECUTABLES
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DOJPH_ENABLE_TIFF_SUPPORT=ON
-DOJPH_BUILD_TESTS=OFF
-DOJPH_BUILD_STREAM_EXPAND=ON
${FEATURE_OPTIONS}
OPTIONS_DEBUG
-DOJPH_BUILD_EXECUTABLES=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/openjph)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
if("tools" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES ojph_expand ojph_compress ojph_stream_expand AUTO_CLEAN)
endif()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

29
ports/openjph/vcpkg.json Normal file
View File

@ -0,0 +1,29 @@
{
"name": "openjph",
"version": "0.24.2",
"description": "Open-source implementation of JPEG2000 Part-15 (or JPH or HTJ2K)",
"homepage": "https://github.com/aous72/OpenJPH",
"license": "BSD-2-Clause",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"tools": {
"description": "Enables building command line executables",
"supports": "!uwp",
"dependencies": [
{
"name": "tiff",
"default-features": false
}
]
}
}
}

View File

@ -7144,6 +7144,10 @@
"baseline": "2.5.4",
"port-version": 0
},
"openjph": {
"baseline": "0.24.2",
"port-version": 0
},
"openldap": {
"baseline": "2.6.10",
"port-version": 0

9
versions/o-/openjph.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "408235d9a00fecb6988748bbe891f16ecf6e7171",
"version": "0.24.2",
"port-version": 0
}
]
}