aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/tesseract-data/Makefile
blob: 9cce0889989ed0c5ba0523ea7adb9431187624c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Created by: bf <bf@FreeBSD.org>
# $FreeBSD$

PORTNAME=   tesseract-data
PORTVERSION=    3.04.00
CATEGORIES= graphics

MAINTAINER= pkubaj@anongoth.pl
COMMENT=    Trained language data for the Tesseract OCR engine

LICENSE=    APACHE20

USE_GITHUB= yes
GH_ACCOUNT= tesseract-ocr
GH_PROJECT= tessdata

NO_BUILD=   yes
NO_ARCH=    yes

DATADIR=    ${PREFIX}/share/tessdata
TESSERACT_LANGS?=afr amh ara asm aze aze_cyrl bel ben bod bos bul cat ceb ces \
        chi_sim chi_tra chr cym dan dan_frak deu deu_frak dzo ell eng \
        enm epo equ est eus fas fin fra frk frm gle glg grc guj hat heb \
        hin hrv hun iku ind isl ita ita_old jav jpn kan kat kat_old kaz \
        khm kir kor kur lao lat lav lit mal mar mkd mlt msa mya nep nld \
        nor ori osd pan pol por pus ron rus san sin slk slk_frak slv spa \
        spa_old sqi srp srp_latn swa swe syr tam tel tgk tgl tha tir tur \
        uig ukr urd uzb uzb_cyrl vie yid

PORTDATA=   ${TESSERACT_LANGS:O:u:S|$|.traineddata|}

BROKEN_sparc64=     Fails to install: runaway process

do-install:
    @${MKDIR} ${STAGEDIR}${DATADIR}
.for l in ${PORTDATA}
    @${CP} ${WRKSRC}/${l} ${STAGEDIR}${DATADIR}/
.endfor
    @cd ${STAGEDIR}${DATADIR} ; ${CHMOD} ${BINMODE} ${PORTDATA}

.include <bsd.port.mk>