Sat Oct 12 22:13:44 2013 UTC ()
Update to 1.2.2

Changelog:
Release 1.2.2 (1 Oct 2013)
--------------------------
* New features:
  * New oiiotool --siappend : append subimages of top two images on stack.
  * Utilities: added Strutil::contains() and icontains().
* Fixes:
  * Fixes in handling XMP & IPTC metadata.
  * oiiotool --origin and --fullpixels did not correctly propagate their
    changes to the output images.
  * oiiotool --colorconvert (and the underlying ImageBufAlgo::colorconvert)
    could crash if given a color conversion recognized as a no-op.
  * DPX output could crash when writing crop images.
  * DPX input was not recognizing the proper image offset or originalsize.
  * oiiotool --fit wasn't padding correctly or modifying offsets properly.
* Build fixes:
  * Fix compiler error on MIPS platform.
  * Add FIELD3D_HOME description to 'make help'
  * Always use the HDF5 release libraries (for Field3D), not the debug ones.

Release 1.2.1 (5 Aug 2013)
---------------------------
* oiiotool: Fix memory leak when processing frame range.
* Docs improvement: full documentation of ImageBufAlgo.
* oiiotool --help now returns a success error code, not a failure.
* oiiotool: fix incorrect help message about --ociolook.
* oiiotool: Fix typo in "oiio:Colorspace" attribute name that interfered
  with correct color space conversion in --colorconvert.
* Many fixes for compiler warnings on various platforms: fmath_test.cpp,
  field3dinput.cpp, sysutil.cpp, argparse.cpp, oiiotool.cpp.
* Fixes problems on little-endian architecture with texture3d.cpp.
* Fix compilation problems on architectures with gcc, but no 'pause'
  instruction.
* Fix build search path for correctly finding libopenjpeg 1.5.
* Work around bug in older MSVC versions wherein Filesystem::open needed
  to explicitly seek to the beginning of a file.
* Build fixes for FreeBSD.
* Fix testsuite/oiiotool on Windows -- windows shell doesn't expand wildcards.

Release 1.2 (8 July 2013)
-------------------------
Major new features and improvements:
* New oiiotool commands:
    --swap        Exchanges the top two items on the image stack.
    --fit         Resize image to fit into a given resolution (keeping aspect).
    --ch          Select/cull/reorder/add channels within an image.
    --chappend    Merge two images by appending their color channels.
    --chnames     Rename some or all of the color channels in an image.
    --zover       Depth compositing
    --cadd        Add constant per-channel values to all pixels
    --cmul        Multiply an imge by a scalar or per-channel constant.
    --fillholes   Smoothly interpolate for hole filling.
    --resample    Similar to --resize, but just uses closest pixel lookup.
    --clamp       Clamp pixel values
    --rangeexpand Expand range for certain HDR processing
    --rangecompress  Compress range for certain HDR processing
    --unpremult   Divide colors by alpha (un-premultiply).
    --premult     Multiply colors by alpha.
    --kernel      Make a convolution kernel using a filter name.
    --convolve    Convolve two images.
    --blur        Blur an image.
    --unsharp     Sharpen an image using an unsharp mask.
    --paste       Paste one image on another.
    --mosaic      Create a rectilinear image mosaic.
    --transpose   Transpose an image (flip along the diagonal axis)
    --chsum       Sum all channels in each pixel
    --cshift      Circular shift an image pixels
    --fft --ifft  Forward and inverse Fourier transform
    --colorcount  Counts how many pixels are one of a list of colors.
    --rangecheck  Counts how many pixels fall outside the given range.
    --ociolook    Apply OpenColorIO "looks"
    --autotrim    Shrinks pixel data window upon output to trim black edges.
* oiiotool can loop over entire numeric frame ranges by specifying
  wildcard filenames such as "foo.#.tif" or "bar.1-10#.exr".
* oiiotool --frames and --framepadding give more explicit control over
  frame range wildcards.
* Significant performance improvements when reading and writing images
  using the ImageBuf::read and ImageCache::get_pixels interfaces, and in
  some cases also when using regular ImageInput.  This also translates
  to improved performance and memory use for oiiotool and maketx.
* At least doubled the performance of maketx for large images when run
  on multi-core machines.
* Significant performance improvements when using ImageBuf::Iterator
  or ConstIterator to traverse the pixels in an ImageBuf, and the iterators
  now support "wrap" modes (black, clamp, periodic, mirror).
* maketx --hicomp does "highlight compensation" by compressing the
  HDR value range prior to inter-MIP resizes, then re-expanding the range.
* Field3D writer (it could read f3d files before, but not write them).
* idiff can now compare that are not the same size (treating pixels
  beyond the pixel data window is being 0 valued).
