diff --git a/mkit.profiles.sh b/mkit.profiles.sh index 9f0ea92..9e59716 100755 --- a/mkit.profiles.sh +++ b/mkit.profiles.sh @@ -468,6 +468,12 @@ profile_leptonica() add_run_dep leptonica } +profile_tesseract() +{ + profile_leptonica + add_run_dep tesseract +} + profile_bzip2() { add_run_dep bzip2 diff --git a/modules/tesseract/build.sh b/modules/tesseract/build.sh new file mode 100644 index 0000000..11ec31d --- /dev/null +++ b/modules/tesseract/build.sh @@ -0,0 +1,8 @@ +build_tesseract() +{ + [ -d "${prefix}/lib/pkgconfig" ] && export PKG_CONFIG_PATH="${prefix}/lib/pkgconfig" + + build_raw_lite tesseract + + return $? +} diff --git a/modules/tesseract/hooks/configure.sh b/modules/tesseract/hooks/configure.sh new file mode 100644 index 0000000..ccd73f2 --- /dev/null +++ b/modules/tesseract/hooks/configure.sh @@ -0,0 +1,4 @@ +# generate Makefiles with cmake + + cd ${BUILDDIR}/tesseract + cmake "${srcdir_tesseract}" -DCMAKE_INSTALL_PREFIX=${prefix}