29 lines
579 B
Makefile
29 lines
579 B
Makefile
PORTNAME= tesseract-data
|
|
PORTVERSION= 4.1.0
|
|
CATEGORIES= graphics
|
|
|
|
MAINTAINER= pkubaj@FreeBSD.org
|
|
COMMENT= Trained language data for the Tesseract OCR engine
|
|
WWW= https://github.com/tesseract-ocr/tessdata
|
|
|
|
LICENSE= APACHE20
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= tesseract-ocr
|
|
GH_PROJECT= tessdata
|
|
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
DATADIR= ${PREFIX}/share/tessdata
|
|
PORTDATA= *
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
.for l in ${PORTDATA}
|
|
@${CP} ${WRKSRC}/*.traineddata ${STAGEDIR}${DATADIR}/
|
|
.endfor
|
|
@cd ${STAGEDIR}${DATADIR} ; ${CHMOD} ${BINMODE} ${PORTDATA}
|
|
|
|
.include <bsd.port.mk>
|