Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions ports/libaribcaption/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO xqq/libaribcaption
REF "v${VERSION}"
SHA512 3f3c802ae68734126d9b4a0525b3353af4c1a3807cd21bfa04b89f2092fe565cb2413bcdd0b762313d40b7e0ab75c7e8066bf4a1879c16637f35ee164f6ef6a4
HEAD_REF master
)

vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
gdi ARIBCC_USE_GDI_FONT
INVERTED_FEATURES
renderer ARIBCC_NO_RENDERER
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ARIBCC_SHARED_LIBRARY)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DARIBCC_BUILD_TESTS=OFF
-DARIBCC_SHARED_LIBRARY=${ARIBCC_SHARED_LIBRARY}
-DARIBCC_USE_EMBEDDED_FREETYPE=OFF
${FEATURE_OPTIONS}
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(PACKAGE_NAME aribcaption CONFIG_PATH "lib/cmake/aribcaption")

vcpkg_copy_pdbs()

vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
48 changes: 48 additions & 0 deletions ports/libaribcaption/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "libaribcaption",
"version": "1.1.1",
"description": "Portable ARIB STD-B24 caption decoder/renderer",
"homepage": "https://github.com/xqq/libaribcaption",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"renderer"
],
"features": {
"gdi": {
"description": "Enable Win32 GDI font provider",
"supports": "windows",
"dependencies": [
{
"name": "libaribcaption",
"default-features": false,
"features": [
"renderer"
]
}
]
},
"renderer": {
"description": "Build with renderer enabled",
"dependencies": [
{
"name": "fontconfig",
"platform": "linux"
},
{
"name": "freetype",
"platform": "android | linux"
}
]
}
}
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4360,6 +4360,10 @@
"baseline": "3.7.7",
"port-version": 2
},
"libaribcaption": {
"baseline": "1.1.1",
"port-version": 0
},
"libass": {
"baseline": "0.17.3",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libaribcaption.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "c44a8a2ac2a3f58b566211007b9dc435850c2a57",
"version": "1.1.1",
"port-version": 0
}
]
}