aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-01-18 09:51:42 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-01-18 09:51:42 +0000
commit6a2ef30d07e2891d97a9811c7b080152ae55f0db (patch)
tree319d97d085897c38cd2df2740ae5ba60b1978639 /graphics
parented825c6c42b97cb98e4fa8def23aed03ebc592f4 (diff)
downloadports-6a2ef30d07e2891d97a9811c7b080152ae55f0db.tar.gz
ports-6a2ef30d07e2891d97a9811c7b080152ae55f0db.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/tesseract/Makefile50
-rw-r--r--graphics/tesseract/pkg-plist11
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