summaryrefslogtreecommitdiff
path: root/graphics/pfstools/Makefile
blob: 53d15e12f62429ec072a30b4e15cbe1c6b6acb53 (plain)
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
47
48
# $NetBSD: Makefile,v 1.38 2016/03/05 11:28:40 jperkin Exp $

DISTNAME=	pfstools-2.0.4
PKGREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=pfstools/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://pfstools.sourceforge.net/
COMMENT=	Tools for manipulating HDR images and video frames
LICENSE=	gnu-lgpl-v2.1

USE_CMAKE=		yes
USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes
USE_TOOLS+=		bash perl pkg-config
CMAKE_ARGS+=		-DBASH_EXECUTABLE=${TOOLS_BASH}
CMAKE_ARGS+=		-DPKGMANDIR=${PKGMANDIR}
CMAKE_ARGS+=		-DWITH_FFTW=NO
CMAKE_ARGS+=		-DWITH_MATLAB=NO
CMAKE_ARGS+=		-DWITH_OpenCV=NO

PKGCONFIG_OVERRIDE+=	src/pfs/pfs.pc.in

DEPENDS+=	dcraw-[0-9]*:../../graphics/dcraw

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	pre-configure
SUBST_MESSAGE.paths=	Fixing paths in CMake modules.
SUBST_FILES.paths=	cmake/Find*.cmake
SUBST_SED.paths=	-e 's,/usr/local,${LOCALBASE},g'

SUBST_CLASSES+=		perl
SUBST_STAGE.perl=	pre-configure
SUBST_MESSAGE.perl=	Imprinting Perl path.
SUBST_FILES.perl=	src/camera/pfsinhdrgen.in
SUBST_SED.perl=		-e 's,@PERL_PATH@,${PERL5},g'

.include "options.mk"

.include "../../graphics/libexif/buildlink3.mk"
.include "../../graphics/netpbm/buildlink3.mk"
.include "../../graphics/openexr/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
#.include "../../math/fftw/buildlink3.mk"
.include "../../math/gsl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"