1 # Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
8 MASTER_SITES= GOOGLE_CODE
10 MAINTAINER= hiroto.kagotani@gmail.com
11 COMMENT= The OCRopus(tm) open source document analysis and OCR system
13 LIB_DEPENDS= libpng.so:graphics/png \
14 libtiff.so:graphics/tiff \
15 libiulib.so:graphics/iulib \
18 WRKSRC= ${WRKDIR}/ocropus-0.4/ocropus
20 OPTIONS_DEFINE= SDL LEPTONICA
21 SDL_DESC= Enable SDL for graphical debugging
22 LEPTONICA_DESC= Enable Leptonica image analysis
25 USES= autoreconf gmake jpeg python:build
27 CONFIGURE_ARGS= --without-fst --without-tesseract --with-iulib=${LOCALBASE}
28 CPPFLAGS+= -I${LOCALBASE}/include
29 LDFLAGS+= -L${LOCALBASE}/lib
31 .include <bsd.port.options.mk>
33 .if ${PORT_OPTIONS:MSDL}
36 CONFIGURE_ARGS+=--without-SDL
39 .if ${PORT_OPTIONS:MLEPTONICA}
40 LIB_DEPENDS+= liblept.so:graphics/leptonica
42 CONFIGURE_ARGS+=--without-leptonica
46 @(cd ${CONFIGURE_WRKSRC} \
47 && ${SETENV} ${PYTHON_CMD} genAM.py >Makefile.am)
49 .include <bsd.port.mk>