* maketx --lightprobe turns a "lightprobe" iamge into a latlong environment
  map.
* Significant improvements and fixes to EXIF, IPTC, and XMP metadata
  reading and writing.
* Significant thread scalability improvements to TextureSystem and
  ImageCache.
* Huge overhaul of functionality, style, and performance of the
  entire ImageBufAlgo set of functions (see the "Public API changes"
  section below, and the imagebufalgo.h file for details).

Public API changes:
* ImageOutput semantics change: If the spec passed to open() has
  spec.format set fo UNKNOWN, then select a default data format for the
  output file that is "most likely to be able to be read" and/or "most
  typical for files of that format in the wild."  Also,
  ImageOutput::open() will never fail because a requested data format is
  unavailable; if the requested format is not supported, a reasonable
  alternate will always be chosen.
* ImageBuf has been changed to a "PIMPL" idiom, wherein all the
  internals are no longer exposed in the public API.  This allows us to
  change ImageBuf internals in the future without breaking API or link
  compatibility (and thus giving us more freedom to backport important
  improvements to prior releases).
* Overhaul of ImageBufAlgo functions: they all take an ROI parameter;
  use the DISPATCH macros to make them work with all pixel data types
  where practical (previously, many supported float only); use Iterator
  rather than getpixel/setpixel, leading to huge speed improvements;
  multithread when operating on enough pixels, leading to huge speed
  improvements; work on 3D (volume) images where applicable; always
  gracefully handle uninitialized dest image or undefined ROI.
* New ImageBufAlgo functions: channels(), channel_append(), mul(),
  paste(), zover(), add() and mul() varieties that that add/multiply a
  constant amount to all pixels, fillholes_pp(), resample(), clamp(),
  rangecompress(), rangeexpand(), make_kernel(), unsharp_mask(),
  transpose(), channel_sum(), circular_shift(), fft(), ifft(),
  color_count(), color_range_check(), nonzero_region().
  [look in imagebufalgo.h for documentation.]
* ImageBufAlgo::make_texture() allows you to do the same thing that
  maketx does, but from inside an application and without launching a
  shell invocation of maketx.  Two varieties exist: one that takes a
  filename and reads from disk, another that takes an ImageBuf already
  in memory.
* ImageBuf Iterator/ConstIterator now take "wrap" mode parameters that
  allow out-of-range iterators to be able to retrieve valid data. Supported
  wrap modes include black, clamp, periodic, and mirror.  This simplifies
  a lot of algorithms using IB::Iterator, they can now be written to
  rely on wrap behavior rather than being cluttered with checks for
  "if (it.exits())" clauses.
* ImageBufAlgo::computePixelHashSHA1 has been refactored to take ROI,
  a block size, and thread count, and thus can be parallelized with threads.
  The block size means that rather than computing a single SHA-1 for all
  the pixels, it computes separate (parallel) SHA-1 for each group of
  blocksize scanlines, then returns the SHA-1 of all the individual SHA-1
  hashed blocks. This is just as strong a hash as before, thought the value
  is different than doing the whole thing at once, but by breaking it into
  blocks the computation can be multithreaded.
* ImageBuf::swap() makes it easy to swap two ImageBuf's.
* ImageSpec::get_channelformats is now const (and always should have been).

Fixes, minor enhancements, and performance improvements:
* TextureSystem improvements:
  * Make sure "black" wrap wins out over "fill" value when they conflict
    (looking up an out-of-range channel beyond the pixel data window).
  * "mirror" wrap mode was slightly incorrect and has been fixed.
* oiiotool improvements:
  * oiiotool -v breaks down timing by individual function.
  * oiiotool has been sped up by forcing read of the whole image up front
      for reasonably-sized files (instead of relying on ImageCache).
  * oiiotool does not write output images if fatal errors have occurred.
  * oiiotool --diff: Better error handling, better error printing, and
    now it can compare images with differing data windows or channel
    numbers ("missing" channels or pixels are presumed to be 0 for the
    purposes of comparing).
  * oiiotool --resize (and --fit): properly handle the case of resizing
    to the same size as the original image.
  * oiiotool -d CHAN=TYPE can set the output for just one channel.
* ImageBufAlgo improvements:
  * Internal overhaul of IBA::resize to greatly speed it up.
  * Improve IBA::resize to handle the image edge better -- instead of
    clamping, just don't consider nonexistant pixels.
  * More careful selection of filter when resizing (IBA::resize, oiiotool
    --resize and --fit, and maketx).
  * Fix IBA::paste() error when the foreground image runs off the end of
    the background image.
