aboutsummaryrefslogtreecommitdiff
path: root/graphics/leptonica/Makefile
blob: 5362f3b7c71a534ec19919696b08984706eba23a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:	leptonlib
# Date created:		2009-05-20
# Whom:			Hiroto Kagotani <hiroto.kagotani@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	leptonica
PORTVERSION=	1.68
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.5:${PORTSDIR}/graphics/giflib \
		jpeg.11:${PORTSDIR}/graphics/jpeg \
		png.6:${PORTSDIR}/graphics/png \
		tiff.4:${PORTSDIR}/graphics/tiff \
		webp.2:${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

.if defined(MAINTAINER_MODE) && !defined(BATCH)
check regression-test test: build
#"display" requires the installation of graphics/xzgv
.for c in generate compare display
	@${SETENV} \
	LD_LIBRARY_PATH="${WRKSRC}/src/.libs:${LOCALBASE}/lib" \
	PATH="${PATH}:${WRKSRC}/prog" \
	${WRKSRC}/prog/alltests_reg ${c}
.endfor

.endif
.include <bsd.port.mk>