Jan Engelhardt
c1ac445366
OBS-URL: https://build.opensuse.org/package/show/devel:tools/hfst?expand=0&rev=6
70 lines
2.3 KiB
Diff
70 lines
2.3 KiB
Diff
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: 2014-09-12 10:29:55.446630599 +0200
|
|
X-Upstream: likely not
|
|
|
|
Install sublibraries such that we can make them separate packages
|
|
and tag these with their licenses.
|
|
---
|
|
back-ends/foma/Makefile.am | 4 +++-
|
|
back-ends/openfst/src/lib/Makefile.am | 3 ++-
|
|
back-ends/sfst/Makefile.am | 5 +++--
|
|
3 files changed, 8 insertions(+), 4 deletions(-)
|
|
|
|
Index: hfst-3.15.0/back-ends/foma/Makefile.am
|
|
===================================================================
|
|
--- hfst-3.15.0.orig/back-ends/foma/Makefile.am
|
|
+++ hfst-3.15.0/back-ends/foma/Makefile.am
|
|
@@ -9,9 +9,10 @@ AM_CPPFLAGS += -D__NO_MINGW_LFS
|
|
endif
|
|
|
|
if WANT_FOMA
|
|
-noinst_LTLIBRARIES = libfoma.la
|
|
+lib_LTLIBRARIES = libfoma.la
|
|
endif
|
|
|
|
+libfoma_la_LDFLAGS = -release hfst -version-number 0 -no-undefined
|
|
libfoma_la_SOURCES = int_stack.c define.c determinize.c apply.c \
|
|
rewrite.c lexcread.c topsort.c flags.c minimize.c reverse.c \
|
|
extract.c sigma.c structures.c constructions.c \
|
|
@@ -40,6 +41,7 @@ endif
|
|
|
|
if GENERATE_FOMA_WRAPPER
|
|
bin_PROGRAMS=hfst_foma
|
|
+libfoma_la_LIBADD = -lz
|
|
AM_CPPFLAGS += -DZLIB
|
|
endif
|
|
|
|
Index: hfst-3.15.0/back-ends/openfst/src/lib/Makefile.am
|
|
===================================================================
|
|
--- hfst-3.15.0.orig/back-ends/openfst/src/lib/Makefile.am
|
|
+++ hfst-3.15.0/back-ends/openfst/src/lib/Makefile.am
|
|
@@ -11,6 +11,7 @@
|
|
|
|
AUTOMAKE_OPTIONS=subdir-objects
|
|
AM_CPPFLAGS = -I $(srcdir)/../include $(ICU_CPPFLAGS)
|
|
-noinst_LTLIBRARIES = libfst.la
|
|
+lib_LTLIBRARIES = libfst.la
|
|
+libfst_la_LDFLAGS = -release hfst -version-number 0 -no-undefined
|
|
libfst_la_SOURCES = compat.cc flags.cc fst.cc properties.cc \
|
|
symbol-table.cc symbol-table-ops.cc util.cc
|
|
Index: hfst-3.15.0/back-ends/sfst/Makefile.am
|
|
===================================================================
|
|
--- hfst-3.15.0.orig/back-ends/sfst/Makefile.am
|
|
+++ hfst-3.15.0/back-ends/sfst/Makefile.am
|
|
@@ -1,12 +1,13 @@
|
|
AM_CPPFLAGS=-Wno-deprecated
|
|
|
|
if WANT_SFST
|
|
-noinst_LTLIBRARIES = libsfst.la
|
|
+lib_LTLIBRARIES = libsfst.la
|
|
endif
|
|
if WANT_LEAN_SFST
|
|
-noinst_LTLIBRARIES = libsfst.la
|
|
+lib_LTLIBRARIES = libsfst.la
|
|
endif
|
|
|
|
+libsfst_la_LDFLAGS = -release hfst -version-number 0 -no-undefined
|
|
libsfst_la_SOURCES = alphabet.cc basic.cc utf8.cc compact.cc fst.cc \
|
|
operators.cc determinise.cc generate.cc hopcroft.cc
|
|
|