Update graphics/cimg to version 1.7.5,3
[dports.git] / graphics / ocropus / Makefile
1 # Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       ocropus
5 PORTVERSION=    0.4
6 PORTREVISION=   14
7 CATEGORIES=     graphics
8 MASTER_SITES=   GOOGLE_CODE
9
10 MAINTAINER=     hiroto.kagotani@gmail.com
11 COMMENT=        The OCRopus(tm) open source document analysis and OCR system
12
13 LIB_DEPENDS=    libpng.so:graphics/png \
14                 libtiff.so:graphics/tiff \
15                 libiulib.so:graphics/iulib \
16                 libgsl.so:math/gsl
17
18 WRKSRC=         ${WRKDIR}/ocropus-0.4/ocropus
19
20 OPTIONS_DEFINE= SDL LEPTONICA
21 SDL_DESC=       Enable SDL for graphical debugging
22 LEPTONICA_DESC= Enable Leptonica image analysis
23
24 MAKE_JOBS_UNSAFE=       yes
25 USES=           autoreconf gmake jpeg python:build
26 GNU_CONFIGURE=  yes
27 CONFIGURE_ARGS= --without-fst --without-tesseract --with-iulib=${LOCALBASE}
28 CPPFLAGS+=      -I${LOCALBASE}/include
29 LDFLAGS+=       -L${LOCALBASE}/lib
30
31 .include <bsd.port.options.mk>
32
33 .if ${PORT_OPTIONS:MSDL}
34 USE_SDL=        sdl
35 .else
36 CONFIGURE_ARGS+=--without-SDL
37 .endif
38
39 .if ${PORT_OPTIONS:MLEPTONICA}
40 LIB_DEPENDS+=   liblept.so:graphics/leptonica
41 .else
42 CONFIGURE_ARGS+=--without-leptonica
43 .endif
44
45 pre-configure:
46         @(cd ${CONFIGURE_WRKSRC} \
47           && ${SETENV} ${PYTHON_CMD} genAM.py >Makefile.am)
48
49 .include <bsd.port.mk>