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.

ok ajacoutot@
This commit is contained in:
pascal 2012-05-09 12:42:06 +00:00
parent 6b4c61c671
commit 1258c37e66
12 changed files with 277 additions and 0 deletions

View File

@ -0,0 +1,51 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/05/09 12:42:06 pascal Exp $
SHARED_ONLY = Yes
COMMENT = library for reading and writing images
MAJ = 1.0
V = ${MAJ}.4
REV = 513d0dd
DISTNAME = OpenImageIO-oiio-Release-${V}-0-g${REV}
PKGNAME = openimageio-${V}
SHARED_LIBS += OpenImageIO 0.0 # 1.0
CATEGORIES = graphics devel
HOMEPAGE = http://sites.google.com/site/openimageio/
MAINTAINER = Pascal Stumpf <Pascal.Stumpf@cubes.de>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += GL GLEW GLU Half ICE Iex IlmImf IlmThread Imath QtGui
WANTLIB += QtOpenGL SM X11 Xext boost_filesystem-mt boost_python-mt
WANTLIB += boost_regex-mt boost_system-mt boost_thread-mt c jpeg
WANTLIB += m openjpeg png pthread ${MODPY_WANTLIB} stdc++ tiff webp z
MASTER_SITES = https://github.com/OpenImageIO/oiio/tarball/RB-${MAJ}/
MODULES = devel/cmake \
lang/python \
x11/qt4
LIB_DEPENDS = devel/boost \
graphics/openjpeg \
graphics/tiff \
graphics/libwebp \
graphics/glew \
graphics/ilmbase \
graphics/openexr
CONFIGURE_ARGS += -DPYLIB_INSTALL_DIR="lib/python${MODPY_VERSION}/site-packages"
CFLAGS += -pthread
WRKDIST = ${WRKDIR}/OpenImageIO-oiio-${REV}
WRKSRC = ${WRKDIST}/src
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (OpenImageIO-oiio-Release-1.0.4-0-g513d0dd.tar.gz) = Wwme22Pg0IukPmqEZuNU7w==
RMD160 (OpenImageIO-oiio-Release-1.0.4-0-g513d0dd.tar.gz) = qCKRsx/9BJuwY6x5qBRZ+5ZSvOI=
SHA1 (OpenImageIO-oiio-Release-1.0.4-0-g513d0dd.tar.gz) = a5O9oJWNGWgtnn5DJOCRxUgcwLE=
SHA256 (OpenImageIO-oiio-Release-1.0.4-0-g513d0dd.tar.gz) = enWGVpKs1w8nahMzlhH/RhiUi7kZesiTX2a2EGQw0is=
SIZE (OpenImageIO-oiio-Release-1.0.4-0-g513d0dd.tar.gz) = 4195575

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_cmake_oiio_macros_cmake,v 1.1.1.1 2012/05/09 12:42:06 pascal Exp $
--- src/cmake/oiio_macros.cmake.orig Thu Apr 19 18:51:13 2012
+++ src/cmake/oiio_macros.cmake Mon May 7 14:52:40 2012
@@ -103,7 +103,7 @@ macro (oiio_add_tests)
if (_has_generator_expr)
set (_add_test_args NAME ${_testname}
# WORKING_DIRECTORY ${_testdir}
- COMMAND python)
+ COMMAND ${PYTHON_EXECUTABLE})
if (MSVC_IDE)
set (_extra_test_args
--devenv-config $<CONFIGURATION>
@@ -112,7 +112,7 @@ macro (oiio_add_tests)
set (_extra_test_args "")
endif ()
else ()
- set (_add_test_args ${_testname} python)
+ set (_add_test_args ${_testname} ${PYTHON_EXECUTABLE})
set (_extra_test_args "")
endif ()
message (STATUS "TEST ${_testname}: ${CMAKE_BINARY_DIR}/testsuite/runtest.py ${_testdir} ${_extra_test_args}")

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_cmake_platform_cmake,v 1.1.1.1 2012/05/09 12:42:06 pascal Exp $
--- src/cmake/platform.cmake.orig Thu Apr 19 18:51:13 2012
+++ src/cmake/platform.cmake Fri Apr 20 14:51:41 2012
@@ -23,6 +23,10 @@ if (UNIX)
else ()
string (TOLOWER ${CMAKE_SYSTEM_NAME} platform)
endif ()
+ if (${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
+ message (STATUS "OpenBSD!")
+ set (platform "openbsd")
+ endif ()
endif ()
if (WIN32)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_include_tbb_tbb_machine_h,v 1.1.1.1 2012/05/09 12:42:06 pascal Exp $
--- src/include/tbb/tbb_machine.h.orig Mon Apr 2 00:17:44 2012
+++ src/include/tbb/tbb_machine.h Mon Apr 2 00:17:59 2012
@@ -53,7 +53,7 @@ extern "C" __declspec(dllimport) int __stdcall SwitchT
#pragma managed(pop)
#endif
-#elif __linux__ || __FreeBSD__
+#elif __linux__ || __FreeBSD__ || __OpenBSD__
#if __i386__
#include "machine/linux_ia32.h"

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-src_include_tbb_tbb_misc_h,v 1.1.1.1 2012/05/09 12:42:06 pascal Exp $
--- src/include/tbb/tbb_misc.h.orig Mon Apr 2 00:57:09 2012
+++ src/include/tbb/tbb_misc.h Mon Apr 2 00:58:06 2012
@@ -42,7 +42,7 @@
#elif defined(__APPLE__)
#include <sys/types.h>
#include <sys/sysctl.h>
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
#include <unistd.h>
#endif
@@ -64,11 +64,11 @@ static inline int DetectNumberOfWorkers() {
return static_cast<int>(si.dwNumberOfProcessors);
}
-#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun)
+#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) || defined(__OpenBSD__)
static inline int DetectNumberOfWorkers() {
long number_of_workers;
-#if (defined(__FreeBSD__) || defined(__sun)) && defined(_SC_NPROCESSORS_ONLN)
+#if (defined(__FreeBSD__) || defined(__sun) || defined(__OpenBSD__)) && defined(_SC_NPROCESSORS_ONLN)
number_of_workers = sysconf(_SC_NPROCESSORS_ONLN);
// In theory, sysconf should work everywhere.

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_libtexture_texture_pvt_h,v 1.1.1.1 2012/05/09 12:42:06 pascal Exp $
--- src/libtexture/texture_pvt.h.orig Mon Apr 2 00:54:48 2012
+++ src/libtexture/texture_pvt.h Mon Apr 2 00:54:00 2012
@@ -38,6 +38,8 @@
#include "version.h"
+#undef _P
+
OIIO_NAMESPACE_ENTER
{

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-src_libutil_sysutil_cpp,v 1.1.1.1 2012/05/09 12:42:06 pascal Exp $
--- src/libutil/sysutil.cpp.orig Thu Apr 19 18:51:13 2012
+++ src/libutil/sysutil.cpp Fri Apr 20 14:51:41 2012
@@ -118,7 +118,6 @@ Sysutil::memory_used (bool resident)
#else
// No idea what platform this is
- ASSERT (0);
return 0; // Punt
#endif
}
@@ -166,7 +165,7 @@ Sysutil::this_program_path ()
sysctl(mib, 4, filename, &cb, NULL, 0);
#else
// No idea what platform this is
- ASSERT (0);
+ int r = 0;
#endif
if (r > 0)

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-src_make_detectplatform_mk,v 1.1.1.1 2012/05/09 12:42:06 pascal Exp $
--- src/make/detectplatform.mk.orig Sun Apr 1 23:51:00 2012
+++ src/make/detectplatform.mk Sun Apr 1 23:52:57 2012
@@ -25,7 +25,9 @@ ifneq (${hw},x86)
ifneq (${hw},x86_64)
ifneq (${hw},i386)
ifneq (${hw},i686)
- $(error "ERROR: Unknown hardware architecture")
+ ifneq (${hw},amd64)
+ $(error "ERROR: Unknown hardware architecture")
+ endif
endif
endif
endif
@@ -57,6 +59,10 @@ ifeq (${platform},unknown)
# Mac OS X
ifeq (${uname},darwin)
platform := macosx
+ endif
+
+ ifeq (${uname},openbsd)
+ platform := openbsd
endif
# If we haven't been able to determine the platform from uname, use

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_ptex_imageio_ptex_PtexPlatform_h,v 1.1.1.1 2012/05/09 12:42:06 pascal Exp $
--- src/ptex.imageio/ptex/PtexPlatform.h.orig Thu Apr 19 18:51:13 2012
+++ src/ptex.imageio/ptex/PtexPlatform.h Fri Apr 20 14:53:16 2012
@@ -59,8 +59,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY O
#else
// linux/unix/posix
+#include <sys/param.h>
#include <stdlib.h>
-#ifndef __FreeBSD__
+#ifndef BSD
#include <alloca.h>
#endif
#include <string.h>

View File

@ -0,0 +1,6 @@
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.

View File

@ -0,0 +1,71 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/05/09 12:42:06 pascal Exp $
@bin bin/iconvert
@bin bin/idiff
@bin bin/igrep
@bin bin/iinfo
@bin bin/iprocess
@bin bin/iv
@bin bin/maketx
@bin bin/oiiotool
include/OpenImageIO/
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/pugiconfig.hpp
include/OpenImageIO/pugixml.hpp
include/OpenImageIO/refcnt.h
include/OpenImageIO/strutil.h
include/OpenImageIO/sysutil.h
include/OpenImageIO/tbb/
include/OpenImageIO/tbb/_tbb_windef.h
include/OpenImageIO/tbb/aligned_space.h
include/OpenImageIO/tbb/atomic.h
include/OpenImageIO/tbb/machine/
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
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_machine.h.orig
include/OpenImageIO/tbb/tbb_misc.h
include/OpenImageIO/tbb/tbb_misc.h.orig
include/OpenImageIO/tbb/tbb_profiling.h
include/OpenImageIO/tbb/tbb_stddef.h
include/OpenImageIO/tbb/tbb_version.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/version.h
@lib lib/libOpenImageIO.so.${LIBOpenImageIO_VERSION}
lib/python${MODPY_VERSION}/site-packages/OpenImageIO.so.${LIBOpenImageIO_VERSION}
share/doc/openimageio/
share/doc/openimageio/CHANGES
share/doc/openimageio/LICENSE
share/doc/openimageio/openimageio.pdf