* Bug fix when computing SHA-1 hash of 0-sized images.
* Image format support improvements:
  * Bug fix where some format readers (PNM, SGI, and IFF) would leave the
    file handle opened if the ImageInput was destroyed without calling
    close() first.  Now we guarantee that destroying the II always causes
    the file to close().
  * DPX: output allocation bug fix; properly set pixel aspect ratio for
    DPX write.
  * IFF: bug fix for endian swap for IFF file input.
  * JPEG2000: fix warnings, make sure event manager transfer object
    remains valid.
  * OpenEXR: when reading, was botching the ordering of per-channel data
    formats.
  * SGI write: bug fix for the case of 15 bpp RLE encoding, was
    double-swapping bytes.
  * Targa: more robust check for presence of alpha channels; bug fix where
    R and B channels were reversed for certain kinds of palette images.
  * TIFF: Store the orientation flag properly when outputting a TIFF file.
* maketx improvements:
  * maketx --chnames allows you to rename the channels when you create a
    texture.
  * maketx bug fixes: incorrect weighting when resizing MIP levels for
    latlong environment map images that could make visible artifacts
    on some intermediate MIP levels.
* encode_exif() didn't copy the right number of bytes.
* Python bindings: ImageSpec extra_attribs now properly responds to
  iterator calls.
* Fix bug in sRGB -> linear conversion.
* iv: make pixelview display coordinates & color even when outside the
  data window.

Build/test system improvements:
* Many fixes to improve builds and eliminate warnings on Windows and MinGW.
* Fix missing InterlockedExchangeAdd64 for Windows XP.
* New make/cmake boags: OIIO_BUILD_TOOLS=0 will exclude building of the
  command line tools (just build libraries), OIIO_BUILD_TESTS=0 will
  exclude building of unit test binaries.
* Improved matching of testsuite reference images on different platforms.
* Lots of fixes to compiler warnings on newer gcc and clang releases.
* Unit tests for Timer class.
* libOpenImageio/imagespeed_test benchmarks various methods of reading
  and writing files and iterating image pixels (to help us know what to
  optimize).
* If OpenSSL is available at build time, OIIO will use its SHA-1
  implementation instead of our own (theirs is faster). We still fall
  back on ours if OpenSSL is not available or when OIIO is built with
  USE_OPENSSL=0.
* Allow default the shared library suffix to be overridden with the
  CMake variable OVERRIDE_SHARED_LIBRARY_SUFFIX.
* Eliminated all uses of the custom DEBUG symbol, and instead use the
  more standard idiom "#ifndef NDEBUG".
* Compatibility fixes for Python3.
* MSVC 2008: Prevent a redefinition error when using boost::shared_ptr.
* Fixes for compatibility with libtiff 4.0.
* Fixes for MSVC debug mode having out-of-bound exceptions.
* Fixes for libjpeg 9.x.
* Compile to treat warnings as errors (you can disable this with
  STOP_ON_WARNING=0).
* New filter: "sharp-gaussian".
* Fix various Windows build errors.
* Improvements to the build when finding IlmBase/OpenEXR.
* Various fixes to compile on ARM architecture.
* Fixes to compile on ESA/390 mainframe (!).
* testtex --threadtimes, --trials, --iters, --nodup, --wedge.  These
  are helpful in using testtext to benchmark the texture system.
* Improvements to make more tests work properly on Windows.

Developer goodies:
* Improved ASSERT and DASSERT macros to not generate warning for certain
  debug compiles; key their debug behavior by the absence of the standard
  NDEBUG idiom rather than presence of a custom DEBUG symbol; rename the
  message variants ASSERT_MSG and DASSERT_MSG.
* Change the default for Sysutil::memory_used to report resident memory
  rather than virtual process size.
* Multithread/parallel version of utility function convert_image().
* imagebufalgo.h improvements and expansion of the various DISPATCH_*
  macros.
* New Filesystem utilities: parent_path(), get_directory_entries().
* New Strutil utilities: extract_from_list_string
* spinlock tweaks make it faster than TBB's spin locks!
* By default, we no longer build or use TBB (it's considered deprecated,
  but in 1.2 can still be turned on with USE_TBB=1).
* In fmath.h, added definitions for safe_inversesqrt, safelog, safe_log2,
  safe_log10, safe_logb.
* In typedesc.h, added TypeDesc::tostring() function.
* unordered_map_concurrent.h contains a template for a thread-safe
  unordered_map that is very efficient even for large number of threads
  simultaneously accessing it.
* Documentation: Finally, a chapter in the PDF docs that fully describes
  the ImageBuf class.

Release 1.1.13 (24 Jun 2013)
----------------------------
* Texture: make sure wrap mode "black" wins over "fill" value when they
  conflict.

