View | Details | Raw Unified | Return to bug 228107
Collapse All | Expand All

(-)graphics/leptonica/Makefile (-25 / +23 lines)
Lines 3-24 Link Here
3
3
4
PORTNAME=	leptonica
4
PORTNAME=	leptonica
5
PORTVERSION=	1.76.0
5
PORTVERSION=	1.76.0
6
PORTREVISION=	1
6
CATEGORIES=	graphics
7
CATEGORIES=	graphics
7
8
8
MAINTAINER=	hiroto.kagotani@gmail.com
9
MAINTAINER=	hiroto.kagotani@gmail.com
9
COMMENT=	C library for efficient image processing and image analysis operations
10
COMMENT=	C library for efficient image processing and image analysis operations
10
11
11
LIB_DEPENDS=	libgif.so:graphics/giflib \
12
LICENSE=	BSD2CLAUSE
12
		libopenjp2.so:graphics/openjpeg \
13
LICENSE_FILE=	${WRKSRC}/leptonica-license.txt
13
		libpng.so:graphics/png \
14
		libtiff.so:graphics/tiff \
15
		libwebp.so:graphics/webp
16
14
17
LICENSE_FILE=	leptonica-license.txt
18
19
CONFLICTS=	leptonlib-[0-9]*
15
CONFLICTS=	leptonlib-[0-9]*
20
16
21
USES=		autoreconf jpeg libtool pathfix pkgconfig
17
USES=		autoreconf localbase libtool pathfix pkgconfig
22
18
23
USE_GITHUB=	yes
19
USE_GITHUB=	yes
24
GH_ACCOUNT=	DanBloomberg
20
GH_ACCOUNT=	DanBloomberg
Lines 25-49 Link Here
25
21
26
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
27
USE_LDCONFIG=	yes
23
USE_LDCONFIG=	yes
28
CPPFLAGS+=	-I${LOCALBASE}/include
29
LDFLAGS+=	-L${LOCALBASE}/lib
30
INSTALL_TARGET=	install-strip
24
INSTALL_TARGET=	install-strip
31
25
32
TESTS?=	generate compare
26
TEST_TARGET=	check
33
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
27
TESTS=		generate compare display
34
BUILD_DEPENDS+=	${LOCALBASE}/bin/gnuplot:math/gnuplot
35
.endif
36
#the display portion of the regression tests is interactive,
37
#and requires the use of xv, xli or xzgv as an image viewer
38
.if defined(MAINTAINER_MODE) && !defined(BATCH)
39
TESTS+=	display
40
.endif
41
28
42
check regression-test test: build
29
OPTIONS_DEFINE=		GIF JPEG OPENJPEG PNG TIFF WEBP ZLIB
43
.for c in ${TESTS}
30
OPTIONS_DEFAULT=	OPENJPEG PNG
44
	@cd ${WRKSRC}/prog; ${SETENV} \
31
OPTIONS_SUB=	yes
45
	LD_LIBRARY_PATH="${WRKSRC}/src/.libs:${LOCALBASE}/lib" \
46
	${WRKSRC}/prog/alltests_reg ${c}
47
.endfor
48
32
33
GIF_CONFIGURE_WITH=	giflib
34
GIF_LIB_DEPENDS=	libgif.so:graphics/giflib
35
JPEG_CONFIGURE_WITH=	jpeg
36
JPEG_USES=		jpeg
37
OPENJPEG_CONFIGURE_WITH=libopenjpeg
38
OPENJPEG_LIB_DEPENDS=	libopenjp2.so:graphics/openjpeg
39
PNG_CONFIGURE_WITH=	libpng
40
PNG_LIB_DEPENDS=	libpng.so:graphics/png
41
TIFF_CONFIGURE_WITH=	tiff
42
TIFF_LIB_DEPENDS=	libtiff.so:graphics/tiff
43
WEBP_CONFIGURE_WITH=	libwebp
44
WEBP_LIB_DEPENDS=	libwebp.so:graphics/webp
45
ZLIB_CONFIGURE_WITH=	zlib
46
49
.include <bsd.port.mk>
47
.include <bsd.port.mk>

Return to bug 228107