From nobody Sat Dec 23 04:32:43 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Sxrqv50h4z54xNy; Sat, 23 Dec 2023 04:32:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sxrqv2kHcz3RCZ; Sat, 23 Dec 2023 04:32:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703305963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6HXMQQBnRDvGRwk04k7AmjA5dWsqZqdLMJUYpqUduWg=; b=aEAvBPFDWZsuEKbhqBXhzZd1jsVT9JH3M5pHZl3N80LCoYQ1fHYjQ5oUMF11dhQ7Pc2zfQ eunq4TPgKh/59K39yE8n5DKfxavSmPMnbYFZoQt8d6g1uvn90ulYr++MLMNQneU+vzBp2g ePRySpEnoaDE3Dmdg8uX2Qs9GNbMbchIoBy2viwUzFctZBYhzzCtmge4+rx417QUgG17xf 6VP/DlGBBcUYX6dNvd7HnKAwfm233h9wWWBBdMDSuc8ac3yW9YbZ8CnU0ZD+e6vgrD2AUa eitjyj7GNbgdIAtq8aRcnUsWUf1u/DNpvQp+2L7e+9iBf3t7XAjipK8UEwv74w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703305963; a=rsa-sha256; cv=none; b=ycq2WIRIkdv/lfWpP3oFvNqiSYwjvzjrP0iPUujIwh9lXXj0LMgcskEG08SpBNugp1oUVW tECIz6c6yHyMgYNLlNqB6kTvcWx9VZ//sX9ShA5D7eQfTmRXV5RrPTs3xpgVyCFNYgUhik DIZwwjuZycAabhLX96JBWflNXv76K32pPAr6MXv7us76hDgnsXUSjNQiyxjzPawiWxLgH+ caNIUJ0n8IjNeEQGwmrPY8y5OSZSBTcrXKORqikN0FIpArBaQI63j0TgXtKrm0foA57hgp s6FueYk0thqNmCwQsWpuhIKoZwncy0W9jAfKVjmnHmtjSMb1Rmxumur+Rw7HVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703305963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6HXMQQBnRDvGRwk04k7AmjA5dWsqZqdLMJUYpqUduWg=; b=nIBE2qFHbc4eKr8dfKy5R2brgOetRWo58aPO7qUOiql9M+nMWPYoaxPRX1nmwU7tA73l9r EEqtqKqqVPhqUeKXWIR6FviU+4pTv0O5ISQaFpikLopxF2mT4D+NPzOVPXYPgXN2XcuSnZ kqtmMJ/ypRr1hLyvtqtX/DH1oN9hg6aZ/TgqviSlWrJ1d4uKpfT8h84aYrNq/1Qxuzp0Qt /NmYiZw0lo2pY4MTIMNyqPONtOxZPLFyau/O/awvL67E2Isijid5qCNTCYAR172sa0eK4P XFl3A+DHDsaNH47xRdZvzmLjLgmPzsjUmDIjtRLtaRVSeo3MqhPcAVNBJBeH1w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Sxrqv1q7nzlnJ; Sat, 23 Dec 2023 04:32:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BN4WhLm087173; Sat, 23 Dec 2023 04:32:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BN4WhFL087170; Sat, 23 Dec 2023 04:32:43 GMT (envelope-from git) Date: Sat, 23 Dec 2023 04:32:43 GMT Message-Id: <202312230432.3BN4WhFL087170@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 4df77d75c251 - main - math/openfst-vosk: New port: Library for working with weighted finite-state transducers List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4df77d75c25123c73612fec4c3e3af591730c461 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=4df77d75c25123c73612fec4c3e3af591730c461 commit 4df77d75c25123c73612fec4c3e3af591730c461 Author: Yuri Victorovich AuthorDate: 2023-12-23 04:15:12 +0000 Commit: Yuri Victorovich CommitDate: 2023-12-23 04:26:47 +0000 math/openfst-vosk: New port: Library for working with weighted finite-state transducers This is a fork of math/openfst to support audio/vosk-api. --- math/Makefile | 1 + math/openfst-vosk/Makefile | 29 +++++++ math/openfst-vosk/distinfo | 3 + math/openfst-vosk/pkg-descr | 18 ++++ math/openfst-vosk/pkg-plist | 203 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 254 insertions(+) diff --git a/math/Makefile b/math/Makefile index 5f35673953b6..f926b9196089 100644 --- a/math/Makefile +++ b/math/Makefile @@ -661,6 +661,7 @@ SUBDIR += onednn252 SUBDIR += openblas SUBDIR += openfst + SUBDIR += openfst-vosk SUBDIR += openlibm SUBDIR += openmesh SUBDIR += openscop diff --git a/math/openfst-vosk/Makefile b/math/openfst-vosk/Makefile new file mode 100644 index 000000000000..19f30e64fa2e --- /dev/null +++ b/math/openfst-vosk/Makefile @@ -0,0 +1,29 @@ +PORTNAME= openfst # openfst-vosk is for audio/vosk-api +DISTVERSION= 20210207 +CATEGORIES= math +PKGNAMESUFFIX= -vosk + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library for working with weighted finite-state transducers +WWW= https://www.openfst.org/ + +LICENSE= APACHE20 + +USES= autoreconf compiler:c++17-lang gmake libtool +USE_LDCONFIG= yes + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-shared \ + --enable-far \ + --enable-ngram-fsts \ + --enable-lookahead-fsts \ + --with-pic \ + --disable-bin + +CXXFLAGS_i386= -msse -msse2 -mfpmath=sse + +USE_GITHUB= yes +GH_ACCOUNT= alphacep +GH_TAGNAME= 7dfd808 + +.include diff --git a/math/openfst-vosk/distinfo b/math/openfst-vosk/distinfo new file mode 100644 index 000000000000..9dc99b236c35 --- /dev/null +++ b/math/openfst-vosk/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703296254 +SHA256 (alphacep-openfst-20210207-7dfd808_GH0.tar.gz) = d63946cf43b39cfd9543c354e376d91b4103d737ce61416de40b7b171d888a7f +SIZE (alphacep-openfst-20210207-7dfd808_GH0.tar.gz) = 923787 diff --git a/math/openfst-vosk/pkg-descr b/math/openfst-vosk/pkg-descr new file mode 100644 index 000000000000..1706b76cabe7 --- /dev/null +++ b/math/openfst-vosk/pkg-descr @@ -0,0 +1,18 @@ +OpenFst is a library for constructing, combining, optimizing, and searching +weighted finite-state transducers (FSTs). Weighted finite-state transducers +are automata where each transition has an input label, an output label, and +a weight. The more familiar finite-state acceptor is represented as a +transducer with each transition's input and output label equal. +Finite-state acceptors are used to represent sets of strings (specifically, +regular or rational sets); finite-state transducers are used to represent +binary relations between pairs of strings (specifically, rational +transductions). The weights can be used to represent the cost of taking +a particular transition. +FSTs have key applications in speech recognition and synthesis, machine +translation, optical character recognition, pattern matching, string +processing, machine learning, information extraction and retrieval +among others. Often a weighted transducer is used to represent a +probabilistic model (e.g., an n-gram model, pronunciation model). FSTs can +be optimized by determinization and minimization, models can be applied to +hypothesis sets (also represented as automata) or cascaded by finite-state +composition, and the best results can be selected by shortest-path algorithms. diff --git a/math/openfst-vosk/pkg-plist b/math/openfst-vosk/pkg-plist new file mode 100644 index 000000000000..d4218aa0b813 --- /dev/null +++ b/math/openfst-vosk/pkg-plist @@ -0,0 +1,203 @@ +include/fst/accumulator.h +include/fst/add-on.h +include/fst/arc-arena.h +include/fst/arc-map.h +include/fst/arc.h +include/fst/arcfilter.h +include/fst/arcsort.h +include/fst/bi-table.h +include/fst/cache.h +include/fst/closure.h +include/fst/compact-fst.h +include/fst/compat.h +include/fst/complement.h +include/fst/compose-filter.h +include/fst/compose.h +include/fst/concat.h +include/fst/config.h +include/fst/connect.h +include/fst/const-fst.h +include/fst/determinize.h +include/fst/dfs-visit.h +include/fst/difference.h +include/fst/disambiguate.h +include/fst/edit-fst.h +include/fst/encode.h +include/fst/epsnormalize.h +include/fst/equal.h +include/fst/equivalent.h +include/fst/error-weight.h +include/fst/expanded-fst.h +include/fst/expander-cache.h +include/fst/expectation-weight.h +include/fst/extensions/far/compile-strings.h +include/fst/extensions/far/convert.h +include/fst/extensions/far/create.h +include/fst/extensions/far/equal.h +include/fst/extensions/far/extract.h +include/fst/extensions/far/far-class.h +include/fst/extensions/far/far.h +include/fst/extensions/far/farlib.h +include/fst/extensions/far/farscript.h +include/fst/extensions/far/getters.h +include/fst/extensions/far/info.h +include/fst/extensions/far/isomorphic.h +include/fst/extensions/far/print-strings.h +include/fst/extensions/far/script-impl.h +include/fst/extensions/far/stlist.h +include/fst/extensions/far/sttable.h +include/fst/extensions/ngram/bitmap-index.h +include/fst/extensions/ngram/ngram-fst.h +include/fst/extensions/ngram/nthbit.h +include/fst/factor-weight.h +include/fst/filter-state.h +include/fst/flags.h +include/fst/float-weight.h +include/fst/fst-decl.h +include/fst/fst.h +include/fst/fstlib.h +include/fst/generic-register.h +include/fst/heap.h +include/fst/icu.h +include/fst/intersect.h +include/fst/interval-set.h +include/fst/invert.h +include/fst/isomorphic.h +include/fst/label-reachable.h +include/fst/lexicographic-weight.h +include/fst/lock.h +include/fst/log.h +include/fst/lookahead-filter.h +include/fst/lookahead-matcher.h +include/fst/map.h +include/fst/mapped-file.h +include/fst/matcher-fst.h +include/fst/matcher.h +include/fst/memory.h +include/fst/minimize.h +include/fst/mutable-fst.h +include/fst/pair-weight.h +include/fst/partition.h +include/fst/power-weight-mappers.h +include/fst/power-weight.h +include/fst/product-weight.h +include/fst/project.h +include/fst/properties.h +include/fst/prune.h +include/fst/push.h +include/fst/queue.h +include/fst/randequivalent.h +include/fst/randgen.h +include/fst/rational.h +include/fst/register.h +include/fst/relabel.h +include/fst/replace-util.h +include/fst/replace.h +include/fst/reverse.h +include/fst/reweight.h +include/fst/rmepsilon.h +include/fst/rmfinalepsilon.h +include/fst/script/arc-class.h +include/fst/script/arciterator-class.h +include/fst/script/arcsort.h +include/fst/script/arg-packs.h +include/fst/script/closure.h +include/fst/script/compile-impl.h +include/fst/script/compile.h +include/fst/script/compose.h +include/fst/script/concat.h +include/fst/script/connect.h +include/fst/script/convert.h +include/fst/script/decode.h +include/fst/script/determinize.h +include/fst/script/difference.h +include/fst/script/disambiguate.h +include/fst/script/draw-impl.h +include/fst/script/draw.h +include/fst/script/encode.h +include/fst/script/encodemapper-class.h +include/fst/script/epsnormalize.h +include/fst/script/equal.h +include/fst/script/equivalent.h +include/fst/script/fst-class.h +include/fst/script/fstscript-decl.h +include/fst/script/fstscript.h +include/fst/script/getters.h +include/fst/script/info-impl.h +include/fst/script/info.h +include/fst/script/intersect.h +include/fst/script/invert.h +include/fst/script/isomorphic.h +include/fst/script/map.h +include/fst/script/minimize.h +include/fst/script/print-impl.h +include/fst/script/print.h +include/fst/script/project.h +include/fst/script/prune.h +include/fst/script/push.h +include/fst/script/randequivalent.h +include/fst/script/randgen.h +include/fst/script/relabel.h +include/fst/script/replace.h +include/fst/script/reverse.h +include/fst/script/reweight.h +include/fst/script/rmepsilon.h +include/fst/script/script-impl.h +include/fst/script/shortest-distance.h +include/fst/script/shortest-path.h +include/fst/script/stateiterator-class.h +include/fst/script/synchronize.h +include/fst/script/text-io.h +include/fst/script/topsort.h +include/fst/script/union.h +include/fst/script/verify.h +include/fst/script/weight-class.h +include/fst/set-weight.h +include/fst/shortest-distance.h +include/fst/shortest-path.h +include/fst/signed-log-weight.h +include/fst/sparse-power-weight.h +include/fst/sparse-tuple-weight.h +include/fst/state-map.h +include/fst/state-reachable.h +include/fst/state-table.h +include/fst/statesort.h +include/fst/string-weight.h +include/fst/string.h +include/fst/symbol-table-ops.h +include/fst/symbol-table.h +include/fst/synchronize.h +include/fst/test-properties.h +include/fst/test/algo_test.h +include/fst/test/compactors.h +include/fst/test/fst_test.h +include/fst/test/rand-fst.h +include/fst/test/weight-tester.h +include/fst/topsort.h +include/fst/tuple-weight.h +include/fst/types.h +include/fst/union-find.h +include/fst/union-weight.h +include/fst/union.h +include/fst/util.h +include/fst/vector-fst.h +include/fst/verify.h +include/fst/visit.h +include/fst/weight.h +include/fst/windows_defs.inc +lib/fst/arc_lookahead-fst.so +lib/fst/ilabel_lookahead-fst.so +lib/fst/ngram-fst.so +lib/fst/olabel_lookahead-fst.so +lib/libfst.so +lib/libfst.so.23 +lib/libfst.so.23.0.0 +lib/libfstfar.so +lib/libfstfar.so.23 +lib/libfstfar.so.23.0.0 +lib/libfstlookahead.so +lib/libfstlookahead.so.23 +lib/libfstlookahead.so.23.0.0 +lib/libfstngram.so +lib/libfstngram.so.23 +lib/libfstngram.so.23.0.0