svn commit: r395622 - in head/graphics: . hdr_tools hdr_tools/files

Alexey Dokuchaev danfe at FreeBSD.org
Sun Aug 30 15:25:29 UTC 2015


Author: danfe
Date: Sun Aug 30 15:25:26 2015
New Revision: 395622
URL: https://svnweb.freebsd.org/changeset/ports/395622

Log:
  Add a port of HDR tools, a set of command-line utilities for creating and
  manipulating High Dynamic Range (HDR) images.
  
  WWW: http://ttic.uchicago.edu/~cotter/projects/hdr_tools/

Added:
  head/graphics/hdr_tools/
  head/graphics/hdr_tools/Makefile   (contents, props changed)
  head/graphics/hdr_tools/distinfo   (contents, props changed)
  head/graphics/hdr_tools/files/
  head/graphics/hdr_tools/files/patch-Makefile   (contents, props changed)
  head/graphics/hdr_tools/pkg-descr   (contents, props changed)
Modified:
  head/graphics/Makefile

Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile	Sun Aug 30 14:38:27 2015	(r395621)
+++ head/graphics/Makefile	Sun Aug 30 15:25:26 2015	(r395622)
@@ -329,6 +329,7 @@
     SUBDIR += guilib
     SUBDIR += gwenview-kde4
     SUBDIR += gx
+    SUBDIR += hdr_tools
     SUBDIR += hobbes-icons-xpm
     SUBDIR += hppsmtools
     SUBDIR += hs-HGL

Added: head/graphics/hdr_tools/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/hdr_tools/Makefile	Sun Aug 30 15:25:26 2015	(r395622)
@@ -0,0 +1,52 @@
+# Created by: Alexey Dokuchaev <danfe at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	hdr_tools
+PORTVERSION=	0.0.2010.11.23	# unspecified by the author, so use the date
+CATEGORIES=	graphics
+MASTER_SITES=	http://ttic.uchicago.edu/~cotter/projects/hdr_tools/archives/ \
+		http://freebsd.nsu.ru/distfiles/
+DISTNAME=	hdr_src
+
+MAINTAINER=	danfe at FreeBSD.org
+COMMENT=	Command-line tools for creating and manipulating HDR images
+
+LICENSE=	GPLv3
+
+LIB_DEPENDS=	libpopt.so:${PORTSDIR}/devel/popt \
+		libtiff.so:${PORTSDIR}/graphics/tiff \
+		libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
+		libMagick++-6.so:${PORTSDIR}/graphics/ImageMagick
+
+USES=		compiler:features gmake 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
+
+# NB: `math/ldouble' port provides these functions, but does not export
+# them correctly; as a result linking with C++ code is currently broken
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000034
+BROKEN=		requires logl(), expl(), log2l()
+.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>

Added: head/graphics/hdr_tools/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/hdr_tools/distinfo	Sun Aug 30 15:25:26 2015	(r395622)
@@ -0,0 +1,2 @@
+SHA256 (hdr_src.tgz) = 8df65c7198552f33040c6400759b3849bd3212c04d434cda8a2b86f99694eb01
+SIZE (hdr_src.tgz) = 38943

Added: head/graphics/hdr_tools/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/hdr_tools/files/patch-Makefile	Sun Aug 30 15:25:26 2015	(r395622)
@@ -0,0 +1,47 @@
+--- Makefile.orig	2010-11-23 21:27:55 UTC
++++ Makefile
+@@ -31,8 +31,12 @@ DEPENDENCY_HEADERS = \
+ 
+ 
+ ifeq (${PLATFORM},linux)
+-CFLAGS = -pthread -fopenmp -Wall -msse2 -mfpmath=sse -I/usr/include/ImageMagick -I/usr/include/OpenEXR
+-LDFLAGS = -lIlmImf -lMagick++ -ltiff -lpopt -lstdc++ -lm
++CXX?=		c++
++CXXFLAGS+=	-Wall
++CPPFLAGS+=	`pkg-config --cflags popt` `pkg-config --cflags OpenEXR` \
++		`Magick++-config --cppflags`
++LDFLAGS+=	`pkg-config --libs popt` `pkg-config --libs libtiff-4` \
++		`pkg-config --libs OpenEXR` `Magick++-config --libs`
+ EXECUTABLES = ${TARGET_SOURCES:%.cc=%}
+ endif
+ 
+@@ -64,14 +68,24 @@ CFLAGS := -O3 -funroll-loops -fomit-fram
+ endif
+ 
+ 
++TARGET_OBJS = $(TARGET_SOURCES:%.cc=%.o)
++DEPENDENCY_OBJS = $(DEPENDENCY_SOURCES:%.cc=%.o)
++
+ .PHONY : all
+-all : ${TARGET_SOURCES:%.cc=%}
++all : $(EXECUTABLES)
+ 
+-% : %.cc $(DEPENDENCY_HEADERS) $(DEPENDENCY_SOURCES) Makefile
+-	@echo "----  building \"$@\" from \"$<\" ($(PLATFORM)/$(BUILD))  ----"
+-	g++ $(CFLAGS) $< $(DEPENDENCY_SOURCES) -o $@ $(LDFLAGS)
+-	@echo
++$(TARGET_OBJS) $(DEPENDENCY_OBJS) : $(DEPENDENCY_HEADERS)
++$(EXECUTABLES) : $(DEPENDENCY_OBJS)
++$(foreach prog,$(EXECUTABLES),$(eval $$prog : $$prog.o))
++
++%.o : %.cc
++# Clang cannot compile image.cc and squish_luminance.cc with -O2 and above
++	$(CXX) $(if $(and $(shell $(CXX) -v 2>&1 | grep clang),$(filter \
++		image.cc squish_luminance.cc,$<)),$(CXXFLAGS:-O%=-O1), \
++		$(CXXFLAGS)) $(CPPFLAGS) -o $@ -c $<
+ 
++% : %.o
++	$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
+ 
+ .PHONY : strip
+ strip : all

Added: head/graphics/hdr_tools/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/hdr_tools/pkg-descr	Sun Aug 30 15:25:26 2015	(r395622)
@@ -0,0 +1,11 @@
+HDR Tools is a set of command-line tools for creating and manipulating High
+Dynamic Range (HDR) images.  It consists of six programs: hdr_create,
+hdr_fix_ca, hdr_denoise, hdr_squish, hdr_adjust, and hdr_convert.
+
+Together, they can convert a set of bracketed photographs to HDR image (in
+EXR format), fix chromatic aberrations and CCD noise, perform tone mapping
+and some simple color manipulations, apply gamma correction and optionally
+adjusts the exposure, crop, and finally convert the result into a "normal"
+image (a JPG, for example).
+
+WWW: http://ttic.uchicago.edu/~cotter/projects/hdr_tools/


More information about the svn-ports-all mailing list