diff options
Diffstat (limited to 'vcpkg/ports/libaribcaption')
| -rw-r--r-- | vcpkg/ports/libaribcaption/portfile.cmake | 38 | ||||
| -rw-r--r-- | vcpkg/ports/libaribcaption/vcpkg.json | 48 |
2 files changed, 86 insertions, 0 deletions
diff --git a/vcpkg/ports/libaribcaption/portfile.cmake b/vcpkg/ports/libaribcaption/portfile.cmake new file mode 100644 index 0000000..20f4826 --- /dev/null +++ b/vcpkg/ports/libaribcaption/portfile.cmake @@ -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")
diff --git a/vcpkg/ports/libaribcaption/vcpkg.json b/vcpkg/ports/libaribcaption/vcpkg.json new file mode 100644 index 0000000..c697d73 --- /dev/null +++ b/vcpkg/ports/libaribcaption/vcpkg.json @@ -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" + } + ] + } + } +} |