blob: 8a0789470246cb7a0e2ab057c2bfabc302b4a3f9 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# New ports collection makefile for: OCRopus
# Date created: 2009-05-20
# Whom: Hiroto Kagotani <hiroto.kagotani@gmail.com>
#
# $FreeBSD$
#
PORTNAME= ocropus
PORTVERSION= 0.4
PORTREVISION= 7
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= hiroto.kagotani@gmail.com
COMMENT= The OCRopus(tm) open source document analysis and OCR system
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
jpeg.11:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff \
iulib.0:${PORTSDIR}/graphics/iulib \
gsl.15:${PORTSDIR}/math/gsl
WRKSRC= ${WRKDIR}/ocropus-0.4/ocropus
OPTIONS= SDL "Enable SDL for graphical debugging" off \
LEPTONICA "Enable Leptonica image analysis" off
MAKE_JOBS_UNSAFE= yes
USE_PYTHON_BUILD= yes
USE_AUTOTOOLS= aclocal:111 automake:111 autoconf:268
USE_GMAKE= yes
CONFIGURE_ARGS= --without-fst --without-tesseract --with-iulib=${LOCALBASE}
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
USE_GCC= 4.2+
.include <bsd.port.pre.mk>
.if !defined(WITH_SDL)
CONFIGURE_ARGS+=--without-SDL
.else
USE_SDL= sdl
.endif
.if !defined(WITH_LEPTONICA)
CONFIGURE_ARGS+=--without-leptonica
.else
LIB_DEPENDS+= lept.0:${PORTSDIR}/graphics/leptonlib
.endif
pre-configure:
@(cd ${CONFIGURE_WRKSRC} \
&& ${SETENV} ${PYTHON_CMD} genAM.py >Makefile.am)
run-autotools: run-autotools-aclocal run-autotools-automake run-autotools-autoconf
run-autotools-autoconf:
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF} \
${AUTOCONF_ARGS})
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|'\
${WRKSRC}/configure
.include <bsd.port.post.mk>
|