1 # Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
2 # $FreeBSD: graphics/leptonica/Makefile 324744 2013-08-14 22:35:50Z ak $
7 MASTER_SITES= GOOGLE_CODE
9 MAINTAINER= hiroto.kagotani@gmail.com
10 COMMENT= C library for efficient image processing and image analysis operations
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
18 CONFLICTS= leptonlib-[0-9]*
22 CPPFLAGS+= -I${LOCALBASE}/include
23 LDFLAGS+= -L${LOCALBASE}/lib
25 .include <bsd.port.pre.mk>
27 TESTS?= generate compare
28 .if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
29 BUILD_DEPENDS+= ${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot
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)
37 check regression-test test: build
39 @cd ${WRKSRC}/prog; ${SETENV} \
40 LD_LIBRARY_PATH="${WRKSRC}/src/.libs:${LOCALBASE}/lib" \
41 ${WRKSRC}/prog/alltests_reg ${c}
47 .include <bsd.port.post.mk>