aboutsummaryrefslogtreecommitdiff
path: root/graphics/openimageio
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2012-04-17 16:04:20 +0000
committerPawel Pekala <pawel@FreeBSD.org>2012-04-17 16:04:20 +0000
commit5396fd7707910c35cd6b1d1c180378c50ca2738b (patch)
treeb31db8c5fa7749420fb169a594d580b632039b7d /graphics/openimageio
parent586f7257b922da7ad630f31591b35776fc93b297 (diff)
downloadports-5396fd7707910c35cd6b1d1c180378c50ca2738b.tar.gz
ports-5396fd7707910c35cd6b1d1c180378c50ca2738b.zip
Notes
Diffstat (limited to 'graphics/openimageio')
-rw-r--r--graphics/openimageio/Makefile92
-rw-r--r--graphics/openimageio/distinfo2
-rw-r--r--graphics/openimageio/files/patch-src_iv_imageviewer.cpp14
-rw-r--r--graphics/openimageio/files/patch-src_ptex.imageio_ptex_Ptexture.h17
-rw-r--r--graphics/openimageio/pkg-descr10
-rw-r--r--graphics/openimageio/pkg-plist71
6 files changed, 206 insertions, 0 deletions
diff --git a/graphics/openimageio/Makefile b/graphics/openimageio/Makefile
new file mode 100644
index 000000000000..0f8251e5b97a
--- /dev/null
+++ b/graphics/openimageio/Makefile
@@ -0,0 +1,92 @@
+# New ports collection makefile for: OpenImageIO
+# Date created: 21 March 2012
+# Whom: Shane Ambler
+#
+# $FreeBSD$
+#
+
+PORTNAME= openimageio
+PORTVERSION= 1.0.2
+CATEGORIES= graphics multimedia
+MASTER_SITES= https://github.com/OpenImageIO/oiio/tarball/
+DISTNAME= Release-${PORTVERSION}
+EXTRACT_SUFX=
+DIST_SUBDIR= ${PORTNAME}
+
+MAINTAINER= FreeBSD@Shaneware.biz
+COMMENT= OpenImageIO graphics library
+
+LICENSE= BSD
+
+LIB_DEPENDS= openjpeg:${PORTSDIR}/graphics/openjpeg \
+ opencv_legacy.2:${PORTSDIR}/graphics/opencv \
+ boost_thread.4:${PORTSDIR}/devel/boost-libs \
+ IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
+ tbb.4:${PORTSDIR}/devel/tbb \
+ webp.2:${PORTSDIR}/graphics/webp \
+ hdf5:${PORTSDIR}/science/hdf5
+
+FETCH_ARGS= -pRr
+USE_CMAKE= yes
+CMAKE_VERBOSE= yes
+CMAKE_OUTSOURCE= yes
+CMAKE_ARGS= -DBUILDSTATIC:BOOL=OFF \
+ -DLINKSTATIC:BOOL=OFF \
+ -DUSE_TBB:BOOL=ON
+LDFLAGS+= -ltbb
+USE_LDCONFIG= yes
+WRKSRC= ${WRKDIR}/OpenImageIO-oiio-1595432/src
+MAKE_JOBS_SAFE= yes
+
+OPTIONS= IMAGEVIEWER "Build image viewer" on \
+ PYTHON "Python bindings" on \
+ NOTHREADS "Disable thread support" off
+
+post-patch:
+ @${REINPLACE_CMD} 's|lib/python|lib/${PYTHON_VERSION}|' \
+ ${WRKSRC}/CMakeLists.txt
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_IMAGEVIEWER)
+USE_GL= glew
+USE_QT_VER= 4
+QT_COMPONENTS= corelib gui opengl qmake_build moc_build rcc_build uic_build
+CMAKE_ARGS+= -DUSE_QT:BOOL=ON -DUSE_OPENGL:BOOL=ON
+CMAKE_ENV+= QTDIR=${QT_PREFIX} QT_INCLUDES=${QT_INCDIR}
+PLIST_SUB+= IMAGEVIEWER=""
+.else
+CMAKE_ARGS+= -DUSE_OPENGL:BOOL=OFF -DUSE_QT:BOOL=OFF
+PLIST_SUB+= IMAGEVIEWER="@comment "
+.endif
+
+.if defined(WITH_PYTHON)
+CMAKE_ARGS+= -DUSE_PYTHON:BOOL=ON
+USE_PYTHON= 2.6+
+LIB_DEPENDS+= boost_python:${PORTSDIR}/devel/boost-python-libs
+PLIST_SUB+= PYTHON_BIND=""
+.else
+CMAKE_ARGS+= -DUSE_PYTHON:BOOL=OFF
+PLIST_SUB+= PYTHON_BIND="@comment "
+.endif
+
+.if defined(WITH_NOTHREADS)
+CMAKE_ARGS+= -DNOTHREADS:BOOL=ON
+.else
+CMAKE_ARGS+= -DNOTHREADS:BOOL=OFF
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "i386" || ${OSVERSION} < 803000
+USE_GCC= 4.6+
+.endif
+
+.if ${OSVERSION} < 800000
+IGNORE= requires FreeBSD 8.0 or higher
+.endif
+
+post-install:
+ cd ${PREFIX}/lib && ${LN} -sf libOpenImageIO.so.1.0 libOpenImageIO.so.1
+
+.include <bsd.port.post.mk>
diff --git a/graphics/openimageio/distinfo b/graphics/openimageio/distinfo
new file mode 100644
index 000000000000..58d5cdcf107c
--- /dev/null
+++ b/graphics/openimageio/distinfo
@@ -0,0 +1,2 @@
+SHA256 (openimageio/Release-1.0.2) = effcdf1ef5592fb1509cf4ac5500483d3967a6e5bd4d29c40b9170b3c1055600
+SIZE (openimageio/Release-1.0.2) = 4158852
diff --git a/graphics/openimageio/files/patch-src_iv_imageviewer.cpp b/graphics/openimageio/files/patch-src_iv_imageviewer.cpp
new file mode 100644
index 000000000000..ebf592bd8e59
--- /dev/null
+++ b/graphics/openimageio/files/patch-src_iv_imageviewer.cpp
@@ -0,0 +1,14 @@
+--- iv/imageviewer.cpp.orig 2012-04-17 17:04:57.000000000 +0930
++++ iv/imageviewer.cpp 2012-04-17 17:05:43.000000000 +0930
+@@ -49,6 +49,11 @@
+ #include "sysutil.h"
+ #include "filesystem.h"
+
++#if !defined(log2f)
++
++inline float log2f(float x) {return logf(x)*(float)1.4426950408889634;}
++
++#endif /* log2f */
+
+ namespace
+ {
diff --git a/graphics/openimageio/files/patch-src_ptex.imageio_ptex_Ptexture.h b/graphics/openimageio/files/patch-src_ptex.imageio_ptex_Ptexture.h
new file mode 100644
index 000000000000..eca1279958ec
--- /dev/null
+++ b/graphics/openimageio/files/patch-src_ptex.imageio_ptex_Ptexture.h
@@ -0,0 +1,17 @@
+--- ptex.imageio/ptex/Ptexture.h.orig 2012-03-30 22:01:12.000000000 +1030
++++ ptex.imageio/ptex/Ptexture.h 2012-03-30 22:01:35.000000000 +1030
+@@ -41,6 +41,14 @@
+ @brief Public API classes for reading, writing, caching, and filtering Ptex files.
+ */
+
++#include "fmath.h"
++
++#if !defined(log2)
++
++inline double log2(double x) {return log(x)*(double)1.4426950408889634;}
++
++#endif /* log2 */
++
+ #if defined(_WIN32) || defined(_WINDOWS) || defined(_MSC_VER)
+ # ifndef PTEXAPI
+ # ifndef PTEX_STATIC
diff --git a/graphics/openimageio/pkg-descr b/graphics/openimageio/pkg-descr
new file mode 100644
index 000000000000..33f3f6ecbe18
--- /dev/null
+++ b/graphics/openimageio/pkg-descr
@@ -0,0 +1,10 @@
+OpenImageIO is a library for reading and writing images, and a bunch of
+related classes, utilities, and applications.
+
+There is a particular emphasis on formats and functionality used
+in professional, large-scale animation and visual effects work for film.
+
+OpenImageIO is used extensively in animation and VFX studios all over the world,
+and is also incorporated into several commercial products.
+
+WWW: http://www.openimageio.org
diff --git a/graphics/openimageio/pkg-plist b/graphics/openimageio/pkg-plist
new file mode 100644
index 000000000000..cce68f59125a
--- /dev/null
+++ b/graphics/openimageio/pkg-plist
@@ -0,0 +1,71 @@
+bin/iconvert
+bin/idiff
+bin/igrep
+bin/iinfo
+bin/iprocess
+%%IMAGEVIEWER%%bin/iv
+bin/maketx
+bin/oiiotool
+include/OpenImageIO/tbb/machine/ibm_aix51.h
+include/OpenImageIO/tbb/machine/linux_common.h
+include/OpenImageIO/tbb/machine/linux_ia32.h
+include/OpenImageIO/tbb/machine/linux_ia64.h
+include/OpenImageIO/tbb/machine/linux_intel64.h
+include/OpenImageIO/tbb/machine/mac_ppc.h
+include/OpenImageIO/tbb/machine/windows_ia32.h
+include/OpenImageIO/tbb/machine/windows_intel64.h
+@dirrmtry include/OpenImageIO/tbb/machine
+include/OpenImageIO/tbb/_tbb_windef.h
+include/OpenImageIO/tbb/aligned_space.h
+include/OpenImageIO/tbb/atomic.h
+include/OpenImageIO/tbb/spin_mutex.h
+include/OpenImageIO/tbb/spin_rw_mutex.h
+include/OpenImageIO/tbb/tbb_allocator.h
+include/OpenImageIO/tbb/tbb_assert_impl.h
+include/OpenImageIO/tbb/tbb_config.h
+include/OpenImageIO/tbb/tbb_exception.h
+include/OpenImageIO/tbb/tbb_machine.h
+include/OpenImageIO/tbb/tbb_misc.h
+include/OpenImageIO/tbb/tbb_profiling.h
+include/OpenImageIO/tbb/tbb_stddef.h
+include/OpenImageIO/tbb/tbb_version.h
+@dirrmtry include/OpenImageIO/tbb
+include/OpenImageIO/argparse.h
+include/OpenImageIO/color.h
+include/OpenImageIO/dassert.h
+include/OpenImageIO/errorhandler.h
+include/OpenImageIO/export.h
+include/OpenImageIO/filesystem.h
+include/OpenImageIO/filter.h
+include/OpenImageIO/fmath.h
+include/OpenImageIO/hash.h
+include/OpenImageIO/imagebuf.h
+include/OpenImageIO/imagebufalgo.h
+include/OpenImageIO/imagecache.h
+include/OpenImageIO/imageio.h
+include/OpenImageIO/optparser.h
+include/OpenImageIO/osdep.h
+include/OpenImageIO/paramlist.h
+include/OpenImageIO/plugin.h
+include/OpenImageIO/refcnt.h
+include/OpenImageIO/strutil.h
+include/OpenImageIO/sysutil.h
+include/OpenImageIO/texture.h
+include/OpenImageIO/thread.h
+include/OpenImageIO/timer.h
+include/OpenImageIO/typedesc.h
+include/OpenImageIO/ustring.h
+include/OpenImageIO/varyingref.h
+include/OpenImageIO/pugixml.hpp
+include/OpenImageIO/pugiconfig.hpp
+include/OpenImageIO/version.h
+@dirrmtry include/OpenImageIO
+lib/libOpenImageIO.so
+lib/libOpenImageIO.so.1
+lib/libOpenImageIO.so.1.0
+lib/libOpenImageIO.so.1.0.2
+%%PYTHON_BIND%%%%PYTHON_SITELIBDIR%%/OpenImageIO.so
+share/doc/openimageio/openimageio.pdf
+share/doc/openimageio/LICENSE
+share/doc/openimageio/CHANGES
+@dirrmtry share/doc/openimageio