Import openfst-1.3.1.

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.

ok jeremy@
This commit is contained in:
bentley 2012-10-20 04:35:55 +00:00
parent 7fb44f7e59
commit d41645c4fb
7 changed files with 275 additions and 0 deletions

29
math/openfst/Makefile Normal file
View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/10/20 04:35:55 bentley Exp $
COMMENT = weighted finite-state transducers library
DISTNAME = openfst-1.3.1
SHARED_LIBS += fst 0.0 # 0.0
SHARED_LIBS += fstscript 0.0 # 0.0
CATEGORIES = math devel textproc
HOMEPAGE = http://www.openfst.org/twiki/bin/view/FST/WebHome
# Apache 2.0
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += c m stdc++
MASTER_SITES = http://www.openfst.org/twiki/pub/FST/FstDownload/
USE_LIBTOOL = Yes
CONFIGURE_STYLE = gnu
VMEM_WARNING = Yes
.include <bsd.port.mk>

2
math/openfst/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (openfst-1.3.1.tar.gz) = gvxDGkFDBRb+Pu4rS46jEkKstMatzNij+Pyfb1qrz5Q=
SIZE (openfst-1.3.1.tar.gz) = 713395

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_bin_Makefile_in,v 1.1.1.1 2012/10/20 04:35:55 bentley Exp $
--- src/bin/Makefile.in.orig Fri Oct 12 04:35:04 2012
+++ src/bin/Makefile.in Fri Oct 12 04:35:07 2012
@@ -429,7 +429,7 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AM_CPPFLAGS = -I$(srcdir)/../include -I$(srcdir)/../script $(ICU_FLAGS)
-LDADD = ../script/libfstscript.la ../lib/libfst.la -lm -ldl
+LDADD = ../script/libfstscript.la ../lib/libfst.la -lm
@HAVE_BIN_TRUE@fstarcsort_SOURCES = fstarcsort.cc
@HAVE_BIN_TRUE@fstclosure_SOURCES = fstclosure.cc
@HAVE_BIN_TRUE@fstcompile_SOURCES = fstcompile.cc

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_test_Makefile_in,v 1.1.1.1 2012/10/20 04:35:55 bentley Exp $
--- src/test/Makefile.in.orig Wed Oct 10 02:11:15 2012
+++ src/test/Makefile.in Wed Oct 10 02:11:21 2012
@@ -216,7 +216,7 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AM_CPPFLAGS = -I$(srcdir)/../include $(ICU_CPPFLAGS)
-LDADD = ../lib/libfst.la -lm -ldl
+LDADD = ../lib/libfst.la -lm
fst_test_SOURCES = fst_test.cc fst_test.h
weight_test_SOURCES = weight_test.cc weight-tester.h
algo_test_SOURCES = algo_test.cc algo_test.h

26
math/openfst/pkg/DESCR Normal file
View File

@ -0,0 +1,26 @@
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.
This library was developed by contributors from Google Research and
NYU's Courant Institute. It is intended to be comprehensive, flexible,
efficient and scale well to large problems. It has been extensively
tested. It is an open source project distributed under the Apache
license.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2012/10/20 04:35:55 bentley Exp $
@lib lib/libfst.so.${LIBfst_VERSION}
@lib lib/libfstscript.so.${LIBfstscript_VERSION}

191
math/openfst/pkg/PLIST Normal file
View File

@ -0,0 +1,191 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/10/20 04:35:55 bentley Exp $
%%SHARED%%
@bin bin/fstarcsort
@bin bin/fstclosure
@bin bin/fstcompile
@bin bin/fstcompose
@bin bin/fstconcat
@bin bin/fstconnect
@bin bin/fstconvert
@bin bin/fstdeterminize
@bin bin/fstdifference
@bin bin/fstdraw
@bin bin/fstencode
@bin bin/fstepsnormalize
@bin bin/fstequal
@bin bin/fstequivalent
@bin bin/fstinfo
@bin bin/fstintersect
@bin bin/fstinvert
@bin bin/fstmap
@bin bin/fstminimize
@bin bin/fstprint
@bin bin/fstproject
@bin bin/fstprune
@bin bin/fstpush
@bin bin/fstrandgen
@bin bin/fstrelabel
@bin bin/fstreplace
@bin bin/fstreverse
@bin bin/fstreweight
@bin bin/fstrmepsilon
@bin bin/fstshortestdistance
@bin bin/fstshortestpath
@bin bin/fstsymbols
@bin bin/fstsynchronize
@bin bin/fsttopsort
@bin bin/fstunion
include/fst/
include/fst/accumulator.h
include/fst/add-on.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/edit-fst.h
include/fst/encode.h
include/fst/epsnormalize.h
include/fst/equal.h
include/fst/equivalent.h
include/fst/expanded-fst.h
include/fst/expectation-weight.h
include/fst/factor-weight.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/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/matcher-fst.h
include/fst/matcher.h
include/fst/minimize.h
include/fst/mutable-fst.h
include/fst/pair-weight.h
include/fst/partition.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/random-weight.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/
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/draw-impl.h
include/fst/script/draw.h
include/fst/script/encode.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/info-impl.h
include/fst/script/info.h
include/fst/script/intersect.h
include/fst/script/invert.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/register.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/symbols.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/shortest-distance.h
include/fst/shortest-path.h
include/fst/signed-log-weight.h
include/fst/slist.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/topsort.h
include/fst/tuple-weight.h
include/fst/types.h
include/fst/union-find.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
lib/libfst.a
lib/libfst.la
lib/libfstscript.a
lib/libfstscript.la