aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/leptonica/Makefile
blob: 205c27b0edda5ab0b6fedd614acca58759ee819c (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
# New ports collection makefile for:    leptonlib
# Date created:     2009-05-20
# Whom:         Hiroto Kagotani <hiroto.kagotani@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   leptonlib
PORTVERSION=    1.60
CATEGORIES= graphics
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= hiroto.kagotani@gmail.com
COMMENT=    C library for efficient image processing and image analysis operations

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        tiff.4:${PORTSDIR}/graphics/tiff

PROJECTHOST=    leptonica

MAKE_JOBS_SAFE= yes
USE_AUTOTOOLS=  libtool:15 aclocal:110 automake:110 autoconf:262
ACLOCAL_ARGS=   --acdir=${ACLOCAL_DIR} -I${LOCALBASE}/share/aclocal
USE_LDCONFIG=   yes
CONFIGURE_ENV=  CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib

post-patch:
    @${MV} ${WRKSRC}/src/makefile ${WRKSRC}/src/makefile.linux
    @${RM} ${WRKSRC}/src/jpeglib.h ${WRKSRC}/src/jmorecfg.h

pre-configure:
    @(cd ${CONFIGURE_WRKSRC} \
        && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} --automake)

run-autotools:: run-autotools-aclocal run-autotools-automake run-autotools-autoconf

.include <bsd.port.mk>