Release 1.1.12 (20 Jun 2013)
----------------------------
* Fix oiiotool '#' wildcard, was broken on Windows.
* Fix an overflow problem that plagued 'maketx' when running on input
  larger than 32k x 32k (among other possible failures).

Release 1.1.11 (29 May 2013)
----------------------------
* IFF input: bug in endian swap of 16 bit IFF files.
* oiiotool: fix a minor bug where tiled files were output inappropriately.
  (Had been patched in master some time ago.)
* fmath.h additions: safe_inversesqrt, safe_log, safe_log2, safe_log10,
  safe_logb.  These are versions that clamp their inputs so that they
  can't throw exceptions or return Inf or NaN.
* Fix to not incorrectly print ImageCache stats for certain broken files.

Release 1.1.10 (13 Apr 2013)
----------------------------
* IBA::fillholes() and oiiotool --fillholes can smoothly fill in alpha
  holes with nearby colors. Great for extrapolating the empty areas of
  texture atlas images so that filtered texture lookups pull in a plausible
  color at part edges.
* IBA::clamp and oiiotool --clamp clamp pixel values to a scalar or
  per-channel min and/or max, or clamp alpha to [0,1].
* IBA::rangecompress()/rangeexpand(), and oiiotool --rangecompress /
  --rangeexpand compress the excess >1 values of HDR images to a log
  scale (leaving the <= 1 part linear), and re-expand to the usual
  linear scale.  This is very helpful to reduce ringing artifacts that
  can happen when an HDR image is resized with a good filter with negative
  lobes (such as lanczos3), by doing a range compression, then the resize,
  then range expansion. It's not mathematically correct and loses energy,
  but it often makes a much more pleasing result.
* maketx --hicomp does highlight compression -- automatically doing a
  range compress before each high-quality resize step, and then a
  range expansion and clamp-to-zero (squash negative pixels) after
  each resize.
* DPX - when writing DPX files, properly set the pixel aspect ratio.

Release 1.1.9 (2 Apr 2013)
--------------------------
* IBA::resize and oiiotool --resize/--fit: Bug fixes to resize filter
  size selection fix artifacts wherein extreme zooms could end up with
  black stripes in places where the filters fell entirely between samples.
* oiiotool --fit: fix subtle bugs with aspect ratio preservation for
  images with differing data and display windows; and allow "filter=..."
  to override the default filter used for fit.
* Resize improvement: fix potential artifacts at the image edges resulting
  from odd clamping behavior.
* Even more frame range wildcard flexibility with oiiotool --frames and
  --framepadding options.
* oiiotool --resize and --fit (and the underlying IBA::resize()) have been
  sped up significantly and are now also multithreaded.

Release 1.1.8 (15 Mar 2013)
---------------------------
* oiiotool --chappend (and ImageBufAlgo::channel_append() underneath) allow
  you to take two files and concatenate their color channels.
* oiiotool --chnames allows you to rename some or all of a file's color
  channels.
* oiiotool can loop over entire frame ranges by specifying wildcard
  filenames such as "foo.#.tif" or "bar.1-10#.exr".
* Cmake: OVERRIDE_SHARED_LIBRARY_SUFFIX allows the shared library suffix
  to be overridden (e.g., if you need to force .so names on OSX rather
  than the usual default of .dylib).


(ryoon)
diff -r1.16 -r1.17 pkgsrc/graphics/openimageio/Makefile
diff -r1.1 -r1.2 pkgsrc/graphics/openimageio/PLIST
diff -r1.6 -r1.7 pkgsrc/graphics/openimageio/distinfo
diff -r1.2 -r1.3 pkgsrc/graphics/openimageio/patches/patch-cmake_platform.cmake
diff -r1.1 -r1.2 pkgsrc/graphics/openimageio/patches/patch-include_pugixml.hpp
diff -r1.1 -r1.2 pkgsrc/graphics/openimageio/patches/patch-libutil_sysutil.cpp

