diff --git a/ports/openfst/portfile.cmake b/ports/openfst/portfile.cmake new file mode 100644 index 00000000000000..18d44e2661c555 --- /dev/null +++ b/ports/openfst/portfile.cmake @@ -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}") diff --git a/ports/openfst/usage b/ports/openfst/usage new file mode 100644 index 00000000000000..1fc1ae205f3a5d --- /dev/null +++ b/ports/openfst/usage @@ -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}) diff --git a/ports/openfst/vcpkg.json b/ports/openfst/vcpkg.json new file mode 100644 index 00000000000000..6539b34ac7201d --- /dev/null +++ b/ports/openfst/vcpkg.json @@ -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" +} diff --git a/versions/baseline.json b/versions/baseline.json index 747d794a5a2ae9..1a0ae29059573f 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/o-/openfst.json b/versions/o-/openfst.json new file mode 100644 index 00000000000000..6eba36e953aa0a --- /dev/null +++ b/versions/o-/openfst.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "e744e135ca3b8b196dc16e516683281bb896c6c6", + "version": "1.8.2", + "port-version": 0 + } + ] +}