aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/paintlib/Makefile
blob: b21255703b030b22d64088ee6497774489478476 (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
42
43
44
45
46
# New ports collection makefile for:    paintlib
# Date created:             18 June 2004
# Whom:                 Frerich Raabe <frerich.raabe@gmx.de>
#
# $FreeBSD$
#

PORTNAME=   paintlib
PORTVERSION=    2.6.2
PORTREVISION=   5
CATEGORIES= graphics devel
MASTER_SITES=   http://www.paintlib.de/paintlib/

MAINTAINER= ports@FreeBSD.org
COMMENT=    C++ library for processing images

LIB_DEPENDS=    curl:${PORTSDIR}/ftp/curl \
        jpeg:${PORTSDIR}/graphics/jpeg \
        png:${PORTSDIR}/graphics/png \
        tiff:${PORTSDIR}/graphics/tiff \
        ungif:${PORTSDIR}/graphics/libungif

USE_AUTOTOOLS=  libtool:22
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-SDL --disable-dfb
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

MAN1=       paintlib-config.1

post-patch:
# Resolve name collision with jpeg-8
    ${REINPLACE_CMD} -e 's|jpeg_mem_dest|paintlib_jpeg_mem_dest|' \
        ${WRKSRC}/common/jmemdest.cpp \
        ${WRKSRC}/common/jmemdest.h \
        ${WRKSRC}/common/pljpegenc.cpp \
        ${WRKSRC}/doc/reference/html/jmemdest_8h-source.html

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 800501
BROKEN=     does not build
.endif

.include <bsd.port.post.mk>