cvs diff -r1.16 -r1.17 pkgsrc/graphics/openimageio/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/openimageio/Makefile 2013/09/01 12:14:06 1.16
+++ pkgsrc/graphics/openimageio/Makefile 2013/10/12 22:13:44 1.17
@@ -1,19 +1,18 @@ @@ -1,19 +1,18 @@
1# $NetBSD: Makefile,v 1.16 2013/09/01 12:14:06 obache Exp $ 1# $NetBSD: Makefile,v 1.17 2013/10/12 22:13:44 ryoon Exp $
2 2
3OIIOVER= 1.1.7 3OIIOVER= 1.2.2
4DISTNAME= oiio-Release-${OIIOVER} 4DISTNAME= oiio-Release-${OIIOVER}
5PKGNAME= ${DISTNAME:S/oiio-Release/openimageio/} 5PKGNAME= ${DISTNAME:S/oiio-Release/openimageio/}
6PKGREVISION= 6 
7CATEGORIES= graphics 6CATEGORIES= graphics
8MASTER_SITES= -https://github.com/OpenImageIO/oiio/archive/Release-${OIIOVER}.tar.gz 7MASTER_SITES= -https://github.com/OpenImageIO/oiio/archive/Release-${OIIOVER}.tar.gz
9FETCH_USING= curl 8FETCH_USING= curl
10 9
11MAINTAINER= ryoon@NetBSD.org 10MAINTAINER= ryoon@NetBSD.org
12HOMEPAGE= https://sites.google.com/site/openimageio/ 11HOMEPAGE= https://sites.google.com/site/openimageio/
13COMMENT= OpenImageIO is a library for reading and writing images 12COMMENT= OpenImageIO is a library for reading and writing images
14LICENSE= modified-bsd 13LICENSE= modified-bsd
15 14
16WRKSRC= ${WRKDIR}/${DISTNAME}/src 15WRKSRC= ${WRKDIR}/${DISTNAME}/src
17 16
18USE_CMAKE= yes 17USE_CMAKE= yes
19USE_LANGUAGES= c c++ 18USE_LANGUAGES= c c++

cvs diff -r1.1 -r1.2 pkgsrc/graphics/openimageio/PLIST (expand / switch to unified diff)

--- pkgsrc/graphics/openimageio/PLIST 2012/12/03 12:54:14 1.1
+++ pkgsrc/graphics/openimageio/PLIST 2013/10/12 22:13:44 1.2
@@ -1,66 +1,45 @@ @@ -1,66 +1,45 @@
1@comment $NetBSD: PLIST,v 1.1 2012/12/03 12:54:14 ryoon Exp $ 1@comment $NetBSD: PLIST,v 1.2 2013/10/12 22:13:44 ryoon Exp $
2bin/iconvert 2bin/iconvert
3bin/idiff 3bin/idiff
4bin/igrep 4bin/igrep
5bin/iinfo 5bin/iinfo
6bin/iv 6bin/iv
7bin/maketx 7bin/maketx
8bin/oiiotool 8bin/oiiotool
9include/OpenImageIO/argparse.h 9include/OpenImageIO/argparse.h
10include/OpenImageIO/color.h 10include/OpenImageIO/color.h
11include/OpenImageIO/dassert.h 11include/OpenImageIO/dassert.h
12include/OpenImageIO/errorhandler.h 12include/OpenImageIO/errorhandler.h
13include/OpenImageIO/export.h 13include/OpenImageIO/export.h
14include/OpenImageIO/filesystem.h 14include/OpenImageIO/filesystem.h
15include/OpenImageIO/filter.h 15include/OpenImageIO/filter.h
16include/OpenImageIO/fmath.h 16include/OpenImageIO/fmath.h
17include/OpenImageIO/hash.h 17include/OpenImageIO/hash.h
18include/OpenImageIO/imagebuf.h 18include/OpenImageIO/imagebuf.h
19include/OpenImageIO/imagebufalgo.h 19include/OpenImageIO/imagebufalgo.h
 20include/OpenImageIO/imagebufalgo_util.h
