-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[openfst] Add new port #27542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
[openfst] Add new port #27542
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a8d552d
[openfst] Add new port
day253 aba9862
use unofficial
day253 fb2988e
fix linkage
day253 142031f
use make
day253 82154f1
fix compile
day253 217d891
add usage
day253 19b0b25
up usage
day253 9368099
Merge branch 'microsoft:master' into openfst
day253 467aba7
fix usage
day253 3d90e36
Restore usage
75a76e3
update version
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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}) | ||
day253 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| target_link_libraries(main PRIVATE ${FST_LIBRARY}) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| ] | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.