diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-12-11 04:06:11 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-12-11 04:06:11 +0000 |
commit | f056ba0e7f979f3f9f8daf0d3f1120ccca9b6fdf (patch) | |
tree | 389719256f356dc1a5f0044722706946cab04a31 /graphics/tesseract | |
parent | 6d2d545b8538debe9bacb123a4d1db23ecda9bb2 (diff) | |
download | ports-f056ba0e7f979f3f9f8daf0d3f1120ccca9b6fdf.tar.gz ports-f056ba0e7f979f3f9f8daf0d3f1120ccca9b6fdf.zip |
graphics/tesseract: switch back to autotools
It looks like cmake doesn't install training data.
Diffstat (limited to 'graphics/tesseract')
-rw-r--r-- | graphics/tesseract/Makefile | 28 | ||||
-rw-r--r-- | graphics/tesseract/pkg-plist | 27 |
2 files changed, 26 insertions, 29 deletions
diff --git a/graphics/tesseract/Makefile b/graphics/tesseract/Makefile index 6e8d3eec200a..76bfeecdd1ef 100644 --- a/graphics/tesseract/Makefile +++ b/graphics/tesseract/Makefile @@ -2,6 +2,7 @@ PORTNAME= tesseract PORTVERSION= 5.0.0 +PORTREVISION= 1 CATEGORIES= graphics MAINTAINER= pkubaj@FreeBSD.org @@ -20,7 +21,7 @@ LIB_DEPENDS= liblept.so:graphics/leptonica \ RUN_DEPENDS= tesseract-data>=0:graphics/tesseract-data -USES= compiler:c++11-lang cmake cpe gnome libarchive libtool \ +USES= autoreconf compiler:c++11-lang cpe gnome libarchive libtool \ localbase pathfix pkgconfig USE_LDCONFIG= yes @@ -31,44 +32,27 @@ CPE_VENDOR= tesseract_project USE_GITHUB= yes GH_ACCOUNT= ${PORTNAME}-ocr -CMAKE_ON= BUILD_SHARED_LIBS DATADIR= ${PREFIX}/share/tessdata LDFLAGS+= -pthread PORTDATA= * PORTDOCS= AUTHORS ChangeLog README.md +INSTALL_TARGET= install-strip -OPTIONS_DEFINE= DOCS OPENMP TOOLS +OPTIONS_DEFINE= DOCS TOOLS OPTIONS_DEFAULT= TOOLS -OPTIONS_DEFAULT_amd64= OPENMP -OPTIONS_DEFAULT_i386= OPENMP -OPTIONS_DEFAULT_powerpc64= OPENMP -OPTIONS_DEFAULT_powerpc64le= OPENMP OPTIONS_SUB= yes -OPENMP_CMAKE_BOOL= OPENMP_BUILD - -TOOLS_CMAKE_BOOL= BUILD_TRAINING_TOOLS +TOOLS_CONFIGURE_ENABLE= training TOOLS_DESC= Include training tools TOOLS_LIB_DEPENDS=libicui18n.so:devel/icu \ libfontconfig.so:x11-fonts/fontconfig TOOLS_USE= GNOME=cairo,glib20,pango -.include <bsd.port.options.mk> - -.if ${ARCH} != powerpc64 && ${ARCH} != riscv64 -CMAKE_ARGS+= -DENABLE_LTO:BOOL=ON -.endif - post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} post-install-TOOLS-on: - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/src/training/libcommon_training.so \ - ${STAGEDIR}${PREFIX}/lib/ - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/src/training/libpango_training.so \ - ${STAGEDIR}${PREFIX}/lib/ - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/src/training/libunicharset_training.so \ - ${STAGEDIR}${PREFIX}/lib/ + @cd ${WRKSRC} && ${MAKE} DESTDIR=${STAGEDIR} training-install .include <bsd.port.mk> diff --git a/graphics/tesseract/pkg-plist b/graphics/tesseract/pkg-plist index eba4af254909..1b50d2c62f8a 100644 --- a/graphics/tesseract/pkg-plist +++ b/graphics/tesseract/pkg-plist @@ -26,13 +26,26 @@ include/tesseract/renderer.h include/tesseract/resultiterator.h include/tesseract/unichar.h include/tesseract/version.h -%%TOOLS%%lib/libcommon_training.so -%%TOOLS%%lib/libpango_training.so +lib/libtesseract.a lib/libtesseract.so +lib/libtesseract.so.5 lib/libtesseract.so.5.0.0 -%%TOOLS%%lib/libunicharset_training.so -lib/cmake/tesseract/TesseractConfig.cmake -lib/cmake/tesseract/TesseractConfigVersion.cmake -lib/cmake/tesseract/TesseractTargets-%%CMAKE_BUILD_TYPE%%.cmake -lib/cmake/tesseract/TesseractTargets.cmake libdata/pkgconfig/tesseract.pc +man/man1/ambiguous_words.1.gz +man/man1/classifier_tester.1.gz +man/man1/cntraining.1.gz +man/man1/combine_lang_model.1.gz +man/man1/combine_tessdata.1.gz +man/man1/dawg2wordlist.1.gz +man/man1/lstmeval.1.gz +man/man1/lstmtraining.1.gz +man/man1/merge_unicharsets.1.gz +man/man1/mftraining.1.gz +man/man1/set_unicharset_properties.1.gz +man/man1/shapeclustering.1.gz +man/man1/tesseract.1.gz +man/man1/text2image.1.gz +man/man1/unicharset_extractor.1.gz +man/man1/wordlist2dawg.1.gz +man/man5/unicharambigs.5.gz +man/man5/unicharset.5.gz |