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