diff --git a/ports/typecast-ai/portfile.cmake b/ports/typecast-ai/portfile.cmake new file mode 100644 index 0000000000..c59ae29441 --- /dev/null +++ b/ports/typecast-ai/portfile.cmake @@ -0,0 +1,38 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO neosapience/typecast-sdk + REF "v${VERSION}" + SHA512 327c92a7d3f557b1dbad55f0016d263079802afb6d30cdafc7b781e72fedbf93cb7bc3c1d7b13d319480060cd565628387df243939334fb450940b835bce369b + HEAD_REF main +) + +# The C SDK is in the typecast-c subdirectory +set(SOURCE_PATH "${SOURCE_PATH}/typecast-c") + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED) +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DTYPECAST_BUILD_SHARED=${BUILD_SHARED} + -DTYPECAST_BUILD_STATIC=${BUILD_STATIC} + -DTYPECAST_BUILD_EXAMPLES=OFF + -DTYPECAST_BUILD_TESTS=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/typecast) + +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +# Handle copyright +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +vcpkg_fixup_pkgconfig() diff --git a/ports/typecast-ai/vcpkg.json b/ports/typecast-ai/vcpkg.json new file mode 100644 index 0000000000..0a4bb7e693 --- /dev/null +++ b/ports/typecast-ai/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "typecast-ai", + "version": "1.0.1", + "description": "Text-to-Speech API client library for Typecast AI. Pure C with optional C++ wrapper.", + "homepage": "https://github.com/neosapience/typecast-sdk", + "license": "MIT", + "supports": "!uwp", + "dependencies": [ + { + "name": "curl", + "default-features": false + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 51c706ffd1..4ec589bd5f 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -10096,6 +10096,10 @@ "baseline": "2023.8", "port-version": 2 }, + "typecast-ai": { + "baseline": "1.0.1", + "port-version": 0 + }, "tvision": { "baseline": "2024-05-22", "port-version": 1 diff --git a/versions/t-/typecast-ai.json b/versions/t-/typecast-ai.json new file mode 100644 index 0000000000..c1abea2353 --- /dev/null +++ b/versions/t-/typecast-ai.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "6cef434a0a33511912255ef73a5c080488b133ae", + "version": "1.0.1", + "port-version": 0 + } + ] +}