aboutsummaryrefslogtreecommitdiff
path: root/graphics/exrtools
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2005-09-15 15:22:13 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2005-09-15 15:22:13 +0000
commitff2863e5da1660a497143bfb62ab548fc53b6ede (patch)
tree3a9c09ba25146a11660184b05f55c952bbe856b0 /graphics/exrtools
parent98c35b4d0f7b66070e3b4b4005eb1a7a7a9dd208 (diff)
downloadports-ff2863e5da1660a497143bfb62ab548fc53b6ede.tar.gz
ports-ff2863e5da1660a497143bfb62ab548fc53b6ede.zip
Add exrtools 0.4, utilities for manipulating with HDR
images in OpenEXR format. PR: ports/84945 Submitted by: Emanuel Haupt <ehaupt@critical.ch>
Notes
Notes: svn path=/head/; revision=142822
Diffstat (limited to 'graphics/exrtools')
-rw-r--r--graphics/exrtools/Makefile60
-rw-r--r--graphics/exrtools/distinfo2
-rw-r--r--graphics/exrtools/pkg-descr18
3 files changed, 80 insertions, 0 deletions
diff --git a/graphics/exrtools/Makefile b/graphics/exrtools/Makefile
new file mode 100644
index 000000000000..e1d046ff8af5
--- /dev/null
+++ b/graphics/exrtools/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for: exrtools
+# Date created: 15 Aug 2005
+# Whom: Emanuel Haupt <ehaupt@critical.ch>
+#
+# $FreeBSD$
+#
+
+PORTNAME= exrtools
+PORTVERSION= 0.4
+CATEGORIES= graphics
+MASTER_SITES= http://scanline.ca/exrtools/
+
+MAINTAINER= ehaupt@critical.ch
+COMMENT= Utilities for manipulating with HDR images in OpenEXR format
+
+LIB_DEPENDS= Half:${PORTSDIR}/graphics/OpenEXR \
+ png:${PORTSDIR}/graphics/png \
+ jpeg:${PORTSDIR}/graphics/jpeg
+
+USE_LIBTOOL_VER=13
+USE_GMAKE= yes
+USE_REINPLACE= yes
+
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+
+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
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|<values\.h>|<float.h>|' \
+ ${WRKSRC}/src/exrnormalize.c \
+ ${WRKSRC}/src/exrpptm.c \
+ ${WRKSRC}/src/exrstats.c
+.if ${OSVERSION} < 500000
+ @${REINPLACE_CMD} -e 's|stdint\.h|inttypes.h|' \
+ ${WRKSRC}/src/exrblur.c \
+ ${WRKSRC}/src/exrchr.c \
+ ${WRKSRC}/src/exrnlm.c \
+ ${WRKSRC}/src/exrnormalize.c \
+ ${WRKSRC}/src/exrpptm.c \
+ ${WRKSRC}/src/ppmtoexr.c \
+ ${WRKSRC}/src/exricamtm.c \
+ ${WRKSRC}/src/jpeginput.h \
+ ${WRKSRC}/src/pngoutput.h \
+ ${WRKSRC}/src/pnginput.h
+ @${REINPLACE_CMD} -e 's|inttypes\.h|sys/types.h|' \
+ ${WRKSRC}/src/ppmtoexr.c
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/exrtools/distinfo b/graphics/exrtools/distinfo
new file mode 100644
index 000000000000..ae2d4fc33fe3
--- /dev/null
+++ b/graphics/exrtools/distinfo
@@ -0,0 +1,2 @@
+MD5 (exrtools-0.4.tar.gz) = 8533e98f78f70d8180fe6865bc383f06
+SIZE (exrtools-0.4.tar.gz) = 300197
diff --git a/graphics/exrtools/pkg-descr b/graphics/exrtools/pkg-descr
new file mode 100644
index 000000000000..b25ea946bdcb
--- /dev/null
+++ b/graphics/exrtools/pkg-descr
@@ -0,0 +1,18 @@
+exrtools is a set of simple command-line utilities for manipulating
+with high dynamic range images in OpenEXR format. OpenEXR is a high
+dynamic-range (HDR) image file format developed by Industrial Light
+& Magic for use in computer imaging applications.
+
+exrtools was developed to help experiment with batch processing of
+HDR images for tone mapping. Each application is small and
+reasonably self-contained such that the source code may be of most
+value to others.
+
+exrtools currently only works with RGBA OpenEXR files. As well, the
+code assumes that the EXR files and PNG files all use sRGB primaries
+and gamma function.
+
+WWW: http://scanline.ca/exrtools/
+
+- ehaupt
+ehaupt@critical.ch