Lines 1-24
Link Here
|
1 |
# New ports collection makefile for: leptonlib |
1 |
# Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com> |
2 |
# Date created: 2009-05-20 |
|
|
3 |
# Whom: Hiroto Kagotani <hiroto.kagotani@gmail.com> |
4 |
# |
5 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= leptonica |
4 |
PORTNAME= leptonica |
9 |
PORTVERSION= 1.68 |
5 |
PORTVERSION= 1.69 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
12 |
MASTER_SITES= GOOGLE_CODE |
7 |
MASTER_SITES= GOOGLE_CODE |
13 |
|
8 |
|
14 |
MAINTAINER= hiroto.kagotani@gmail.com |
9 |
MAINTAINER= hiroto.kagotani@gmail.com |
15 |
COMMENT= C library for efficient image processing and image analysis operations |
10 |
COMMENT= C library for efficient image processing and image analysis operations |
16 |
|
11 |
|
17 |
LIB_DEPENDS= gif.5:${PORTSDIR}/graphics/giflib \ |
12 |
LIB_DEPENDS= gif:${PORTSDIR}/graphics/giflib \ |
18 |
jpeg.11:${PORTSDIR}/graphics/jpeg \ |
13 |
jpeg:${PORTSDIR}/graphics/jpeg \ |
19 |
png15:${PORTSDIR}/graphics/png \ |
14 |
png15:${PORTSDIR}/graphics/png \ |
20 |
tiff.4:${PORTSDIR}/graphics/tiff \ |
15 |
tiff:${PORTSDIR}/graphics/tiff \ |
21 |
webp.2:${PORTSDIR}/graphics/webp |
16 |
webp:${PORTSDIR}/graphics/webp |
22 |
|
17 |
|
23 |
CONFLICTS= leptonlib-[0-9]* |
18 |
CONFLICTS= leptonlib-[0-9]* |
24 |
|
19 |
|
Lines 28-42
Link Here
|
28 |
CPPFLAGS+= -I${LOCALBASE}/include |
23 |
CPPFLAGS+= -I${LOCALBASE}/include |
29 |
LDFLAGS+= -L${LOCALBASE}/lib |
24 |
LDFLAGS+= -L${LOCALBASE}/lib |
30 |
|
25 |
|
|
|
26 |
.include <bsd.port.pre.mk> |
27 |
|
28 |
TESTS?= generate compare |
29 |
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING) |
30 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot |
31 |
.endif |
32 |
#the display portion of the regression tests is interactive, |
33 |
#and requires the use of xv, xli or xzgv as an image viewer |
31 |
.if defined(MAINTAINER_MODE) && !defined(BATCH) |
34 |
.if defined(MAINTAINER_MODE) && !defined(BATCH) |
|
|
35 |
TESTS+= display |
36 |
.endif |
37 |
|
32 |
check regression-test test: build |
38 |
check regression-test test: build |
33 |
#"display" requires the installation of graphics/xzgv |
39 |
.for c in ${TESTS} |
34 |
.for c in generate compare display |
40 |
@cd ${WRKSRC}/prog; ${SETENV} \ |
35 |
@${SETENV} \ |
|
|
36 |
LD_LIBRARY_PATH="${WRKSRC}/src/.libs:${LOCALBASE}/lib" \ |
41 |
LD_LIBRARY_PATH="${WRKSRC}/src/.libs:${LOCALBASE}/lib" \ |
37 |
PATH="${PATH}:${WRKSRC}/prog" \ |
|
|
38 |
${WRKSRC}/prog/alltests_reg ${c} |
42 |
${WRKSRC}/prog/alltests_reg ${c} |
39 |
.endfor |
43 |
.endfor |
40 |
|
44 |
|
41 |
.endif |
45 |
post-install: |
42 |
.include <bsd.port.mk> |
46 |
${CAT} ${PKGMESSAGE} |
|
|
47 |
|
48 |
.include <bsd.port.post.mk> |