20include/OpenImageIO/imagecache.h 21include/OpenImageIO/imagecache.h
21include/OpenImageIO/imageio.h 22include/OpenImageIO/imageio.h
22include/OpenImageIO/optparser.h 23include/OpenImageIO/optparser.h
23include/OpenImageIO/osdep.h 24include/OpenImageIO/osdep.h
24include/OpenImageIO/paramlist.h 25include/OpenImageIO/paramlist.h
25include/OpenImageIO/plugin.h 26include/OpenImageIO/plugin.h
26include/OpenImageIO/pugiconfig.hpp 27include/OpenImageIO/pugiconfig.hpp
27include/OpenImageIO/pugixml.hpp 28include/OpenImageIO/pugixml.hpp
28include/OpenImageIO/refcnt.h 29include/OpenImageIO/refcnt.h
29include/OpenImageIO/strutil.h 30include/OpenImageIO/strutil.h
30include/OpenImageIO/sysutil.h 31include/OpenImageIO/sysutil.h
31include/OpenImageIO/tbb/_tbb_windef.h 
32include/OpenImageIO/tbb/aligned_space.h 
33include/OpenImageIO/tbb/atomic.h 
34include/OpenImageIO/tbb/machine/ibm_aix51.h 
35include/OpenImageIO/tbb/machine/linux_common.h 
36include/OpenImageIO/tbb/machine/linux_ia32.h 
37include/OpenImageIO/tbb/machine/linux_ia64.h 
38include/OpenImageIO/tbb/machine/linux_intel64.h 
39include/OpenImageIO/tbb/machine/mac_ppc.h 
40include/OpenImageIO/tbb/machine/windows_ia32.h 
41include/OpenImageIO/tbb/machine/windows_intel64.h 
42include/OpenImageIO/tbb/spin_mutex.h 
43include/OpenImageIO/tbb/spin_rw_mutex.h 
44include/OpenImageIO/tbb/tbb_allocator.h 
45include/OpenImageIO/tbb/tbb_assert_impl.h 
46include/OpenImageIO/tbb/tbb_config.h 
47include/OpenImageIO/tbb/tbb_exception.h 
48include/OpenImageIO/tbb/tbb_machine.h 
49include/OpenImageIO/tbb/tbb_misc.h 
50include/OpenImageIO/tbb/tbb_profiling.h 
51include/OpenImageIO/tbb/tbb_stddef.h 
52include/OpenImageIO/tbb/tbb_version.h 
53include/OpenImageIO/texture.h 32include/OpenImageIO/texture.h
54include/OpenImageIO/thread.h 33include/OpenImageIO/thread.h
55include/OpenImageIO/timer.h 34include/OpenImageIO/timer.h
56include/OpenImageIO/tinyformat.h 35include/OpenImageIO/tinyformat.h
57include/OpenImageIO/typedesc.h 36include/OpenImageIO/typedesc.h
58include/OpenImageIO/ustring.h 37include/OpenImageIO/ustring.h
59include/OpenImageIO/varyingref.h 38include/OpenImageIO/varyingref.h
60include/OpenImageIO/version.h 39include/OpenImageIO/version.h
61lib/libOpenImageIO.so 40lib/libOpenImageIO.so
62lib/libOpenImageIO.so.1.1 41lib/libOpenImageIO.so.1.2
63lib/libOpenImageIO.so.${PKGVERSION} 42lib/libOpenImageIO.so.${PKGVERSION}
64share/doc/openimageio/CHANGES 43share/doc/openimageio/CHANGES
65share/doc/openimageio/LICENSE 44share/doc/openimageio/LICENSE
66share/doc/openimageio/openimageio.pdf 45share/doc/openimageio/openimageio.pdf

cvs diff -r1.6 -r1.7 pkgsrc/graphics/openimageio/distinfo (expand / switch to unified diff)

--- pkgsrc/graphics/openimageio/distinfo 2013/07/05 21:34:11 1.6
+++ pkgsrc/graphics/openimageio/distinfo 2013/10/12 22:13:44 1.7
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1$NetBSD: distinfo,v 1.6 2013/07/05 21:34:11 joerg Exp $ 1$NetBSD: distinfo,v 1.7 2013/10/12 22:13:44 ryoon Exp $
2 2
3SHA1 (oiio-Release-1.1.7.tar.gz) = 435286ffad18169fd615cd33d95c2b49d3e4ec17 3SHA1 (oiio-Release-1.2.2.tar.gz) = bb9505dbdddcac2ea4545bf0258d7637e3056d5c
4RMD160 (oiio-Release-1.1.7.tar.gz) = dfe15e32ff0c821165079bf517cf11dd87146ccc 4RMD160 (oiio-Release-1.2.2.tar.gz) = dd5c841ca90b6ccc9d7fc25ec2b56424827a6040
5Size (oiio-Release-1.1.7.tar.gz) = 8300700 bytes 5Size (oiio-Release-1.2.2.tar.gz) = 12383820 bytes
6SHA1 (patch-CMakeLists.txt) = 2923ca84d7981aaaf6494588392444e5ee07f74a 6SHA1 (patch-CMakeLists.txt) = 2923ca84d7981aaaf6494588392444e5ee07f74a
7SHA1 (patch-cmake_modules_FindOpenJpeg.cmake) = 20d15c8ee0a25ab631ed39910b6e441d069760c5 7SHA1 (patch-cmake_modules_FindOpenJpeg.cmake) = 20d15c8ee0a25ab631ed39910b6e441d069760c5
8SHA1 (patch-cmake_oiio__macros.cmake) = 016c4792c1dc85a903477f4c72af26577e1b2bb9 8SHA1 (patch-cmake_oiio__macros.cmake) = 016c4792c1dc85a903477f4c72af26577e1b2bb9
9SHA1 (patch-cmake_platform.cmake) = bb3ef743bdb04a76efcabb745af62473205e01ae 9SHA1 (patch-cmake_platform.cmake) = e63ca222249b708c82f77911a04bd609e36eb1dc
10SHA1 (patch-dpx.imageio_libdpx_DPXColorConverter.cpp) = 595415e7e2897798df76474dd906e25cdf3a929e 10SHA1 (patch-dpx.imageio_libdpx_DPXColorConverter.cpp) = 595415e7e2897798df76474dd906e25cdf3a929e
11SHA1 (patch-include_pugixml.hpp) = 242a95507b970c3cef94099d49fc2326b79bd23b 11SHA1 (patch-include_pugixml.hpp) = 41bc40c1c11ddbecf9b03ca570718e1cbb08262a
12SHA1 (patch-include_tbb_tbb__exception.h) = b2e98d44666d8a113dd6f21f2300ffdd8af3e20c 12SHA1 (patch-include_tbb_tbb__exception.h) = b2e98d44666d8a113dd6f21f2300ffdd8af3e20c
13SHA1 (patch-include_tbb_tbb__machine.h) = 7d9a196397315e0d39dd2f16139e011ab84c5630 13SHA1 (patch-include_tbb_tbb__machine.h) = 7d9a196397315e0d39dd2f16139e011ab84c5630
14SHA1 (patch-include_tbb_tbb__misc.h) = 27995a9cdb72b182e352b2a649756af2d60fec86 14SHA1 (patch-include_tbb_tbb__misc.h) = 27995a9cdb72b182e352b2a649756af2d60fec86
15SHA1 (patch-libutil_sysutil.cpp) = b7484aef56ea239bae20faba1f04c14907557485 15SHA1 (patch-libutil_sysutil.cpp) = b14b13efd313cbca0068fb58758b5d2095e4cd4d
16SHA1 (patch-make_detectplatform.mk) = a399f09b9280109519a829dbacc1b924a074f4cc 16SHA1 (patch-make_detectplatform.mk) = a399f09b9280109519a829dbacc1b924a074f4cc
17SHA1 (patch-psd.imageio_psdinput.cpp) = 9387715224c93aff28bac55bfc54a435d1de7c1f 17SHA1 (patch-psd.imageio_psdinput.cpp) = 9387715224c93aff28bac55bfc54a435d1de7c1f
18SHA1 (patch-ptex.imageio_ptex_PtexPlatform.h) = 3c32f95181cfcf8c0e67249a4d04f7ea14a5e122 18SHA1 (patch-ptex.imageio_ptex_PtexPlatform.h) = 3c32f95181cfcf8c0e67249a4d04f7ea14a5e122

