2013-03-06 01:30:39 +01:00
|
|
|
# Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
|
2009-05-31 22:23:11 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2011-12-20 16:22:34 +01:00
|
|
|
PORTNAME= leptonica
|
2017-03-03 06:30:44 +01:00
|
|
|
PORTVERSION= 1.74.1
|
2017-04-30 14:50:54 +02:00
|
|
|
PORTREVISION= 1
|
2009-05-31 22:23:11 +02:00
|
|
|
CATEGORIES= graphics
|
2014-05-21 10:09:18 +02:00
|
|
|
MASTER_SITES= http://www.leptonica.com/source/
|
2009-05-31 22:23:11 +02:00
|
|
|
|
|
|
|
MAINTAINER= hiroto.kagotani@gmail.com
|
|
|
|
COMMENT= C library for efficient image processing and image analysis operations
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libgif.so:graphics/giflib \
|
|
|
|
libopenjp2.so:graphics/openjpeg \
|
|
|
|
libpng.so:graphics/png \
|
|
|
|
libtiff.so:graphics/tiff \
|
|
|
|
libwebp.so:graphics/webp
|
2009-05-31 22:23:11 +02:00
|
|
|
|
2011-12-20 16:22:34 +01:00
|
|
|
CONFLICTS= leptonlib-[0-9]*
|
2009-05-31 22:23:11 +02:00
|
|
|
|
2016-10-21 17:21:13 +02:00
|
|
|
USES= jpeg libtool pathfix
|
2011-12-20 16:22:34 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-05-31 22:23:11 +02:00
|
|
|
USE_LDCONFIG= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2014-05-21 10:09:18 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2009-05-31 22:23:11 +02:00
|
|
|
|
2013-03-06 01:30:39 +01:00
|
|
|
TESTS?= generate compare
|
|
|
|
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/gnuplot:math/gnuplot
|
2013-03-06 01:30:39 +01:00
|
|
|
.endif
|
|
|
|
#the display portion of the regression tests is interactive,
|
|
|
|
#and requires the use of xv, xli or xzgv as an image viewer
|
2011-12-20 16:22:34 +01:00
|
|
|
.if defined(MAINTAINER_MODE) && !defined(BATCH)
|
2013-03-06 01:30:39 +01:00
|
|
|
TESTS+= display
|
|
|
|
.endif
|
|
|
|
|
2011-12-20 16:22:34 +01:00
|
|
|
check regression-test test: build
|
2013-03-06 01:30:39 +01:00
|
|
|
.for c in ${TESTS}
|
|
|
|
@cd ${WRKSRC}/prog; ${SETENV} \
|
2011-12-20 16:22:34 +01:00
|
|
|
LD_LIBRARY_PATH="${WRKSRC}/src/.libs:${LOCALBASE}/lib" \
|
|
|
|
${WRKSRC}/prog/alltests_reg ${c}
|
|
|
|
.endfor
|
|
|
|
|
2014-01-18 10:43:41 +01:00
|
|
|
.include <bsd.port.mk>
|