Skip to content
Closed
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
21 changes: 21 additions & 0 deletions ports/openfst/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
vcpkg_download_distfile(
ARCHIVE
URLS https://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.8.2.tar.gz
FILENAME openfst-1.8.2.tar.gz
SHA512 ca7f9f19e24141e1f1d0bbabf43795e6e278bce3887c14261d9ce204a0e01b1588eaf982755a9105247510a19f67da2f566e9b14b1d869497148f95b55606d5c
)

vcpkg_extract_source_archive(SOURCE_PATH ARCHIVE "${ARCHIVE}")

vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
)

vcpkg_install_make()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
7 changes: 7 additions & 0 deletions ports/openfst/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The package openfst does not provide CMake targets:

find_path(FST_INCLUDE_DIRS "fst/fst.h")
find_library(FST_LIBRARY NAMES fst fstscript)

target_include_directories(main PRIVATE ${FST_INCLUDE_DIRS})
target_link_libraries(main PRIVATE ${FST_LIBRARY})
8 changes: 8 additions & 0 deletions ports/openfst/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "openfst",
"version": "1.8.2",
"description": "OpenFst is a library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs).",
"homepage": "https://www.openfst.org/twiki/bin/view/FST/WebHome",
"license": "Apache-2.0",
"supports": "!windows"
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5508,6 +5508,10 @@
"baseline": "2022-07-18",
"port-version": 0
},
"openfst": {
"baseline": "1.8.2",
"port-version": 0
},
"opengl": {
"baseline": "2022-10-08",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/o-/openfst.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "e744e135ca3b8b196dc16e516683281bb896c6c6",
"version": "1.8.2",
"port-version": 0
}
]
}