cvs diff -r1.2 -r1.3 pkgsrc/graphics/openimageio/patches/Attic/patch-cmake_platform.cmake (expand / switch to unified diff)

--- pkgsrc/graphics/openimageio/patches/Attic/patch-cmake_platform.cmake 2013/02/27 15:19:02 1.2
+++ pkgsrc/graphics/openimageio/patches/Attic/patch-cmake_platform.cmake 2013/10/12 22:13:44 1.3
@@ -1,23 +1,23 @@ @@ -1,23 +1,23 @@
1$NetBSD: patch-cmake_platform.cmake,v 1.2 2013/02/27 15:19:02 ryoon Exp $ 1$NetBSD: patch-cmake_platform.cmake,v 1.3 2013/10/12 22:13:44 ryoon Exp $
2 2
3* Add NetBSD support 3* Add NetBSD support
4 4
5--- cmake/platform.cmake.orig 2013-02-21 17:10:46.000000000 +0000 5--- cmake/platform.cmake.orig 2013-09-30 17:25:21.000000000 +0000
6+++ cmake/platform.cmake 6+++ cmake/platform.cmake
7@@ -30,6 +30,16 @@ if (UNIX) 7@@ -28,6 +28,16 @@ if (UNIX)
8 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i586") 8 # with arch of i586 or higher
9 endif() 9 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i586")
10 endif() 10 endif()
11+ elseif (${CMAKE_SYSTEM_NAME} STREQUAL "NetBSD") 11+ elseif (${CMAKE_SYSTEM_NAME} STREQUAL "NetBSD")
12+ set (platform "NetBSD") 12+ set (platform "NetBSD")
13+ set (CXXFLAGS "${CXXFLAGS} -DNETBSD") 13+ set (CXXFLAGS "${CXXFLAGS} -DNETBSD")
14+ if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i386") 14+ if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i386")
15+ if (NOT USE_TBB) 15+ if (NOT USE_TBB)
16+ # to use gcc atomics we need cpu instructions only available 16+ # to use gcc atomics we need cpu instructions only available
17+ # with arch of i586 or higher 17+ # with arch of i586 or higher
18+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i586") 18+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i586")
19+ endif() 19+ endif()
20+ endif() 20+ endif()
21 else () 21 else ()
22 string (TOLOWER ${CMAKE_SYSTEM_NAME} platform) 22 string (TOLOWER ${CMAKE_SYSTEM_NAME} platform)
23 endif () 23 endif ()

