1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/graphics/leptonica/Makefile
Brendan Fabeny b97cc43716 update to 1.69 and adjust dependent ports
PR:		175960
Approved by:	maintainer timeout (25 days)
2013-03-06 00:30:39 +00:00

49 lines
1.2 KiB
Makefile

# Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
# $FreeBSD$
PORTNAME= leptonica
PORTVERSION= 1.69
CATEGORIES= graphics
MASTER_SITES= GOOGLE_CODE
MAINTAINER= hiroto.kagotani@gmail.com
COMMENT= C library for efficient image processing and image analysis operations
LIB_DEPENDS= gif:${PORTSDIR}/graphics/giflib \
jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \
tiff:${PORTSDIR}/graphics/tiff \
webp:${PORTSDIR}/graphics/webp
CONFLICTS= leptonlib-[0-9]*
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
TESTS?= generate compare
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
BUILD_DEPENDS+= ${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot
.endif
#the display portion of the regression tests is interactive,
#and requires the use of xv, xli or xzgv as an image viewer
.if defined(MAINTAINER_MODE) && !defined(BATCH)
TESTS+= display
.endif
check regression-test test: build
.for c in ${TESTS}
@cd ${WRKSRC}/prog; ${SETENV} \
LD_LIBRARY_PATH="${WRKSRC}/src/.libs:${LOCALBASE}/lib" \
${WRKSRC}/prog/alltests_reg ${c}
.endfor
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>