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