cvs diff -r1.1 -r1.2 pkgsrc/graphics/openimageio/patches/Attic/patch-include_pugixml.hpp (expand / switch to unified diff)

--- pkgsrc/graphics/openimageio/patches/Attic/patch-include_pugixml.hpp 2013/05/09 13:58:54 1.1
+++ pkgsrc/graphics/openimageio/patches/Attic/patch-include_pugixml.hpp 2013/10/12 22:13:44 1.2
@@ -1,24 +1,24 @@ @@ -1,24 +1,24 @@
1$NetBSD: patch-include_pugixml.hpp,v 1.1 2013/05/09 13:58:54 joerg Exp $ 1$NetBSD: patch-include_pugixml.hpp,v 1.2 2013/10/12 22:13:44 ryoon Exp $
2 2
3--- include/pugixml.hpp.orig 2013-02-21 17:10:46.000000000 +0000 3--- include/pugixml.hpp.orig 2013-09-30 17:25:21.000000000 +0000
4+++ include/pugixml.hpp 4+++ include/pugixml.hpp
5@@ -18,6 +18,11 @@ 5@@ -23,6 +23,11 @@
6 #include "version.h" 6
7  7
8 #ifndef PUGIXML_NO_STL 8 #ifndef PUGIXML_NO_STL
9+#include <iterator> 9+#include <iterator>
10+#include <string> 10+#include <string>
11+#include <istream> 11+#include <istream>
12+#include <ostream> 12+#include <ostream>
13+#if 0 13+#if 0
14 namespace std 14 namespace std
15 { 15 {
16 struct bidirectional_iterator_tag; 16 struct bidirectional_iterator_tag;
17@@ -45,6 +50,7 @@ namespace std 17@@ -50,6 +55,7 @@ namespace std
18 #endif 18 #endif
19 } 19 }
20 #endif 20 #endif
21+#endif 21+#endif
22  22
23 // Macro for deprecated features 23 // Macro for deprecated features
24 #ifndef PUGIXML_DEPRECATED 24 #ifndef PUGIXML_DEPRECATED

cvs diff -r1.1 -r1.2 pkgsrc/graphics/openimageio/patches/Attic/patch-libutil_sysutil.cpp (expand / switch to unified diff)

--- pkgsrc/graphics/openimageio/patches/Attic/patch-libutil_sysutil.cpp 2012/12/03 12:54:15 1.1
+++ pkgsrc/graphics/openimageio/patches/Attic/patch-libutil_sysutil.cpp 2013/10/12 22:13:44 1.2
@@ -1,24 +1,24 @@ @@ -1,24 +1,24 @@
1$NetBSD: patch-libutil_sysutil.cpp,v 1.1 2012/12/03 12:54:15 ryoon Exp $ 1$NetBSD: patch-libutil_sysutil.cpp,v 1.2 2013/10/12 22:13:44 ryoon Exp $
2 2
3* Treat NetBSD like Linux (I am not sure) 3* Treat NetBSD like Linux (I am not sure)
4 4
5--- libutil/sysutil.cpp.orig 2012-11-16 23:02:42.000000000 +0000 5--- libutil/sysutil.cpp.orig 2013-09-30 17:25:21.000000000 +0000
6+++ libutil/sysutil.cpp 6+++ libutil/sysutil.cpp
7@@ -39,7 +39,7 @@ 7@@ -39,7 +39,7 @@
8 # include <sys/ioctl.h> 8 # include <sys/ioctl.h>
9 #endif 9 #endif
10  10
11-#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) 11-#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
12+#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__NetBSD__) 12+#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__NetBSD__)
13 # include <sys/types.h> 13 # include <sys/types.h>
14 # include <sys/resource.h> 14 # include <sys/resource.h>
15 # include <sys/sysctl.h> 15 # include <sys/sysctl.h>
16@@ -150,7 +150,7 @@ Sysutil::this_program_path () 16@@ -150,7 +150,7 @@ Sysutil::this_program_path ()
 17 char filename[10240];
17 filename[0] = 0; 18 filename[0] = 0;
18 unsigned int size = sizeof(filename); 
19  19
20-#if defined(__linux__) 20-#if defined(__linux__)
21+#if defined(__linux__) || defined(__NetBSD__) 21+#if defined(__linux__) || defined(__NetBSD__)
 22 unsigned int size = sizeof(filename);
22 int r = readlink ("/proc/self/exe", filename, size); 23 int r = readlink ("/proc/self/exe", filename, size);
23 ASSERT(r < int(size)); // user won't get the right answer if the filename is too long to store 24 ASSERT(r < int(size)); // user won't get the right answer if the filename is too long to store
24 if (r > 0) filename[r] = 0; // readlink does not fill in the 0 byte