aboutsummaryrefslogtreecommitdiff
path: root/graphics/hdr_tools/Makefile
blob: ff1a9ffcf8d6bdb8f24b7dfbf2c231b0f42fe12d (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
PORTNAME=	hdr_tools
PORTVERSION=	0.0.2010.11.23	# unspecified by the author, so use the date
PORTREVISION=	20
CATEGORIES=	graphics
MASTER_SITES=	http://ttic.uchicago.edu/~cotter/projects/hdr_tools/archives/ \
		http://freebsd.nsu.ru/distfiles/
DISTNAME=	hdr_src

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Command-line tools for creating and manipulating HDR images
WWW=		https://ttic.uchicago.edu/~cotter/projects/hdr_tools/

LICENSE=	GPLv3

LIB_DEPENDS=	libpopt.so:devel/popt \
		libtiff.so:graphics/tiff \
		libOpenEXR.so:graphics/openexr \

USES=		compiler:c++11-lang gmake magick:6 pkgconfig tar:tgz
NO_WRKSUBDIR=	yes

PROGRAMS=	hdr_adjust hdr_convert hdr_create hdr_denoise hdr_fix_ca \
		hdr_squish

PLIST_FILES=	${PROGRAMS:S,^,bin/,}

.include <bsd.port.pre.mk>

.if ${MACHINE_CPU:Msse2}
CXXFLAGS+=	-msse2 -mfpmath=sse
.endif

.if ${COMPILER_FEATURES:Mopenmp}
CXXFLAGS+=	-fopenmp
.endif

post-patch:
	@${REINPLACE_CMD} -e 's,RGBColorspace,s&,' ${WRKSRC}/image.cc

do-install:
	${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/,} \
		${STAGEDIR}/${PREFIX}/bin

.include <bsd.port.post.mk>