aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/pfscalibration/Makefile
blob: 420eab915873c16ab5ee71efa36c22c412994c78 (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
# New ports collection makefile for:   pfscalibration
# Date created:        Fri Jun  1 15:44:40 UTC 2007
# Whom:                argv[0] (Iouri V. Ivliev)
#
# $FreeBSD$

PORTNAME=   pfscalibration
PORTVERSION=    1.3
PORTREVISION=   4
CATEGORIES= graphics
MASTER_SITES=   SF/pfstools/${PORTNAME}/${PORTVERSION}

MAINTAINER= ii@any.com.ru
COMMENT=    Photometric calibration of cameras and recovery HDR images from the set of LDR exposures

PFS_CPPFLAGS=   -I${LOCALBASE}/include
PFS_LDFLAGS=    -L${LOCALBASE}/lib

GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${PFS_CPPFLAGS}" \
        LDFLAGS="${PFS_LDFLAGS}"
USE_GMAKE=  yes
USE_PERL5=  yes

LIB_DEPENDS=    pfs-1.2:${PORTSDIR}/graphics/pfstools

MAN1=       jpeg2hdrgen.1 \
        dcraw2hdrgen.1 \
        pfsinhdrgen.1 \
        pfshdrcalibrate.1

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e "s,#!/bin/bash,#!/bin/sh," \
        ${WRKSRC}/src/dcraw2hdrgen \
        ${WRKSRC}/src/jpeg2hdrgen

.include <bsd.port.post.mk>