# Created by: Hiroto Kagotani # $FreeBSD$ PORTNAME= ocropus PORTVERSION= 0.4 PORTREVISION= 14 CATEGORIES= graphics MASTER_SITES= GOOGLE_CODE MAINTAINER= hiroto.kagotani@gmail.com COMMENT= The OCRopus(tm) open source document analysis and OCR system BROKEN= Unfetchable (google code has gone away) LIB_DEPENDS= libpng.so:graphics/png \ libtiff.so:graphics/tiff \ libiulib.so:graphics/iulib \ libgsl.so:math/gsl WRKSRC= ${WRKDIR}/ocropus-0.4/ocropus OPTIONS_DEFINE= SDL LEPTONICA SDL_DESC= Enable SDL for graphical debugging LEPTONICA_DESC= Enable Leptonica image analysis MAKE_JOBS_UNSAFE= yes USES= autoreconf gmake jpeg python:build GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-fst --without-tesseract --with-iulib=${LOCALBASE} CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib .include .if ${PORT_OPTIONS:MSDL} USE_SDL= sdl .else CONFIGURE_ARGS+=--without-SDL .endif .if ${PORT_OPTIONS:MLEPTONICA} LIB_DEPENDS+= liblept.so:graphics/leptonica .else CONFIGURE_ARGS+=--without-leptonica .endif pre-configure: @(cd ${CONFIGURE_WRKSRC} \ && ${SETENV} ${PYTHON_CMD} genAM.py >Makefile.am) .include