mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 14:41:36 +08:00
Provide pkgconfig file (issue 451), improve configure.ac and INSTALL.SVN
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@733 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
8708102883
commit
eaf9d63626
@ -19,10 +19,14 @@ So, the steps for making Tesseract are:
|
||||
available language data files in tessdata directory.
|
||||
|
||||
If you want to install just few of them than run:
|
||||
$ make install LANGS="eng ara deu"
|
||||
$ sudo make install-langs LANGS="eng ara deu"
|
||||
It will install only English, Arabic and German language datafiles (if
|
||||
they are present in tessdata directory)
|
||||
|
||||
$ sudo make install LANGS="eng ara deu"
|
||||
will install tesseract library, tesseract programs and English, Arabic
|
||||
and German language datafiles.
|
||||
|
||||
To compile ScrollView.jar you need to download piccolo.JAVA[1] from
|
||||
http://www.piccolo2d.org/download.html and extract
|
||||
piccolo-1.2/build/piccolo.jar to tesseract/java as piccolo-1.2.jar and
|
||||
|
@ -12,7 +12,8 @@ endif
|
||||
#endif
|
||||
|
||||
EXTRA_DIST = eurotext.tif phototest.tif ReleaseNotes \
|
||||
aclocal.m4 config configure.ac autogen.sh tesseract.spec contrib
|
||||
aclocal.m4 config configure.ac autogen.sh tesseract.spec contrib \
|
||||
tesseract.pc.in
|
||||
|
||||
#EXTRA_DIST = doc/html doc/@PACKAGE_NAME@_@PACKAGE_VERSION@.pdf doc/@PACKAGE_NAME@_@PACKAGE_VERSION@.ps.gz
|
||||
|
||||
@ -63,3 +64,6 @@ doc-pack: doc
|
||||
|
||||
doc-clean:
|
||||
rm -rf $(top_srcdir)/doc/html/*
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = tesseract.pc
|
||||
|
12
configure.ac
12
configure.ac
@ -155,13 +155,11 @@ AC_ARG_ENABLE([debug],
|
||||
[debug="no"])
|
||||
AC_MSG_RESULT($debug)
|
||||
if test x"$debug" = x"yes"; then
|
||||
AC_DEFINE([DEBUG],[],[Debug Mode])
|
||||
AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -Wno-uninitialized -O0"
|
||||
AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wno-uninitialized -O0"
|
||||
AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -Wno-uninitialized -O0 -DDEBUG"
|
||||
AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wno-uninitialized -O0 -DDEBUG"
|
||||
else
|
||||
AC_DEFINE([NDEBUG],[],[No-debug Mode])
|
||||
AM_CXXFLAGS="$AM_CXXFLAGS -O3"
|
||||
AM_CPPFLAGS="$AM_CPPFLAGS -O3"
|
||||
AM_CXXFLAGS="$AM_CXXFLAGS -O3 -DNDEBUG"
|
||||
AM_CPPFLAGS="$AM_CPPFLAGS -O3 -DNDEBUG"
|
||||
fi
|
||||
|
||||
#localedir='${prefix}/share/locale'
|
||||
@ -430,7 +428,7 @@ fi
|
||||
# AC_DEFINE_UNQUOTED(TESSERACT_VERSION,["${PACKAGE_VERSION}"],[version string])
|
||||
|
||||
# Output files
|
||||
AC_CONFIG_FILES(Makefile)
|
||||
AC_CONFIG_FILES([Makefile tesseract.pc])
|
||||
#if test "$enable_gettext" = "yes"; then
|
||||
#AC_CONFIG_FILES(po/Makefile.in)
|
||||
#fi
|
||||
|
14
tesseract.pc.in
Normal file
14
tesseract.pc.in
Normal file
@ -0,0 +1,14 @@
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
bindir=@bindir@
|
||||
datadir=@datadir@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: @PACKAGE_NAME@
|
||||
Description: An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google.
|
||||
URL: https://code.google.com/p/tesseract-ocr
|
||||
Version: @VERSION@
|
||||
Requires: lept
|
||||
Libs: -L${libdir} -ltesseract @LDFLAGS@ @LIBS@
|
||||
Cflags: -I${includedir} @CFLAGS@ @CPPFLAGS@ @CXXFLAGS@ @DEFS@
|
Loading…
Reference in New Issue
Block a user