diff options
author | bapt <bapt@FreeBSD.org> | 2014-01-18 17:51:42 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-01-18 17:51:42 +0800 |
commit | 5db82fde5e3b060da7f09ccae112cb66d41a91be (patch) | |
tree | 319d97d085897c38cd2df2740ae5ba60b1978639 /graphics/tesseract | |
parent | 1de5c8dd25f1eaeb78efe042a86f6848e04d21cd (diff) | |
download | freebsd-ports-gnome-5db82fde5e3b060da7f09ccae112cb66d41a91be.tar.gz freebsd-ports-gnome-5db82fde5e3b060da7f09ccae112cb66d41a91be.tar.zst freebsd-ports-gnome-5db82fde5e3b060da7f09ccae112cb66d41a91be.zip |
Support stage
Use options helpers
Remove reference to NOPORTDATA
Diffstat (limited to 'graphics/tesseract')
-rw-r--r-- | graphics/tesseract/Makefile | 50 | ||||
-rw-r--r-- | graphics/tesseract/pkg-plist | 11 |
2 files changed, 23 insertions, 38 deletions
diff --git a/graphics/tesseract/Makefile b/graphics/tesseract/Makefile index 355150c69f0f..357046c1fc24 100644 --- a/graphics/tesseract/Makefile +++ b/graphics/tesseract/Makefile @@ -3,7 +3,7 @@ PORTNAME= tesseract PORTVERSION= 3.02.02 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} DISTFILES= tesseract-ocr-${PORTVERSION}${EXTRACT_SUFX} @@ -11,9 +11,11 @@ DISTFILES= tesseract-ocr-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER= bf@FreeBSD.org COMMENT= Commercial quality open source OCR engine +OPTIONS_DEFINE= DOCS EXAMPLES + LICENSE= APACHE20 -LIB_DEPENDS= lept:${PORTSDIR}/graphics/leptonica +LIB_DEPENDS= liblept.so:${PORTSDIR}/graphics/leptonica DIST_SUBDIR= ${PORTNAME} PROJECTHOST= tesseract-ocr @@ -26,52 +28,24 @@ CONFIGURE_ENV= LIBLEPT_HEADERSDIR="${LOCALBASE}/include/leptonica" \ LIBS="${PTHREAD_LIBS}" LDFLAGS+= -L${LOCALBASE}/lib -NO_STAGE= yes -.include <bsd.port.options.mk> - -.ifndef NOPORTDATA -DATADIR= ${PREFIX}/share/tessdata -MAN1= ambiguous_words.1 cntraining.1 combine_tessdata.1 dawg2wordlist.1 \ - mftraining.1 shapeclustering.1 tesseract.1 unicharset_extractor.1 \ - wordlist2dawg.1 -MAN5= unicharambigs.5 unicharset.5 +DATADIR= ${PREFIX}/share/tessdata PORTDATA= * -.endif - -.if ${PORT_OPTIONS:MDOCS} PORTDOCS= AUTHORS ChangeLog README ReleaseNotes html -.endif - -.if ${PORT_OPTIONS:MDOCS} || make(makesum) -DISTFILES+= tesseract-ocr-${PORTVERSION}-doc-html${EXTRACT_SUFX} -.endif - -.if ${PORT_OPTIONS:MEXAMPLES} PORTEXAMPLES= eurotext.tif phototest.tif -.endif + +DOCS_DISTFILES= tesseract-ocr-${PORTVERSION}-doc-html${EXTRACT_SUFX} post-patch: @${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure @${REINPLACE_CMD} -e \ 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ ${WRKSRC}/Makefile.in -.ifdef NOPORTDATA - @${FIND} ${WRKSRC} -type f -name 'Makefile.in' -print0 | ${XARGS} -0 \ - ${REINPLACE_CMD} -e '\|^install-am:|,+1s|install-data-am||' -.endif post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS:Nhtml} ${DOCSDIR} - @cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${DOCSDIR} -.endif -.if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} - @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR} -.endif - @${ECHO_MSG} "" - @${CAT} ${PKGMESSAGE} - @${ECHO_MSG} "" + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS:Nhtml} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/graphics/tesseract/pkg-plist b/graphics/tesseract/pkg-plist index f97c66017c8c..3505ba75c0ac 100644 --- a/graphics/tesseract/pkg-plist +++ b/graphics/tesseract/pkg-plist @@ -36,5 +36,16 @@ lib/libtesseract.a lib/libtesseract.la lib/libtesseract.so lib/libtesseract.so.3 +man/man1/ambiguous_words.1.gz +man/man1/cntraining.1.gz +man/man1/combine_tessdata.1.gz +man/man1/dawg2wordlist.1.gz +man/man1/mftraining.1.gz +man/man1/shapeclustering.1.gz +man/man1/tesseract.1.gz +man/man1/unicharset_extractor.1.gz +man/man1/wordlist2dawg.1.gz +man/man5/unicharambigs.5.gz +man/man5/unicharset.5.gz %%PORTDATA%%libdata/pkgconfig/tesseract.pc %%PORTDATA%%@dirrm include/tesseract |