Update graphics/leptonica to version 1.69_1
[dports.git] / graphics / leptonica / Makefile
1 # Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
2 # $FreeBSD: graphics/leptonica/Makefile 326850 2013-09-09 22:49:20Z mm $
3
4 PORTNAME=       leptonica
5 PORTVERSION=    1.69
6 PORTREVISION=   1
7 CATEGORIES=     graphics
8 MASTER_SITES=   GOOGLE_CODE
9
10 MAINTAINER=     hiroto.kagotani@gmail.com
11 COMMENT=        C library for efficient image processing and image analysis operations
12
13 LIB_DEPENDS=    gif:${PORTSDIR}/graphics/giflib \
14                 jpeg:${PORTSDIR}/graphics/jpeg \
15                 png15:${PORTSDIR}/graphics/png \
16                 tiff:${PORTSDIR}/graphics/tiff \
17                 webp:${PORTSDIR}/graphics/webp
18
19 CONFLICTS=      leptonlib-[0-9]*
20
21 GNU_CONFIGURE=  yes
22 USE_LDCONFIG=   yes
23 CPPFLAGS+=      -I${LOCALBASE}/include
24 LDFLAGS+=       -L${LOCALBASE}/lib
25
26 .include <bsd.port.pre.mk>
27
28 TESTS?= generate compare
29 .if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
30 BUILD_DEPENDS+= ${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot
31 .endif
32 #the display portion of the regression tests is interactive,
33 #and requires the use of xv, xli or xzgv as an image viewer
34 .if defined(MAINTAINER_MODE) && !defined(BATCH)
35 TESTS+= display
36 .endif
37
38 check regression-test test: build
39 .for c in ${TESTS}
40         @cd ${WRKSRC}/prog; ${SETENV} \
41         LD_LIBRARY_PATH="${WRKSRC}/src/.libs:${LOCALBASE}/lib" \
42         ${WRKSRC}/prog/alltests_reg ${c}
43 .endfor
44
45 post-install:
46         ${CAT} ${PKGMESSAGE}
47
48 .include <bsd.port.post.mk>