Compare commits
188 Commits
Author | SHA1 | Date |
---|---|---|
Richard Shaw | 47f6927865 | |
Richard Shaw | 9a215610da | |
Richard Shaw | 0c89449a0e | |
Richard Shaw | 53c00d21bf | |
Richard Shaw | eedcd8de57 | |
Adam Williamson | dd39d24f59 | |
Richard Shaw | d7bdc6ede3 | |
Richard Shaw | 90e880c8a4 | |
Peter Robinson | 8122e401de | |
Sandro Mani | 91369ed97b | |
Richard Shaw | 93d5aa4d3a | |
Richard Shaw | dd2097c451 | |
Richard Shaw | df93839ee8 | |
Richard Shaw | 22a6838b79 | |
Fedora Release Engineering | c9fda34d14 | |
Richard Shaw | b73085a7de | |
Richard Shaw | b74dc29235 | |
Richard Shaw | fec3e2023e | |
Richard Shaw | a6324edf57 | |
Richard Shaw | 8133348e0b | |
Richard Shaw | 85af7b25c3 | |
Richard Shaw | 4b19846297 | |
Richard Shaw | 1eed71fda6 | |
Richard Shaw | c4daba7506 | |
Richard Shaw | cb417efd83 | |
Richard Shaw | d964540e5b | |
Richard Shaw | 909e940a7a | |
Richard Shaw | d69a60c059 | |
Zbigniew Jędrzejewski-Szmek | e603759505 | |
Fedora Release Engineering | 83a39861c7 | |
Fedora Release Engineering | 650ad63c72 | |
Kalev Lember | 6be3e74d06 | |
Igor Gnatenko | 6d0b591c7f | |
Richard Shaw | 879e4ef9b9 | |
Richard Shaw | 889b15c2cb | |
Richard Shaw | 6811d4e225 | |
Richard Shaw | e4567a729b | |
Richard Shaw | 79e7f981ce | |
Richard Shaw | 1d9506e37a | |
Richard Shaw | e1ef02bbf4 | |
Richard Shaw | c20da682a5 | |
Richard Shaw | 0e9c2ece7f | |
Fedora Release Engineering | e3753e28d8 | |
Sandro Mani | 82fb5de71b | |
Richard Shaw | dca044c1d8 | |
Richard Shaw | 2bf5380797 | |
Richard Shaw | 667a749e2f | |
Richard Shaw | cabde45fd9 | |
Jon Ciesla | 9295e10bb8 | |
Richard Shaw | 30404afa86 | |
Richard M. Shaw | 22a6e6ac9e | |
Richard M. Shaw | 45c2a19184 | |
Richard M. Shaw | efd57a3d89 | |
Fedora Release Engineering | fd656a333d | |
Richard M. Shaw | 45f76548cf | |
Richard M. Shaw | 889415c17d | |
Richard M. Shaw | cdc5b48a9b | |
Richard M. Shaw | 7f89810f2d | |
Orion Poplawski | bce3e0a85f | |
Richard M. Shaw | b7c6788718 | |
Richard M. Shaw | a03ab4cd61 | |
Richard M. Shaw | 727ab2e1cc | |
Richard M. Shaw | 9404230670 | |
Richard M. Shaw | e5a7404938 | |
Richard M. Shaw | 84222710b9 | |
Richard M. Shaw | 33da6d42b2 | |
Dennis Gilmore | 03f12708cc | |
Orion Poplawski | 83f960ef94 | |
Adam Jackson | 9e863a356a | |
Richard M. Shaw | 1471e40664 | |
Richard M. Shaw | ba2d3e7a4b | |
Richard M. Shaw | 2282056cf1 | |
Richard M. Shaw | f1580b7c7b | |
Igor Gnatenko | f825291fcb | |
Richard M. Shaw | 631720a34f | |
Richard M. Shaw | 3392bf15b8 | |
Richard M. Shaw | 38a533e6c3 | |
Richard M. Shaw | b9ab72ae78 | |
Richard M. Shaw | b9f52c958c | |
Richard M. Shaw | 9ec49ce506 | |
Richard M. Shaw | fb70ce3e45 | |
Jonathan Wakely | 3b4218272c | |
Jonathan Wakely | 2ece3f9d4e | |
Richard M. Shaw | da73048fe1 | |
Dennis Gilmore | 08e8021036 | |
David Tardon | 78e6414b55 | |
Richard M. Shaw | 7099dddcdf | |
Dennis Gilmore | 87413e5f1e | |
Orion Poplawski | 6197590ed1 | |
Kalev Lember | c73bc32aa8 | |
Richard M. Shaw | 9af8883a18 | |
Richard M. Shaw | 8bb2b043d3 | |
Richard M. Shaw | a37eb4a371 | |
Orion Poplawski | fde9b06bbc | |
Richard M. Shaw | 49aa456302 | |
Richard M. Shaw | fd7f923d09 | |
Richard M. Shaw | ae9c86a2ed | |
Richard M. Shaw | 2c535ff852 | |
Petr Machata | 4646c873a9 | |
Richard M. Shaw | fa5af9455d | |
Richard M. Shaw | 9ea7411614 | |
Richard M. Shaw | 1013dfc10c | |
Petr Machata | 51a57dcebb | |
Richard M. Shaw | 9e58345a6a | |
Rex Dieter | 2d1578a1a0 | |
Richard M. Shaw | a476e32171 | |
Richard M. Shaw | c37941e1b9 | |
Richard M. Shaw | dd68cd19a8 | |
Orion Poplawski | 338ba88410 | |
Peter Robinson | dc67a32f96 | |
Richard M. Shaw | 8dcfcd472d | |
Dennis Gilmore | c0f199bf19 | |
Petr Machata | ce55f908d3 | |
David Tardon | ff65debcf5 | |
Richard M. Shaw | 3e5a623021 | |
Richard M. Shaw | 054dab7866 | |
Richard M. Shaw | fee5a3bd2e | |
Richard M. Shaw | 15295a76d9 | |
Richard M. Shaw | 30232adcf9 | |
Richard M. Shaw | 92eeec47a4 | |
Rex Dieter | a0c1f5275f | |
Dave Airlie | c82996b9c0 | |
Richard M. Shaw | ebab20c200 | |
Rex Dieter | d70c6b36a2 | |
Richard M. Shaw | 39a295a4ce | |
Richard M. Shaw | c2eb3276a8 | |
Richard M. Shaw | 8b5f5d64ee | |
Richard M. Shaw | 7322545ab0 | |
Dennis Gilmore | 4a3ef265fc | |
Petr Machata | 55ccc448ce | |
Richard M. Shaw | ddfde2f0c7 | |
Richard M. Shaw | 67b5ae29db | |
Richard M. Shaw | 6c9f5a1ca4 | |
Richard M. Shaw | 05eae9020b | |
Richard M. Shaw | 6fdd081c5b | |
Richard M. Shaw | d9e76f50bd | |
Richard M. Shaw | cb02be2557 | |
Karsten Hopp | 71bc860169 | |
Petr Machata | 83b655746f | |
Dan Horák | 0c096be9e6 | |
Richard M. Shaw | e3e2eba6cc | |
Richard M. Shaw | a0d96eed41 | |
Richard M. Shaw | 904e49fdc8 | |
Richard M. Shaw | 5d225ec202 | |
Peter Robinson | 3a130363bd | |
Rex Dieter | 09c7d85579 | |
Denis Arnaud | 2a875102d7 | |
Denis Arnaud | 68b74cf1e4 | |
Karsten Hopp | d3a5a3304f | |
Karsten Hopp | 7709c72122 | |
Adam Tkac | cdf8b4c6ed | |
Richard M. Shaw | c76eba6c7b | |
Richard M. Shaw | 544e85a763 | |
Richard M. Shaw | 2f57d9fa8c | |
Richard W.M. Jones | e022e03a2b | |
Adam Jackson | 768618c950 | |
Richard M. Shaw | 7a11365c63 | |
David Malcolm | ab84acc124 | |
Richard M. Shaw | 702aea9deb | |
Richard M. Shaw | c957a89109 | |
Richard M. Shaw | 93f47c7029 | |
Dennis Gilmore | 32db067d15 | |
Richard M. Shaw | 945f553170 | |
Richard M. Shaw | 7a4f35a94c | |
Richard M. Shaw | 3bbc3b75e6 | |
Richard M. Shaw | f84394ce7d | |
Richard M. Shaw | 011445b9a7 | |
Richard M. Shaw | 69334180ef | |
Richard M. Shaw | b8cbdd981b | |
Richard M. Shaw | 48e2b68703 | |
Richard M. Shaw | e4810c44ad | |
Richard M. Shaw | 429a8f123f | |
Richard M. Shaw | 20cc938f78 | |
Richard M. Shaw | a1bd2662aa | |
Richard M. Shaw | edf03ed2b7 | |
Richard M. Shaw | 03f891ce4c | |
Richard M. Shaw | e801c1b55b | |
Richard M. Shaw | 464b352c90 | |
Richard M. Shaw | 48e0521c3b | |
Richard M. Shaw | fdddaa9e48 | |
Dennis Gilmore | a6786cf0bc | |
Dennis Gilmore | 5511934ddc | |
Richard M. Shaw | 33234cae37 | |
Richard M. Shaw | 31d9ad9c61 | |
Richard M. Shaw | 55e2849c87 | |
Richard M. Shaw | 989180a79f | |
Richard M. Shaw | 527c8156b8 | |
Richard M. Shaw | c3a3daf0ae |
|
@ -2,3 +2,61 @@
|
|||
/OpenImageIO-oiio-Release-0.10.1-0-g8c102cf.tar.gz
|
||||
/OpenImageIO-oiio-Release-0.10.2-0-g7a6cba8.tar.gz
|
||||
/OpenImageIO-oiio-Release-0.10.3-0-ge93cd33.tar.gz
|
||||
/OpenImageIO-oiio-Release-0.10.4-0-gad1950d.tar.gz
|
||||
/OpenImageIO-oiio-Release-1.0.0-0-g5b37f1c.tar.gz
|
||||
/OpenImageIO-oiio-Release-1.0.3-0-gdffc74e.tar.gz
|
||||
clog
|
||||
/OpenImageIO-oiio-Release-1.0.4-0-g513d0dd.tar.gz
|
||||
/OpenImageIO-oiio-Release-1.0.5-0-g28ba675.tar.gz
|
||||
/OpenImageIO-oiio-Release-1.0.6-0-g47d4346.tar.gz
|
||||
/OpenImageIO-oiio-Release-1.0.7-0-g0cae52b.tar.gz
|
||||
/OpenImageIO-oiio-Release-1.0.8-0-g187bb9b.tar.gz
|
||||
/OpenImageIO-oiio-Release-1.0.9-0-g0b78dec.tar.gz
|
||||
/oiio-Release-1.1.3.tar.gz
|
||||
/oiio-Release-1.1.10.tar.gz
|
||||
/oiio-Release-1.1.11.tar.gz
|
||||
/oiio-Release-1.1.13.tar.gz
|
||||
/oiio-Release-1.2.0.tar.gz
|
||||
/oiio-Release-1.2.1.tar.gz
|
||||
/oiio-Release-1.2.3.tar.gz
|
||||
/oiio-Release-1.3.11.tar.gz
|
||||
/oiio-Release-1.4.7.tar.gz
|
||||
/oiio-Release-1.4.12.tar.gz
|
||||
/oiio-Release-1.4.14.tar.gz
|
||||
/oiio-Release-1.4.15.tar.gz
|
||||
/oiio-Release-1.4.16.tar.gz
|
||||
/oiio-Release-1.5.10.tar.gz
|
||||
/oiio-Release-1.5.11.tar.gz
|
||||
/oiio-Release-1.5.12.tar.gz
|
||||
/oiio-Release-1.5.13.tar.gz
|
||||
/oiio-Release-1.5.14.tar.gz
|
||||
/oiio-Release-1.5.17.tar.gz
|
||||
/oiio-Release-1.5.18.tar.gz
|
||||
/oiio-Release-1.5.20.tar.gz
|
||||
/OpenImageIO-1.5.21.tar.gz
|
||||
/OpenImageIO-1.5.22.tar.gz
|
||||
/OpenImageIO-1.6.8.tar.gz
|
||||
/OpenImageIO-1.6.9.tar.gz
|
||||
/OpenImageIO-1.6.10.tar.gz
|
||||
/OpenImageIO-1.6.11.tar.gz
|
||||
/OpenImageIO-1.6.12.tar.gz
|
||||
/OpenImageIO-1.6.13.tar.gz
|
||||
/OpenImageIO-1.6.14.tar.gz
|
||||
/OpenImageIO-1.6.15.tar.gz
|
||||
/OpenImageIO-1.6.16.tar.gz
|
||||
/OpenImageIO-1.7.7.tar.gz
|
||||
/OpenImageIO-1.7.9.tar.gz
|
||||
/OpenImageIO-1.7.10.tar.gz
|
||||
/OpenImageIO-1.7.11.tar.gz
|
||||
/OpenImageIO-1.7.12.tar.gz
|
||||
/OpenImageIO-1.7.13.tar.gz
|
||||
/OpenImageIO-1.7.14.tar.gz
|
||||
/OpenImageIO-1.7.15.tar.gz
|
||||
/OpenImageIO-1.7.17.tar.gz
|
||||
/OpenImageIO-1.8.5.tar.gz
|
||||
/OpenImageIO-1.8.6.tar.gz
|
||||
/OpenImageIO-1.8.7.tar.gz
|
||||
/OpenImageIO-1.8.8.tar.gz
|
||||
/OpenImageIO-1.8.9.tar.gz
|
||||
/OpenImageIO-1.8.10.tar.gz
|
||||
/OpenImageIO-1.8.12.tar.gz
|
||||
|
|
|
@ -1,119 +0,0 @@
|
|||
diff --git a/src/include/thread.h b/src/include/thread.h
|
||||
index 2303c3e..039a98d 100644
|
||||
--- a/src/include/thread.h
|
||||
+++ b/src/include/thread.h
|
||||
@@ -87,9 +87,15 @@
|
||||
# include <tbb/spin_mutex.h>
|
||||
#endif
|
||||
|
||||
-#ifdef _WIN32
|
||||
+#if defined(_WIN32) && !USE_TBB
|
||||
# include <windows.h>
|
||||
# include <winbase.h>
|
||||
+# pragma intrinsic (_InterlockedExchangeAdd)
|
||||
+# pragma intrinsic (_InterlockedCompareExchange)
|
||||
+# pragma intrinsic (_InterlockedCompareExchange64)
|
||||
+# if defined(_WIN64)
|
||||
+# pragma intrinsic(_InterlockedExchangeAdd64)
|
||||
+# endif
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
@@ -250,7 +256,7 @@ private:
|
||||
inline int
|
||||
atomic_exchange_and_add (volatile int *at, int x)
|
||||
{
|
||||
-#if defined(__GNUC__) && defined(_GLIBCXX_ATOMIC_BUILTINS)
|
||||
+#if defined(__GNUC__) && (defined(_GLIBCXX_ATOMIC_BUILTINS) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 401))
|
||||
return __sync_fetch_and_add ((int *)at, x);
|
||||
#elif USE_TBB
|
||||
atomic<int> *a = (atomic<int> *)at;
|
||||
@@ -260,9 +266,9 @@ atomic_exchange_and_add (volatile int *at, int x)
|
||||
return OSAtomicAdd32Barrier (x, at) - x;
|
||||
#elif defined(_WIN32)
|
||||
// Windows
|
||||
- return InterlockedExchangeAdd ((volatile LONG *)at, x);
|
||||
+ return _InterlockedExchangeAdd ((volatile LONG *)at, x);
|
||||
#else
|
||||
- error ("No atomics on this platform.")
|
||||
+# error No atomics on this platform.
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -271,7 +277,7 @@ atomic_exchange_and_add (volatile int *at, int x)
|
||||
inline long long
|
||||
atomic_exchange_and_add (volatile long long *at, long long x)
|
||||
{
|
||||
-#if defined(__GNUC__) && defined(_GLIBCXX_ATOMIC_BUILTINS)
|
||||
+#if defined(__GNUC__) && (defined(_GLIBCXX_ATOMIC_BUILTINS) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 401))
|
||||
return __sync_fetch_and_add (at, x);
|
||||
#elif USE_TBB
|
||||
atomic<long long> *a = (atomic<long long> *)at;
|
||||
@@ -281,9 +287,13 @@ atomic_exchange_and_add (volatile long long *at, long long x)
|
||||
return OSAtomicAdd64Barrier (x, at) - x;
|
||||
#elif defined(_WIN32)
|
||||
// Windows
|
||||
+# if defined(_WIN64)
|
||||
+ return _InterlockedExchangeAdd64 ((volatile LONGLONG *)at, x);
|
||||
+# else
|
||||
return InterlockedExchangeAdd64 ((volatile LONGLONG *)at, x);
|
||||
+# endif
|
||||
#else
|
||||
- error ("No atomics on this platform.")
|
||||
+# error No atomics on this platform.
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -298,7 +308,7 @@ atomic_exchange_and_add (volatile long long *at, long long x)
|
||||
inline bool
|
||||
atomic_compare_and_exchange (volatile int *at, int compareval, int newval)
|
||||
{
|
||||
-#if defined(__GNUC__) && defined(_GLIBCXX_ATOMIC_BUILTINS)
|
||||
+#if defined(__GNUC__) && (defined(_GLIBCXX_ATOMIC_BUILTINS) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 401))
|
||||
return __sync_bool_compare_and_swap (at, compareval, newval);
|
||||
#elif USE_TBB
|
||||
atomic<int> *a = (atomic<int> *)at;
|
||||
@@ -306,9 +316,9 @@ atomic_compare_and_exchange (volatile int *at, int compareval, int newval)
|
||||
#elif defined(__APPLE__)
|
||||
return OSAtomicCompareAndSwap32Barrier (compareval, newval, at);
|
||||
#elif defined(_WIN32)
|
||||
- return (InterlockedCompareExchange ((volatile LONG *)at, newval, compareval) == compareval);
|
||||
+ return (_InterlockedCompareExchange ((volatile LONG *)at, newval, compareval) == compareval);
|
||||
#else
|
||||
- error ("No atomics on this platform.")
|
||||
+# error No atomics on this platform.
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -317,7 +327,7 @@ atomic_compare_and_exchange (volatile int *at, int compareval, int newval)
|
||||
inline bool
|
||||
atomic_compare_and_exchange (volatile long long *at, long long compareval, long long newval)
|
||||
{
|
||||
-#if defined(__GNUC__) && defined(_GLIBCXX_ATOMIC_BUILTINS)
|
||||
+#if defined(__GNUC__) && (defined(_GLIBCXX_ATOMIC_BUILTINS) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 401))
|
||||
return __sync_bool_compare_and_swap (at, compareval, newval);
|
||||
#elif USE_TBB
|
||||
atomic<long long> *a = (atomic<long long> *)at;
|
||||
@@ -325,9 +335,9 @@ atomic_compare_and_exchange (volatile long long *at, long long compareval, long
|
||||
#elif defined(__APPLE__)
|
||||
return OSAtomicCompareAndSwap64Barrier (compareval, newval, at);
|
||||
#elif defined(_WIN32)
|
||||
- return (InterlockedCompareExchange64 ((volatile LONGLONG *)at, newval, compareval) == compareval);
|
||||
+ return (_InterlockedCompareExchange64 ((volatile LONGLONG *)at, newval, compareval) == compareval);
|
||||
#else
|
||||
- error ("No atomics on this platform.")
|
||||
+# error No atomics on this platform.
|
||||
#endif
|
||||
}
|
||||
|
||||
diff --git a/src/maketx/CMakeLists.txt b/src/maketx/CMakeLists.txt
|
||||
index c465960..5c408d8 100644
|
||||
--- a/src/maketx/CMakeLists.txt
|
||||
+++ b/src/maketx/CMakeLists.txt
|
||||
@@ -1,3 +1,6 @@
|
||||
+if (NOT USE_TBB)
|
||||
+ add_definitions ("-DUSE_TBB=0")
|
||||
+endif ()
|
||||
set (maketx_srcs maketx.cpp)
|
||||
add_executable (maketx ${maketx_srcs})
|
||||
link_ilmbase (maketx)
|
|
@ -1,11 +0,0 @@
|
|||
diff -Naur OpenImageIO-oiio-1c4030e.orig/src/ico.imageio/icooutput.cpp OpenImageIO-oiio-1c4030e/src/ico.imageio/icooutput.cpp
|
||||
--- OpenImageIO-oiio-1c4030e.orig/src/ico.imageio/icooutput.cpp 2011-08-06 12:56:10.000000000 -0500
|
||||
+++ OpenImageIO-oiio-1c4030e/src/ico.imageio/icooutput.cpp 2011-11-05 14:29:27.850429691 -0500
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cmath>
|
||||
+#include <zlib.h>
|
||||
|
||||
#include "ico.h"
|
||||
#include "../png.imageio/png_pvt.h"
|
|
@ -1,379 +0,0 @@
|
|||
diff -up OpenImageIO-oiio-1c4030e/Makefile.backport OpenImageIO-oiio-1c4030e/Makefile
|
||||
--- OpenImageIO-oiio-1c4030e/Makefile.backport 2011-08-06 13:56:10.000000000 -0400
|
||||
+++ OpenImageIO-oiio-1c4030e/Makefile 2011-08-27 09:26:48.255906794 -0400
|
||||
@@ -27,7 +27,7 @@ ifdef PROFILE
|
||||
endif
|
||||
|
||||
MY_MAKE_FLAGS ?=
|
||||
-MY_CMAKE_FLAGS ?=
|
||||
+MY_CMAKE_FLAGS ?= -DSELF_CONTAINED_INSTALL_TREE:BOOL=TRUE
|
||||
|
||||
# Site-specific build instructions
|
||||
ifndef OPENIMAGEIO_SITE
|
||||
diff -up OpenImageIO-oiio-1c4030e/src/cmake/externalpackages.cmake.backport OpenImageIO-oiio-1c4030e/src/cmake/externalpackages.cmake
|
||||
--- OpenImageIO-oiio-1c4030e/src/cmake/externalpackages.cmake.backport 2011-08-06 13:56:10.000000000 -0400
|
||||
+++ OpenImageIO-oiio-1c4030e/src/cmake/externalpackages.cmake 2011-08-27 09:26:48.255906794 -0400
|
||||
@@ -237,3 +237,15 @@ endif ()
|
||||
# end Field3d setup
|
||||
###########################################################################
|
||||
|
||||
+###########################################################################
|
||||
+# Pugixml setup. Normally we just use the version bundled with oiio, but
|
||||
+# some linux distros are quite particular about having separate packages so we
|
||||
+# allow this to be overridden to use the distro-provided package if desired.
|
||||
+if (USE_EXTERNAL_PUGIXML)
|
||||
+ find_package (PugiXML REQUIRED)
|
||||
+ # insert include path to pugixml first, to ensure that the external
|
||||
+ # pugixml is found, and not the one in OIIO's include directory.
|
||||
+ include_directories (BEFORE ${PUGIXML_INCLUDE_DIR})
|
||||
+endif()
|
||||
+
|
||||
+###########################################################################
|
||||
diff -up OpenImageIO-oiio-1c4030e/src/CMakeLists.txt.backport OpenImageIO-oiio-1c4030e/src/CMakeLists.txt
|
||||
--- OpenImageIO-oiio-1c4030e/src/CMakeLists.txt.backport 2011-08-06 13:56:10.000000000 -0400
|
||||
+++ OpenImageIO-oiio-1c4030e/src/CMakeLists.txt 2011-08-27 09:26:48.256906780 -0400
|
||||
@@ -29,13 +29,11 @@ set (USE_FIELD3D ON CACHE BOOL "Use Fiel
|
||||
set (USE_JASPER ON CACHE BOOL "Use Jasper for JPEG-2000 if found")
|
||||
set (NOTHREADS OFF CACHE BOOL "Compile with no threads or locking")
|
||||
set (PYTHON_VERSION 2.6)
|
||||
+set (USE_EXTERNAL_PUGIXML OFF CACHE BOOL
|
||||
+ "Use an externally built shared library version of the pugixml library")
|
||||
|
||||
-if (NOT SOVERSION)
|
||||
- set (SOVERSION ${OIIO_VERSION_MAJOR} CACHE STRING "Set the SO version in the SO name of the output library")
|
||||
-endif ()
|
||||
-if (NOT ${SOVERSION} STREQUAL ${OIIO_VERSION_MAJOR})
|
||||
- set (OIIO_VERSION_MAJOR ${SOVERSION})
|
||||
-endif ()
|
||||
+set (SOVERSION ${OIIO_VERSION_MAJOR}.${OIIO_VERSION_MINOR}
|
||||
+ CACHE STRING "Set the SO version in the SO name of the output library")
|
||||
|
||||
if (NOTHREADS)
|
||||
message (STATUS "NO THREADS!")
|
||||
@@ -89,19 +87,61 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
add_definitions ("-DDEBUG=1")
|
||||
endif ()
|
||||
|
||||
-# Exec Install Locations
|
||||
-set (BINDIR "${CMAKE_INSTALL_PREFIX}/bin")
|
||||
-set (LIBDIR "${CMAKE_INSTALL_PREFIX}/lib")
|
||||
-set (PYLIBDIR "${CMAKE_INSTALL_PREFIX}/python")
|
||||
-if (EXEC_INSTALL_PREFIX)
|
||||
- set (BINDIR "${EXEC_INSTALL_PREFIX}/bin")
|
||||
- set (LIBDIR "${EXEC_INSTALL_PREFIX}/lib")
|
||||
- set (PYLIBDIR "${EXEC_INSTALL_PREFIX}/python")
|
||||
+###########################################################################
|
||||
+# Paths for install tree customization. Note that relative paths are relative
|
||||
+# to CMAKE_INSTALL_PREFIX.
|
||||
+set (DEFAULT_BIN_INSTALL_DIR "bin")
|
||||
+set (DEFAULT_LIB_INSTALL_DIR "lib")
|
||||
+set (DEFAULT_INCLUDE_INSTALL_DIR "include/OpenImageIO")
|
||||
+if (UNIX AND NOT SELF_CONTAINED_INSTALL_TREE)
|
||||
+ # Try to be well-behaved and install into reasonable places according to
|
||||
+ # the "standard" unix directory heirarchy
|
||||
+ # TODO: Figure out how to get the correct python directory
|
||||
+ set (DEFAULT_PYLIB_INSTALL_DIR "lib/python/site-packages")
|
||||
+ set (DEFAULT_DOC_INSTALL_DIR "share/doc/openimageio")
|
||||
+ set (DEFAULT_MAN_INSTALL_DIR "share/man/man1")
|
||||
+else ()
|
||||
+ # Here is the "self-contained install tree" case: the expectation here is
|
||||
+ # that everything OIIO related will go into its own directory, not into
|
||||
+ # some standard system heirarchy.
|
||||
+ set (DEFAULT_PYLIB_INSTALL_DIR "python")
|
||||
+ set (DEFAULT_DOC_INSTALL_DIR "doc")
|
||||
+ set (DEFAULT_MAN_INSTALL_DIR "doc/man")
|
||||
endif ()
|
||||
+if (EXEC_INSTALL_PREFIX)
|
||||
+ # Tack on an extra prefix to support multi-arch builds.
|
||||
+ set (DEFAULT_BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/${DEFAULT_BIN_INSTALL_DIR}")
|
||||
+ set (DEFAULT_LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/${DEFAULT_LIB_INSTALL_DIR}")
|
||||
+ set (DEFAULT_PYLIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/${DEFAULT_PYLIB_INSTALL_DIR}")
|
||||
+endif ()
|
||||
+# Set up cmake cache variables corresponding to the defaults deduced above, so
|
||||
+# that the user can override them as desired:
|
||||
+set (BIN_INSTALL_DIR ${DEFAULT_BIN_INSTALL_DIR} CACHE STRING
|
||||
+ "Install location for binaries (relative to CMAKE_INSTALL_PREFIX or absolute)")
|
||||
+set (LIB_INSTALL_DIR ${DEFAULT_LIB_INSTALL_DIR} CACHE STRING
|
||||
+ "Install location for libraries (relative to CMAKE_INSTALL_PREFIX or absolute)")
|
||||
+set (PYLIB_INSTALL_DIR ${DEFAULT_PYLIB_INSTALL_DIR} CACHE STRING
|
||||
+ "Install location for python libraries (relative to CMAKE_INSTALL_PREFIX or absolute)")
|
||||
+set (INCLUDE_INSTALL_DIR ${DEFAULT_INCLUDE_INSTALL_DIR} CACHE STRING
|
||||
+ "Install location of header files (relative to CMAKE_INSTALL_PREFIX or absolute)")
|
||||
+set (DOC_INSTALL_DIR ${DEFAULT_DOC_INSTALL_DIR} CACHE STRING
|
||||
+ "Install location for documentation (relative to CMAKE_INSTALL_PREFIX or absolute)")
|
||||
+if (UNIX)
|
||||
+ set (MAN_INSTALL_DIR ${DEFAULT_MAN_INSTALL_DIR} CACHE STRING
|
||||
+ "Install location for manual pages (relative to CMAKE_INSTALL_PREFIX or absolute)")
|
||||
+endif()
|
||||
+
|
||||
+set (INSTALL_DOCS ON CACHE BOOL "Install documentation")
|
||||
+
|
||||
|
||||
-set (CMAKE_INSTALL_RPATH "${LIBDIR}")
|
||||
+#####
|
||||
+set (CMAKE_INSTALL_RPATH "${LIB_INSTALL_DIR}")
|
||||
+if (NOT IS_ABSOLUTE ${CMAKE_INSTALL_RPATH})
|
||||
+ set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}")
|
||||
+endif ()
|
||||
set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
|
||||
+
|
||||
###########################################################################
|
||||
if (MSVC)
|
||||
add_definitions (-D_CRT_SECURE_NO_DEPRECATE)
|
||||
diff -up OpenImageIO-oiio-1c4030e/src/cmake/modules/FindPugiXML.cmake.backport OpenImageIO-oiio-1c4030e/src/cmake/modules/FindPugiXML.cmake
|
||||
--- OpenImageIO-oiio-1c4030e/src/cmake/modules/FindPugiXML.cmake.backport 2011-08-27 09:26:48.255906794 -0400
|
||||
+++ OpenImageIO-oiio-1c4030e/src/cmake/modules/FindPugiXML.cmake 2011-08-27 09:26:48.255906794 -0400
|
||||
@@ -0,0 +1,21 @@
|
||||
+# Find the pugixml XML parsing library.
|
||||
+#
|
||||
+# Sets the usual variables expected for find_package scripts:
|
||||
+#
|
||||
+# PUGIXML_INCLUDE_DIR - header location
|
||||
+# PUGIXML_LIBRARIES - library to link against
|
||||
+# PUGIXML_FOUND - true if pugixml was found.
|
||||
+
|
||||
+find_path (PUGIXML_INCLUDE_DIR pugixml.hpp)
|
||||
+find_library (PUGIXML_LIBRARY NAMES pugixml)
|
||||
+
|
||||
+# Support the REQUIRED and QUIET arguments, and set PUGIXML_FOUND if found.
|
||||
+include (FindPackageHandleStandardArgs)
|
||||
+FIND_PACKAGE_HANDLE_STANDARD_ARGS (PugiXML DEFAULT_MSG PUGIXML_LIBRARY
|
||||
+ PUGIXML_INCLUDE_DIR)
|
||||
+
|
||||
+if (PUGIXML_FOUND)
|
||||
+ set (PUGIXML_LIBRARIES ${PUGIXML_LIBRARY})
|
||||
+endif()
|
||||
+
|
||||
+mark_as_advanced (PUGIXML_LIBRARY PUGIXML_INCLUDE_DIR)
|
||||
diff -up OpenImageIO-oiio-1c4030e/src/cmake/oiio_macros.cmake.backport OpenImageIO-oiio-1c4030e/src/cmake/oiio_macros.cmake
|
||||
--- OpenImageIO-oiio-1c4030e/src/cmake/oiio_macros.cmake.backport 2011-08-06 13:56:10.000000000 -0400
|
||||
+++ OpenImageIO-oiio-1c4030e/src/cmake/oiio_macros.cmake 2011-08-27 09:26:48.256906780 -0400
|
||||
@@ -7,9 +7,9 @@
|
||||
#
|
||||
macro (oiio_install_targets)
|
||||
install (TARGETS ${ARGN}
|
||||
- RUNTIME DESTINATION "${BINDIR}" COMPONENT user
|
||||
- LIBRARY DESTINATION "${LIBDIR}" COMPONENT user
|
||||
- ARCHIVE DESTINATION "${LIBDIR}" COMPONENT developer)
|
||||
+ RUNTIME DESTINATION "${BIN_INSTALL_DIR}" COMPONENT user
|
||||
+ LIBRARY DESTINATION "${LIB_INSTALL_DIR}" COMPONENT user
|
||||
+ ARCHIVE DESTINATION "${LIB_INSTALL_DIR}" COMPONENT developer)
|
||||
endmacro ()
|
||||
|
||||
# Macro to add a build target for an IO plugin.
|
||||
diff -up OpenImageIO-oiio-1c4030e/src/doc/CMakeLists.txt.backport OpenImageIO-oiio-1c4030e/src/doc/CMakeLists.txt
|
||||
--- OpenImageIO-oiio-1c4030e/src/doc/CMakeLists.txt.backport 2011-08-06 13:56:10.000000000 -0400
|
||||
+++ OpenImageIO-oiio-1c4030e/src/doc/CMakeLists.txt 2011-08-27 09:28:40.225349570 -0400
|
||||
@@ -1,11 +1,38 @@
|
||||
-set (public_docs openimageio.pdf CLA-INDIVIDUAL CLA-CORPORATE)
|
||||
+project(documentation)
|
||||
|
||||
-install (FILES ${public_docs} DESTINATION doc COMPONENT documentation)
|
||||
+set (public_docs
|
||||
+ openimageio.pdf
|
||||
+ ${OpenImageIO_SOURCE_DIR}/../LICENSE
|
||||
+ ${OpenImageIO_SOURCE_DIR}/../CHANGES
|
||||
+)
|
||||
|
||||
-install (FILES ${PROJECT_SOURCE_DIR}/../LICENSE
|
||||
- ${PROJECT_SOURCE_DIR}/../INSTALL
|
||||
- ${PROJECT_SOURCE_DIR}/../CHANGES
|
||||
- DESTINATION .)
|
||||
+if (INSTALL_DOCS)
|
||||
+ install (FILES ${public_docs} DESTINATION doc COMPONENT documentation)
|
||||
+endif ()
|
||||
|
||||
-#install (DIRECTORY doxygen/html DESTINATION doc
|
||||
-# PATTERN .svn EXCLUDE)
|
||||
+# generate man pages using txt2man and a tiny python script to munge the
|
||||
+# result of "$tool --help"
|
||||
+find_program(TXT2MAN txt2man)
|
||||
+find_package(PythonInterp)
|
||||
+if (UNIX AND TXT2MAN AND PYTHONINTERP_FOUND)
|
||||
+ message (STATUS "Unix man page documentation will be generated")
|
||||
+ set (cli_tools iinfo maketx idiff iv igrep iprocess iconvert)
|
||||
+
|
||||
+ foreach (tool ${cli_tools})
|
||||
+ set (outfile "${documentation_BINARY_DIR}/${tool}.1")
|
||||
+ list (APPEND manpage_files ${outfile})
|
||||
+ add_custom_command (OUTPUT ${outfile}
|
||||
+ COMMAND ${tool} --help |
|
||||
+ ${PYTHON_EXECUTABLE} ${documentation_SOURCE_DIR}/help2man_preformat.py |
|
||||
+ ${TXT2MAN} -v OpenImageIO -s 1 -t ${tool} > ${outfile}
|
||||
+ DEPENDS ${tool} help2man_preformat.py)
|
||||
+ endforeach()
|
||||
+
|
||||
+ # force man page build before install
|
||||
+ add_custom_target (man_pages ALL DEPENDS ${manpage_files})
|
||||
+
|
||||
+ if (INSTALL_DOCS)
|
||||
+ install (FILES ${manpage_files}
|
||||
+ DESTINATION ${MAN_INSTALL_DIR} COMPONENT documentation)
|
||||
+ endif ()
|
||||
+endif()
|
||||
diff -up OpenImageIO-oiio-1c4030e/src/doc/help2man_preformat.py.backport OpenImageIO-oiio-1c4030e/src/doc/help2man_preformat.py
|
||||
--- OpenImageIO-oiio-1c4030e/src/doc/help2man_preformat.py.backport 2011-08-27 09:26:48.257906766 -0400
|
||||
+++ OpenImageIO-oiio-1c4030e/src/doc/help2man_preformat.py 2011-08-27 09:26:48.257906766 -0400
|
||||
@@ -0,0 +1,35 @@
|
||||
+#!/usr/bin/python
|
||||
+
|
||||
+from __future__ import print_function
|
||||
+import sys
|
||||
+
|
||||
+lines = [l.rstrip().replace('\t', ' '*8) for l in sys.stdin.readlines()]
|
||||
+
|
||||
+print('TITLE')
|
||||
+print(lines[0])
|
||||
+print()
|
||||
+
|
||||
+print('SYNOPSIS')
|
||||
+for i,line in enumerate(lines[2:]):
|
||||
+ if line.lstrip().startswith('-'):
|
||||
+ optStart = i+2
|
||||
+ break
|
||||
+ print(line)
|
||||
+
|
||||
+print('''DESCRIPTION
|
||||
+This program is part of the OpenImageIO (http://www.openimageio.org) tool suite.
|
||||
+Detailed documentation is avaliable in pdf format with the OpenImageIO
|
||||
+distribution.
|
||||
+''')
|
||||
+
|
||||
+print('OPTIONS')
|
||||
+for line in lines[optStart:]:
|
||||
+ if not line.startswith(' '):
|
||||
+ print()
|
||||
+ print(line)
|
||||
+ elif not line.lstrip().startswith('-'):
|
||||
+ print(line.lstrip())
|
||||
+ else:
|
||||
+ print(line)
|
||||
+print()
|
||||
+
|
||||
diff -up OpenImageIO-oiio-1c4030e/src/include/CMakeLists.txt.backport OpenImageIO-oiio-1c4030e/src/include/CMakeLists.txt
|
||||
--- OpenImageIO-oiio-1c4030e/src/include/CMakeLists.txt.backport 2011-08-06 13:56:10.000000000 -0400
|
||||
+++ OpenImageIO-oiio-1c4030e/src/include/CMakeLists.txt 2011-08-27 09:26:48.257906766 -0400
|
||||
@@ -4,22 +4,26 @@ set (public_headers argparse.h dassert.h
|
||||
imagecache.h imageio.h osdep.h paramlist.h
|
||||
refcnt.h strutil.h sysutil.h texture.h thread.h timer.h
|
||||
typedesc.h ustring.h varyingref.h
|
||||
- colortransfer.h pugixml.hpp pugiconfig.hpp
|
||||
+ colortransfer.h
|
||||
)
|
||||
|
||||
+if (NOT USE_EXTERNAL_PUGIXML)
|
||||
+ list (APPEND public_headers pugixml.hpp pugiconfig.hpp)
|
||||
+endif ()
|
||||
+
|
||||
message(STATUS "Create version.h from version.h.in")
|
||||
+# Mangle the SOVERSION so that it's a valid C++ identifier for the versioning
|
||||
+# namespace defined in version.h
|
||||
+string (REGEX REPLACE "\\." "_" MANGLED_SOVERSION ${SOVERSION})
|
||||
+set (OIIO_VERSION_NS "v${MANGLED_SOVERSION}")
|
||||
configure_file(version.h.in ${CMAKE_BINARY_DIR}/include/version.h @ONLY)
|
||||
list(APPEND public_headers ${CMAKE_BINARY_DIR}/include/version.h)
|
||||
|
||||
-install (FILES ${public_headers} DESTINATION include/OpenImageIO
|
||||
+install (FILES ${public_headers} DESTINATION ${INCLUDE_INSTALL_DIR}
|
||||
COMPONENT developer)
|
||||
|
||||
if (USE_TBB)
|
||||
- file (GLOB tbb_headers tbb/*.h)
|
||||
- file (GLOB tbb_headers2 tbb/machine/*.h)
|
||||
- install (FILES ${tbb_headers} DESTINATION include/OpenImageIO/tbb
|
||||
- COMPONENT developer)
|
||||
- install (FILES ${tbb_headers2} DESTINATION include/OpenImageIO/tbb/machine
|
||||
+ install (DIRECTORY tbb DESTINATION ${INCLUDE_INSTALL_DIR}
|
||||
COMPONENT developer)
|
||||
endif ()
|
||||
|
||||
diff -up OpenImageIO-oiio-1c4030e/src/include/version.h.in.backport OpenImageIO-oiio-1c4030e/src/include/version.h.in
|
||||
--- OpenImageIO-oiio-1c4030e/src/include/version.h.in.backport 2011-08-06 13:56:10.000000000 -0400
|
||||
+++ OpenImageIO-oiio-1c4030e/src/include/version.h.in 2011-08-27 09:26:48.257906766 -0400
|
||||
@@ -39,7 +39,7 @@
|
||||
#define OIIO_VERSION_MAJOR @OIIO_VERSION_MAJOR@
|
||||
#define OIIO_VERSION_MINOR @OIIO_VERSION_MINOR@
|
||||
#define OIIO_VERSION_PATCH @OIIO_VERSION_PATCH@
|
||||
-#define OIIO_VERSION_NS v@SOVERSION@
|
||||
+#define OIIO_VERSION_NS @OIIO_VERSION_NS@
|
||||
|
||||
#define OIIO_VERSION (10000 * OIIO_VERSION_MAJOR + \
|
||||
100 * OIIO_VERSION_MINOR + \
|
||||
diff -up OpenImageIO-oiio-1c4030e/src/libOpenImageIO/CMakeLists.txt.backport OpenImageIO-oiio-1c4030e/src/libOpenImageIO/CMakeLists.txt
|
||||
--- OpenImageIO-oiio-1c4030e/src/libOpenImageIO/CMakeLists.txt.backport 2011-08-06 13:56:10.000000000 -0400
|
||||
+++ OpenImageIO-oiio-1c4030e/src/libOpenImageIO/CMakeLists.txt 2011-08-27 09:26:48.257906766 -0400
|
||||
@@ -12,8 +12,6 @@ set (libOpenImageIO_hdrs ../include/argp
|
||||
../include/osdep.h
|
||||
../include/paramlist.h
|
||||
../include/plugin.h
|
||||
- ../include/pugiconfig.hpp
|
||||
- ../include/pugixml.hpp
|
||||
../include/SHA1.h
|
||||
../include/strutil.h
|
||||
../include/sysutil.h
|
||||
@@ -25,6 +23,13 @@ set (libOpenImageIO_hdrs ../include/argp
|
||||
../include/varyingref.h
|
||||
)
|
||||
|
||||
+if (NOT USE_EXTERNAL_PUGIXML)
|
||||
+ list (APPEND libOpenImageIO_hdrs
|
||||
+ ../include/pugiconfig.hpp
|
||||
+ ../include/pugixml.hpp
|
||||
+ )
|
||||
+endif()
|
||||
+
|
||||
set (libOpenImageIO_srcs formatspec.cpp imagebuf.cpp
|
||||
imagebufalgo.cpp imagebufalgo_orient.cpp
|
||||
imageinput.cpp imageio.cpp imageioplugin.cpp
|
||||
@@ -37,7 +42,6 @@ set (libOpenImageIO_srcs formatspec.cpp
|
||||
../libutil/paramlist.cpp
|
||||
../libutil/plugin.cpp
|
||||
../libutil/pystring.cpp
|
||||
- ../libutil/pugixml.cpp
|
||||
../libutil/SHA1.cpp
|
||||
../libutil/strutil.cpp
|
||||
../libutil/sysutil.cpp
|
||||
@@ -51,6 +55,10 @@ set (libOpenImageIO_srcs formatspec.cpp
|
||||
${libOpenImageIO_hdrs}
|
||||
)
|
||||
|
||||
+if (NOT USE_EXTERNAL_PUGIXML)
|
||||
+ list (APPEND libOpenImageIO_srcs ../libutil/pugixml.cpp)
|
||||
+endif ()
|
||||
+
|
||||
# Include our own TBB if using it
|
||||
if (USE_TBB)
|
||||
add_definitions ("-DUSE_TBB=1")
|
||||
@@ -175,14 +183,16 @@ if (EMBEDPLUGINS)
|
||||
link_openexr (OpenImageIO)
|
||||
endif ()
|
||||
|
||||
-if (SOVERSION)
|
||||
+if (USE_EXTERNAL_PUGIXML)
|
||||
+ target_link_libraries (OpenImageIO ${PUGIXML_LIBRARIES})
|
||||
+endif ()
|
||||
+
|
||||
message(STATUS "Setting SOVERSION to: ${SOVERSION}")
|
||||
set_target_properties(OpenImageIO
|
||||
PROPERTIES
|
||||
VERSION ${OIIO_VERSION_MAJOR}.${OIIO_VERSION_MINOR}.${OIIO_VERSION_PATCH}
|
||||
SOVERSION ${SOVERSION}
|
||||
)
|
||||
-endif ()
|
||||
|
||||
oiio_install_targets (OpenImageIO)
|
||||
|
||||
diff -up OpenImageIO-oiio-1c4030e/src/python/CMakeLists.txt.backport OpenImageIO-oiio-1c4030e/src/python/CMakeLists.txt
|
||||
--- OpenImageIO-oiio-1c4030e/src/python/CMakeLists.txt.backport 2011-08-06 13:56:10.000000000 -0400
|
||||
+++ OpenImageIO-oiio-1c4030e/src/python/CMakeLists.txt 2011-08-27 09:26:48.264906668 -0400
|
||||
@@ -42,7 +42,7 @@ if ( BOOST_CUSTOM OR Boost_FOUND AND PYT
|
||||
endif()
|
||||
|
||||
install (TARGETS PyOpenImageIO
|
||||
- RUNTIME DESTINATION ${PYLIBDIR} COMPONENT user
|
||||
- LIBRARY DESTINATION ${PYLIBDIR} COMPONENT user)
|
||||
+ RUNTIME DESTINATION ${PYLIB_INSTALL_DIR} COMPONENT user
|
||||
+ LIBRARY DESTINATION ${PYLIB_INSTALL_DIR} COMPONENT user)
|
||||
|
||||
endif ()
|
|
@ -1,25 +0,0 @@
|
|||
diff -Naur OpenImageIO-oiio-7d98ca6.orig/src/libOpenImageIO/CMakeLists.txt OpenImageIO-oiio-7d98ca6/src/libOpenImageIO/CMakeLists.txt
|
||||
--- OpenImageIO-oiio-7d98ca6.orig/src/libOpenImageIO/CMakeLists.txt 2011-11-05 14:58:12.807482262 -0500
|
||||
+++ OpenImageIO-oiio-7d98ca6/src/libOpenImageIO/CMakeLists.txt 2011-11-05 15:24:19.934139140 -0500
|
||||
@@ -62,7 +62,7 @@
|
||||
# Include our own TBB if using it
|
||||
if (USE_TBB)
|
||||
add_definitions ("-DUSE_TBB=1")
|
||||
- set (libOpenImageIO_srcs ${libOpenImageIO_srcs} ../libutil/tbb_misc.cpp)
|
||||
+ include_directories(SYSTEM "/usr/include")
|
||||
else ()
|
||||
add_definitions ("-DUSE_TBB=0")
|
||||
message (STATUS "TBB will not be used")
|
||||
diff -Naur OpenImageIO-oiio-7d98ca6.orig/src/include/CMakeLists.txt OpenImageIO-oiio-7d98ca6/src/include/CMakeLists.txt
|
||||
--- OpenImageIO-oiio-7d98ca6.orig/src/include/CMakeLists.txt 2011-11-05 15:42:23.297182938 -0500
|
||||
+++ OpenImageIO-oiio-7d98ca6/src/include/CMakeLists.txt 2011-11-05 16:01:10.691264012 -0500
|
||||
@@ -21,9 +21,3 @@
|
||||
|
||||
install (FILES ${public_headers} DESTINATION ${INCLUDE_INSTALL_DIR}
|
||||
COMPONENT developer)
|
||||
-
|
||||
-if (USE_TBB)
|
||||
- install (DIRECTORY tbb DESTINATION ${INCLUDE_INSTALL_DIR}
|
||||
- COMPONENT developer)
|
||||
-endif ()
|
||||
-
|
|
@ -0,0 +1,59 @@
|
|||
--- a/src/doc/CMakeLists.txt
|
||||
+++ b/src/doc/CMakeLists.txt
|
||||
@@ -6,10 +6,11 @@ set (public_docs
|
||||
"${OpenImageIO_SOURCE_DIR}/CHANGES.md"
|
||||
)
|
||||
|
||||
-install (FILES ${public_docs}
|
||||
- DESTINATION ${CMAKE_INSTALL_DOCDIR}
|
||||
- COMPONENT documentation)
|
||||
-
|
||||
+if (INSTALL_DOCS)
|
||||
+ install (FILES ${public_docs}
|
||||
+ DESTINATION ${CMAKE_INSTALL_DOCDIR}
|
||||
+ COMPONENT documentation)
|
||||
+endif()
|
||||
|
||||
# generate man pages using txt2man and a tiny python script to munge the
|
||||
# result of "$tool --help"
|
||||
@@ -19,8 +20,7 @@ if (UNIX AND TXT2MAN AND PYTHONINTERP_FO
|
||||
message (STATUS "Unix man page documentation will be generated")
|
||||
set (cli_tools oiiotool iinfo maketx idiff igrep iconvert)
|
||||
|
||||
- find_program (IV_FOUND iv)
|
||||
- if (IV_FOUND)
|
||||
+ if (TARGET iv)
|
||||
list (APPEND cli_tools iv)
|
||||
endif()
|
||||
|
||||
@@ -37,7 +37,9 @@ if (UNIX AND TXT2MAN AND PYTHONINTERP_FO
|
||||
# force man page build before install
|
||||
add_custom_target (man_pages ALL DEPENDS ${manpage_files})
|
||||
|
||||
+if (INSTALL_DOCS)
|
||||
install (FILES ${manpage_files}
|
||||
DESTINATION ${CMAKE_INSTALL_MANDIR}
|
||||
COMPONENT documentation)
|
||||
endif()
|
||||
+endif()
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -101,6 +101,9 @@ set (TEX_BATCH_SIZE "" CACHE STRING "For
|
||||
set (SOVERSION ${OIIO_VERSION_MAJOR}.${OIIO_VERSION_MINOR}
|
||||
CACHE STRING "Set the SO version in the SO name of the output library")
|
||||
option (BUILD_OIIOUTIL_ONLY "If ON, will build *only* libOpenImageIO_Util")
|
||||
+option (BUILD_DOCS "If ON, build documentation and man pages.")
|
||||
+option (INSTALL_DOCS "If ON, install documentation and man pages.")
|
||||
+
|
||||
|
||||
if (NOT OIIO_THREAD_ALLOW_DCLP)
|
||||
add_definitions ("-DOIIO_THREAD_ALLOW_DCLP=0")
|
||||
@@ -188,7 +191,7 @@ if (USE_PYTHON AND NOT BUILD_OIIOUTIL_ON
|
||||
endif ()
|
||||
|
||||
add_subdirectory (src/include)
|
||||
-if (INSTALL_DOCS)
|
||||
+if (BUILD_DOCS)
|
||||
add_subdirectory (src/doc)
|
||||
endif ()
|
||||
add_subdirectory (src/fonts)
|
212
OpenImageIO.spec
212
OpenImageIO.spec
|
@ -1,34 +1,47 @@
|
|||
%global sover 1.8
|
||||
|
||||
Name: OpenImageIO
|
||||
Version: 0.10.3
|
||||
Release: 3%{?dist}
|
||||
Version: 1.8.12
|
||||
Release: 1%{?dist}
|
||||
Summary: Library for reading and writing images
|
||||
|
||||
Group: Development/Libraries
|
||||
License: BSD
|
||||
URL: https://sites.google.com/site/openimageio/home
|
||||
Source0: https://github.com/%{name}/oiio/archive/Release-%{version}/%{name}-%{version}.tar.gz
|
||||
# Images for test suite
|
||||
#Source1: oiio-images.tar.gz
|
||||
|
||||
Source0: https://download.github.com/%{name}-oiio-Release-%{version}-0-ge93cd33.tar.gz
|
||||
Patch0: OpenImageIO-0.10.2-git_backports.patch
|
||||
Patch1: OpenImageIO-0.10.0-atomic_test_fix.patch
|
||||
Patch2: OpenImageIO-0.10.3-use_system_tbb.patch
|
||||
Patch3: OpenImageIO-0.10.2-Z_BEST_COMPRESSION.patch
|
||||
Patch0: OpenImageIO-man.patch
|
||||
|
||||
BuildRequires: boost-devel glew-devel qt-devel OpenEXR-devel ilmbase-devel
|
||||
BuildRequires: python2-devel txt2man
|
||||
BuildRequires: libpng libtiff-devel
|
||||
BuildRequires: zlib-devel jasper-devel
|
||||
BuildRequires: cmake gcc-c++
|
||||
BuildRequires: txt2man
|
||||
BuildRequires: qt5-devel
|
||||
BuildRequires: boost-devel
|
||||
%if 0%{?fedora} > 28
|
||||
BuildRequires: boost-python2-devel
|
||||
%else
|
||||
BuildRequires: boost-python-devel
|
||||
%endif
|
||||
BuildRequires: glew-devel
|
||||
BuildRequires: OpenEXR-devel ilmbase-devel
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: libpng-devel libtiff-devel libjpeg-turbo-devel openjpeg2-devel
|
||||
BuildRequires: giflib-devel
|
||||
BuildRequires: libwebp-devel
|
||||
BuildRequires: Field3D-devel
|
||||
BuildRequires: hdf5-devel
|
||||
BuildRequires: dcmtk-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: jasper-devel
|
||||
BuildRequires: pugixml-devel
|
||||
# Disable until it works properly
|
||||
#BuildRequires: tbb-devel
|
||||
# Field3D support is not considered stable at this time and no package
|
||||
# currently exists for Fedora. Re-enable when fixed.
|
||||
#BuildRequires: hdf5-devel Field3D-devel
|
||||
BuildRequires: opencv-devel
|
||||
BuildRequires: LibRaw-devel
|
||||
BuildRequires: openssl-devel
|
||||
|
||||
# We don't want to provide private python extension libs
|
||||
%{?filter_setup:
|
||||
%filter_provides_in %{python_sitearch}/.*\.so$
|
||||
%filter_setup
|
||||
}
|
||||
# WARNING: OpenColorIO and OpenImageIO are cross dependent.
|
||||
# If an ABI incompatible update is done in one, the other also needs to be
|
||||
# rebuilt.
|
||||
BuildRequires: OpenColorIO-devel
|
||||
|
||||
|
||||
%description
|
||||
|
@ -41,12 +54,37 @@ classes, utilities, and applications. Main features include:
|
|||
PNM/PPM/PGM/PBM, Field3d.
|
||||
- An ImageCache class that transparently manages a cache so that it can access
|
||||
truly vast amounts of image data.
|
||||
- A really nice image viewer, iv, also based on OpenImageIO classes (and so
|
||||
will work with any formats for which plugins are available).
|
||||
|
||||
|
||||
%package -n python2-openimageio
|
||||
Summary: Python 2 bindings for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-%{srcname}}
|
||||
|
||||
%description -n python2-openimageio
|
||||
Python bindings for %{name}.
|
||||
|
||||
|
||||
%package utils
|
||||
Summary: Command line utilities for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description utils
|
||||
Command-line tools to manipulate and get information on images using the
|
||||
%{name} library.
|
||||
|
||||
|
||||
%package iv
|
||||
Summary: %{name} based image viewer
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description iv
|
||||
A really nice image viewer, iv, based on %{name} classes (and so will work
|
||||
with any formats for which plugins are available).
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
|
@ -54,77 +92,121 @@ Development files for package %{name}
|
|||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-oiio-7d98ca6
|
||||
%patch0 -p1 -b .backport
|
||||
%patch1 -p1 -b .atomic
|
||||
#patch2 -p1 -b .tbb
|
||||
%patch3 -p1 -b .zlib
|
||||
%autosetup -p1 -n oiio-Release-%{version}
|
||||
|
||||
# Remove bundled pugixml
|
||||
rm -f src/include/pugixml.hpp \
|
||||
src/include/pugiconfig.hpp \
|
||||
src/libutil/pugixml.cpp
|
||||
rm -f src/include/OpenImageIO/pugixml.hpp \
|
||||
src/include/OpenImageIO/pugiconfig.hpp \
|
||||
src/libutil/OpenImageIO/pugixml.cpp
|
||||
|
||||
# Remove bundled tbb
|
||||
rm -rf src/include/tbb
|
||||
|
||||
# Install test images
|
||||
#rm -rf ../oiio-images && mkdir ../oiio-images && pushd ../oiio-images
|
||||
#tar --strip-components=1 -xzf %{SOURCE1}
|
||||
|
||||
|
||||
%build
|
||||
mkdir -p build
|
||||
pushd build
|
||||
%cmake -DCMAKE_SKIP_RPATH:BOOL=TRUE \
|
||||
rm -rf build/linux && mkdir -p build/linux && pushd build/linux
|
||||
# CMAKE_SKIP_RPATH is OK here because it is set to FALSE internally and causes
|
||||
# CMAKE_INSTALL_RPATH to be cleared, which is the desiered result.
|
||||
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_SKIP_RPATH:BOOL=TRUE \
|
||||
-DINCLUDE_INSTALL_DIR:PATH=/usr/include/%{name} \
|
||||
-DPYLIB_INSTALL_DIR:PATH=%{python_sitearch} \
|
||||
-DINSTALL_DOCS:BOOL=OFF \
|
||||
-DBUILD_DOCS:BOOL=TRUE \
|
||||
-DINSTALL_DOCS:BOOL=FALSE \
|
||||
-DINSTALL_FONTS:BOOL=FALSE \
|
||||
-DUSE_EXTERNAL_PUGIXML:BOOL=TRUE \
|
||||
-DUSE_TBB:BOOL=OFF \
|
||||
../src
|
||||
-DUSE_OPENSSL:BOOL=TRUE \
|
||||
-DSTOP_ON_WARNING:BOOL=FALSE \
|
||||
-DUSE_CPP:STRING=14 \
|
||||
%ifarch ppc ppc64
|
||||
-DNOTHREADS:BOOL=FALSE \
|
||||
%endif
|
||||
-DJPEG_INCLUDE_DIR=%{_includedir} \
|
||||
-DOPENJPEG_INCLUDE_DIR=$(pkgconf --variable=includedir libopenjp2) \
|
||||
-DVERBOSE=TRUE \
|
||||
../../
|
||||
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
pushd build
|
||||
make DESTDIR=%{buildroot} install
|
||||
pushd build/linux
|
||||
%make_install
|
||||
|
||||
# Move man pages to the right directory
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
cp -a doc/*.1 %{buildroot}%{_mandir}/man1
|
||||
cp -a src/doc/*.1 %{buildroot}%{_mandir}/man1
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%check
|
||||
# Not all tests pass on linux
|
||||
#pushd build/linux && make test
|
||||
|
||||
|
||||
%files
|
||||
%doc CHANGES LICENSE
|
||||
%doc CHANGES.md README.md
|
||||
%license LICENSE
|
||||
%{_libdir}/libOpenImageIO.so.%{sover}*
|
||||
%{_libdir}/libOpenImageIO_Util.so.%{sover}*
|
||||
|
||||
%files -n python2-openimageio
|
||||
%{python2_sitearch}/OpenImageIO.so
|
||||
|
||||
%files utils
|
||||
%exclude %{_bindir}/iv
|
||||
%{_bindir}/*
|
||||
%{_libdir}/libOpenImageIO.so.*
|
||||
%{python_sitearch}/OpenImageIO.so
|
||||
%{_mandir}/man1/*
|
||||
%exclude %{_mandir}/man1/iv.1.gz
|
||||
%{_mandir}/man1/*.1.gz
|
||||
|
||||
%files iv
|
||||
%{_bindir}/iv
|
||||
%{_mandir}/man1/iv.1.gz
|
||||
|
||||
%files devel
|
||||
%doc src/doc/*.pdf
|
||||
%{_libdir}/libOpenImageIO.so
|
||||
%{_libdir}/libOpenImageIO_Util.so
|
||||
%{_includedir}/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Nov 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.3-3
|
||||
- Update to 0.10.3
|
||||
- Rebuild for libpng 1.5.
|
||||
- Fix typo in summary.
|
||||
* Fri Jun 01 2018 Richard Shaw <hobbes1069@gmail.com> - 1.8.12-1
|
||||
- Update to 1.8.12.
|
||||
|
||||
* Thu Aug 27 2011 Tom Callaway <spot@fedoraproject.org> - 0.10.2-1
|
||||
- Update to 0.10.2
|
||||
* Mon Apr 02 2018 Richard Shaw <hobbes1069@gmail.com> - 1.8.10-1
|
||||
- Update to 1.8.10.
|
||||
|
||||
* Thu Aug 04 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.1-2
|
||||
- New upstream release.
|
||||
- Fix private shared object provides with python library.
|
||||
* Fri Mar 02 2018 Adam Williamson <awilliam@redhat.com> - 1.8.9-2
|
||||
- Rebuild for opencv 3.4.1
|
||||
|
||||
* Mon Jul 18 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.0-2
|
||||
- Disabled use of the TBB library.
|
||||
- Moved headers to named directory.
|
||||
* Thu Mar 01 2018 Richard Shaw <hobbes1069@gmail.com> - 1.8.9-1
|
||||
- Update to 1.8.9
|
||||
|
||||
* Tue Jul 05 2011 Richard Shaw <hobbes1069@gmail.com> - 0.10.0-1
|
||||
- Inital Release.
|
||||
* Fri Feb 23 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.8.8-3
|
||||
- Rebuild
|
||||
|
||||
* Tue Feb 13 2018 Sandro Mani <manisandro@gmail.com> - 1.8.8-2
|
||||
- Rebuild (giflib)
|
||||
|
||||
* Fri Feb 02 2018 Richard Shaw <hobbes1069@gmail.com> - 1.8.8-1
|
||||
- Update to 1.8.8.
|
||||
|
||||
* Thu Jan 18 2018 Richard Shaw <hobbes1069@gmail.com> - 1.8.7-3
|
||||
- Add openjpeg2 to build dependencies.
|
||||
- Re-enable dcmtk for 32bit arches.
|
||||
|
||||
* Sat Jan 13 2018 Richard Shaw <hobbes1069@gmail.com> - 1.8.7-2
|
||||
- Rebuild for OpenColorIO 1.1.0.
|
||||
|
||||
* Wed Jan 03 2018 Richard Shaw <hobbes1069@gmail.com> - 1.8.7-1
|
||||
- Update to latest upstream release.
|
||||
- Disable building with dcmtk until fixed, see:
|
||||
https://github.com/OpenImageIO/oiio/issues/1841
|
||||
|
||||
* Thu Nov 02 2017 Richard Shaw <hobbes1069@gmail.com> - 1.8.6-1
|
||||
- Update to latest upstream release.
|
||||
- Add dcmtk to build to enable DICOM plugin.
|
||||
|
|
Loading…
Reference in New Issue