FreeBSD Bugzilla – Attachment 128507 Details for
Bug 172362
[maintainer update] update for graphics/openimageio
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
openimageio.patch.txt
openimageio.patch.txt (text/plain; charset=UTF-8), 8.70 KB, created by
Shane
on 2012-11-17 05:03:12 UTC
(
hide
)
Description:
openimageio.patch.txt
Filename:
MIME Type:
Creator:
Shane
Created:
2012-11-17 05:03:12 UTC
Size:
8.70 KB
patch
obsolete
>diff -Nru openimageio.orig/Makefile openimageio/Makefile >--- openimageio.orig/Makefile 2012-11-17 15:26:50.389295634 +1030 >+++ openimageio/Makefile 2012-11-17 15:24:40.773296695 +1030 >@@ -1,51 +1,57 @@ >-# New ports collection makefile for: OpenImageIO >-# Date created: 21 March 2012 >-# Whom: Shane Ambler >-# >+# Created by: Shane Ambler <FreeBSD@Shaneware.biz> > # $FreeBSD: ports/graphics/openimageio/Makefile,v 1.7 2012/09/17 05:24:02 rm Exp $ >-# > >-PORTNAME= openimageio >-PORTVERSION= 1.0.9 >-CATEGORIES= graphics multimedia >-MASTER_SITES= https://github.com/OpenImageIO/oiio/tarball/ >-DISTNAME= Release-${PORTVERSION} >-EXTRACT_SUFX= # empty >-DIST_SUBDIR= ${PORTNAME} >+PORTNAME?= openimageio >+PORTVERSION= 1.1.0 >+PORTREVISION?= 0 >+CATEGORIES?= graphics multimedia > > MAINTAINER= FreeBSD@Shaneware.biz > COMMENT= OpenImageIO graphics library > >-LICENSE= BSD >+LICENSE?= BSD > >-LIB_DEPENDS= IlmImf:${PORTSDIR}/graphics/OpenEXR \ >+LIB_DEPENDS?= IlmImf:${PORTSDIR}/graphics/OpenEXR \ > boost_thread:${PORTSDIR}/devel/boost-libs \ > hdf5:${PORTSDIR}/science/hdf5 \ > opencv_legacy:${PORTSDIR}/graphics/opencv \ > openjpeg:${PORTSDIR}/graphics/openjpeg \ >- tbb:${PORTSDIR}/devel/tbb \ > webp:${PORTSDIR}/graphics/webp > >+USE_GITHUB= yes >+GH_ACCOUNT= OpenImageIO >+GH_PROJECT= oiio >+GH_TAGNAME= Release-${PORTVERSION} >+GH_COMMIT= 34e980e >+ > # fbm also installs bin/idiff > CONFLICTS= fbm-[0-9]* > >-FETCH_ARGS= -pRr > USE_CMAKE= yes > CMAKE_VERBOSE= yes > CMAKE_OUTSOURCE= yes >-CMAKE_ARGS= -DBUILDSTATIC:BOOL=OFF \ >+CMAKE_ARGS?= -DBUILDSTATIC:BOOL=OFF \ > -DLINKSTATIC:BOOL=OFF \ > -DUSE_PYTHON:BOOL=OFF \ >- -DUSE_TBB:BOOL=ON >-LDFLAGS+= -ltbb >+ -DUSE_TBB:BOOL=OFF > USE_LDCONFIG= yes >-WRKSRC= ${WRKDIR}/OpenImageIO-oiio-0d48631/src >+WRKSRC= ${WRKDIR}/OpenImageIO-oiio-${GH_COMMIT}/src > MAKE_JOBS_SAFE= yes > >-OPTIONS_DEFINE= DOCS IMAGEVIEWER THREADS >-OPTIONS_DEFAULT= DOCS IMAGEVIEWER THREADS >+.if defined(OIIO_PYBIND) >+EXTRA_PATCHES= ${FILESDIR}/extra-patch-CMakeLists.txt >+PLIST= ${PKGDIR}/pkg-plist-pybind >+.else >+PLIST= ${PKGDIR}/pkg-plist >+.endif >+ >+.if !defined(OIIO_PYBIND) >+OPTIONS_DEFINE= DOCS IMAGEVIEWER OCIO THREADS >+OPTIONS_DEFAULT= DOCS IMAGEVIEWER OCIO THREADS > > IMAGEVIEWER_DESC= Build image viewer >+OCIO_DESC= Colour management support >+.endif > > .include <bsd.port.options.mk> > >@@ -66,6 +72,13 @@ > PLIST_SUB+= IMAGEVIEWER="@comment " > .endif > >+.if ${PORT_OPTIONS:MOCIO} >+CMAKE_ARGS+= -DUSE_OCIO:BOOL=ON >+LIB_DEPENDS+= OpenColorIO:${PORTSDIR}/graphics/opencolorio >+.else >+CMAKE_ARGS+= -DUSE_OCIO:BOOL=OFF >+.endif >+ > .if ${PORT_OPTIONS:MTHREADS} > CMAKE_ARGS+= -DNOTHREADS:BOOL=ON > .else >@@ -74,8 +87,9 @@ > > .include <bsd.port.pre.mk> > >-.if ${ARCH} == "i386" || ${OSVERSION} < 803000 >-USE_GCC= 4.6+ >+.if ${ARCH} == "i386" >+# for gcc atomics we need to have an arch > i486 >+CFLAGS+= -march=i586 > .endif > > .if ${OSVERSION} < 800000 >@@ -83,6 +97,8 @@ > .endif > > post-install: >- cd ${PREFIX}/lib && ${LN} -sf libOpenImageIO.so.1.0 libOpenImageIO.so.1 >+.if !defined(OIIO_PYBIND) >+ cd ${PREFIX}/lib && ${LN} -sf libOpenImageIO.so.1.1 libOpenImageIO.so.1 >+.endif > > .include <bsd.port.post.mk> >diff -Nru openimageio.orig/distinfo openimageio/distinfo >--- openimageio.orig/distinfo 2012-11-17 15:26:50.389295634 +1030 >+++ openimageio/distinfo 2012-11-12 12:04:47.735295488 +1030 >@@ -1,2 +1,2 @@ >-SHA256 (openimageio/Release-1.0.9) = 59ebc09f3d3e5ac780adc4a3e0020d6986721f6be1c84dd01da7899a565b5204 >-SIZE (openimageio/Release-1.0.9) = 4208590 >+SHA256 (openimageio-1.1.0.tar.gz) = b387ab87bde894f20269d9dc71a4f790722ba65c3ca4db4ee6423d7011f0cb12 >+SIZE (openimageio-1.1.0.tar.gz) = 8210961 >diff -Nru openimageio.orig/files/extra-patch-CMakeLists.txt openimageio/files/extra-patch-CMakeLists.txt >--- openimageio.orig/files/extra-patch-CMakeLists.txt 1970-01-01 09:30:00.000000000 +0930 >+++ openimageio/files/extra-patch-CMakeLists.txt 2012-11-12 12:04:47.736293632 +1030 >@@ -0,0 +1,49 @@ >+--- ./CMakeLists.txt.orig 2012-11-11 18:38:49.980294043 +1030 >++++ ./CMakeLists.txt 2012-11-11 18:39:47.515297055 +1030 >+@@ -234,46 +234,6 @@ >+ # their add_test commands will not register. >+ include (CTest) >+ >+- >+-# Tell CMake to process the sub-directories >+-add_subdirectory (libOpenImageIO) >+- >+-add_subdirectory (iconvert) >+-add_subdirectory (idiff) >+-add_subdirectory (igrep) >+-add_subdirectory (iinfo) >+-add_subdirectory (maketx) >+-add_subdirectory (oiiotool) >+-add_subdirectory (testtex) >+-add_subdirectory (iv) >+-# Add IO plugin directories >+-if (NOT EMBEDPLUGINS) >+- add_subdirectory (bmp.imageio) >+- add_subdirectory (cineon.imageio) >+- add_subdirectory (dds.imageio) >+- add_subdirectory (dpx.imageio) >+- add_subdirectory (field3d.imageio) >+- add_subdirectory (fits.imageio) >+- add_subdirectory (hdr.imageio) >+- add_subdirectory (ico.imageio) >+- add_subdirectory (iff.imageio) >+- add_subdirectory (jpeg.imageio) >+- add_subdirectory (jpeg2000.imageio) >+- add_subdirectory (openexr.imageio) >+- add_subdirectory (png.imageio) >+- add_subdirectory (pnm.imageio) >+- add_subdirectory (psd.imageio) >+- add_subdirectory (ptex.imageio) >+- add_subdirectory (rla.imageio) >+- add_subdirectory (sgi.imageio) >+- add_subdirectory (socket.imageio) >+- add_subdirectory (softimage.imageio) >+- add_subdirectory (targa.imageio) >+- add_subdirectory (tiff.imageio) >+- add_subdirectory (webp.imageio) >+- add_subdirectory (zfile.imageio) >+-endif () >+- >+ if (USE_PYTHON AND oiio_boost_PYTHON_FOUND) >+ add_subdirectory (python) >+ endif () >diff -Nru openimageio.orig/files/patch-include__thread.h openimageio/files/patch-include__thread.h >--- openimageio.orig/files/patch-include__thread.h 1970-01-01 09:30:00.000000000 +0930 >+++ openimageio/files/patch-include__thread.h 2012-11-12 12:04:47.736293632 +1030 >@@ -0,0 +1,30 @@ >+--- ./include/thread.h.orig 2012-11-10 05:51:18.000000000 +1030 >++++ ./include/thread.h 2012-11-11 17:25:34.547296939 +1030 >+@@ -70,9 +70,14 @@ >+ #pragma GCC diagnostic error "-Wunused-variable" >+ #endif >+ >++#if defined(__GNUC__) && (defined(_GLIBCXX_ATOMIC_BUILTINS) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 401)) >++#define USE_GCC_ATOMICS 1 >++#undef USE_TBB >++#else >+ #ifndef USE_TBB >+ # define USE_TBB 0 >+ #endif >++#endif >+ >+ // Include files we need for atomic counters. >+ // Some day, we hope this is all replaced by use of std::atomic<>. >+@@ -97,12 +102,6 @@ >+ # include <libkern/OSAtomic.h> >+ #endif >+ >+-#if defined(__GNUC__) && (defined(_GLIBCXX_ATOMIC_BUILTINS) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 401)) >+-#if !defined(__FreeBSD__) || defined(__x86_64__) >+-#define USE_GCC_ATOMICS >+-#endif >+-#endif >+- >+ OIIO_NAMESPACE_ENTER >+ { >+ >diff -Nru openimageio.orig/pkg-plist openimageio/pkg-plist >--- openimageio.orig/pkg-plist 2012-11-17 15:26:50.389295634 +1030 >+++ openimageio/pkg-plist 2012-11-12 12:04:47.736293632 +1030 >@@ -2,32 +2,9 @@ > 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 >-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 > include/OpenImageIO/argparse.h > include/OpenImageIO/color.h > include/OpenImageIO/dassert.h >@@ -51,6 +28,7 @@ > include/OpenImageIO/texture.h > include/OpenImageIO/thread.h > include/OpenImageIO/timer.h >+include/OpenImageIO/tinyformat.h > include/OpenImageIO/typedesc.h > include/OpenImageIO/ustring.h > include/OpenImageIO/varyingref.h >@@ -59,12 +37,10 @@ > include/OpenImageIO/version.h > lib/libOpenImageIO.so > lib/libOpenImageIO.so.1 >-lib/libOpenImageIO.so.1.0 >-lib/libOpenImageIO.so.1.0.9 >+lib/libOpenImageIO.so.1.1 >+lib/libOpenImageIO.so.1.1.0 > %%PORTDOCS%%%%DOCSDIR%%/CHANGES > %%PORTDOCS%%%%DOCSDIR%%/LICENSE > %%PORTDOCS%%%%DOCSDIR%%/openimageio.pdf > %%PORTDOCS%%@dirrm %%DOCSDIR%% >-@dirrm include/OpenImageIO/tbb/machine >-@dirrm include/OpenImageIO/tbb > @dirrm include/OpenImageIO >diff -Nru openimageio.orig/pkg-plist-pybind openimageio/pkg-plist-pybind >--- openimageio.orig/pkg-plist-pybind 1970-01-01 09:30:00.000000000 +0930 >+++ openimageio/pkg-plist-pybind 2012-11-12 12:04:47.736293632 +1030 >@@ -0,0 +1 @@ >+%%PYTHON_SITELIBDIR%%/OpenImageIO.so
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 172362
:
128504
|
128505
|
128506
| 128507 |
128508