aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/exrtools/Makefile
blob: c6f5e493b87e76d17f5ddebca02db1438c6e294a (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
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$

PORTNAME=   exrtools
PORTVERSION=    0.4
PORTREVISION=   7
CATEGORIES= graphics
MASTER_SITES=   http://scanline.ca/exrtools/ \
        CRITICAL

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Utilities for manipulating with HDR images in OpenEXR format

LICENSE=    GPLv2

LIB_DEPENDS=    IlmImf:${PORTSDIR}/graphics/OpenEXR \
        png15:${PORTSDIR}/graphics/png \
        jpeg:${PORTSDIR}/graphics/jpeg

GNU_CONFIGURE=  yes
USES=       pkgconfig gmake

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

PLIST_FILES=    bin/exrblur bin/exrchr bin/exricamtm bin/exrnlm \
        bin/exrnormalize bin/exrpptm bin/exrstats \
        bin/exrtopng bin/jpegtoexr bin/pngtoexr bin/ppmtoexr

MAN1=       exrblur.1 exrchr.1 exricamtm.1 exrnlm.1 exrnormalize.1 \
        exrpptm.1 exrstats.1 exrtools.1 exrtopng.1 jpegtoexr.1 \
        pngtoexr.1 ppmtoexr.1

post-patch:
    @${REINPLACE_CMD} -e 's|<values\.h>|<float.h>|' \
        ${WRKSRC}/src/exrnormalize.c \
        ${WRKSRC}/src/exrpptm.c \
        ${WRKSRC}/src/exrstats.c

.include <bsd.port.mk>