mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Update to 1.2.2.
- Fix build with libc++. - Support staging. - Move bits from py-openimageio to openimageio. PR: ports/182007 Submitted by: Shane Ambler <FreeBSD@ShaneWare.Biz> (maintainer)
This commit is contained in:
parent
4849fd5ff8
commit
e242011f68
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332021
7 changed files with 73 additions and 52 deletions
|
@ -1,63 +1,59 @@
|
||||||
# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
|
# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME?= openimageio
|
PORTNAME= openimageio
|
||||||
PORTVERSION= 1.2.1
|
PORTVERSION= 1.2.2
|
||||||
PORTREVISION?= 1
|
PORTREVISION?= 0
|
||||||
CATEGORIES?= graphics multimedia
|
CATEGORIES?= graphics multimedia
|
||||||
|
|
||||||
MAINTAINER= FreeBSD@Shaneware.biz
|
MAINTAINER?= FreeBSD@Shaneware.biz
|
||||||
COMMENT= OpenImageIO graphics library
|
COMMENT?= OpenImageIO graphics library
|
||||||
|
|
||||||
LICENSE?= BSD
|
LICENSE= BSD
|
||||||
|
|
||||||
LIB_DEPENDS?= libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
|
|
||||||
libboost_thread.so:${PORTSDIR}/devel/boost-libs \
|
|
||||||
libhdf5.so:${PORTSDIR}/science/hdf5-18 \
|
|
||||||
libopencv_legacy.so:${PORTSDIR}/graphics/opencv \
|
|
||||||
libopenjpeg.so:${PORTSDIR}/graphics/openjpeg \
|
|
||||||
libwebp.so:${PORTSDIR}/graphics/webp
|
|
||||||
|
|
||||||
USE_GITHUB= yes
|
USE_GITHUB= yes
|
||||||
GH_ACCOUNT= OpenImageIO
|
GH_ACCOUNT= OpenImageIO
|
||||||
GH_PROJECT= oiio
|
GH_PROJECT= oiio
|
||||||
GH_TAGNAME= Release-${PORTVERSION}
|
GH_TAGNAME= Release-${PORTVERSION}
|
||||||
GH_COMMIT= f7908a3
|
GH_COMMIT= f9d8f1b
|
||||||
WRKSRC= ${WRKDIR}/OpenImageIO-oiio-${GH_COMMIT}/src
|
WRKSRC= ${WRKDIR}/OpenImageIO-oiio-${GH_COMMIT}/src
|
||||||
|
|
||||||
# fbm also installs bin/idiff
|
# fbm also installs bin/idiff
|
||||||
CONFLICTS= fbm-[0-9]*
|
CONFLICTS= fbm-[0-9]*
|
||||||
|
|
||||||
USES= cmake:outsource
|
USES= cmake:outsource
|
||||||
CMAKE_ARGS?= -DBUILDSTATIC:BOOL=OFF \
|
CMAKE_ARGS= -DBUILDSTATIC:BOOL=OFF \
|
||||||
-DLINKSTATIC:BOOL=OFF \
|
-DLINKSTATIC:BOOL=OFF \
|
||||||
-DNOTHREADS:BOOL=OFF \
|
-DNOTHREADS:BOOL=OFF \
|
||||||
-DUSE_TBB:BOOL=OFF \
|
-DUSE_TBB:BOOL=OFF \
|
||||||
-DSTOP_ON_WARNING:BOOL=OFF
|
-DSTOP_ON_WARNING:BOOL=OFF
|
||||||
|
|
||||||
USE_LDCONFIG= yes
|
|
||||||
|
|
||||||
.if defined(OIIO_PYBIND)
|
|
||||||
PLIST= ${PKGDIR}/pkg-plist-pybind
|
|
||||||
CMAKE_ARGS+= -DUSE_PYTHON:BOOL=ON
|
|
||||||
CMAKE_ARGS+= -DOIIO_BUILD_TOOLS:BOOL=OFF
|
|
||||||
.else
|
|
||||||
PLIST= ${PKGDIR}/pkg-plist
|
|
||||||
CMAKE_ARGS+= -DUSE_PYTHON:BOOL=OFF
|
|
||||||
CMAKE_ARGS+= -DOIIO_BUILD_TOOLS:BOOL=ON
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if !defined(OIIO_PYBIND)
|
|
||||||
OPTIONS_DEFINE= DOCS IMAGEVIEWER OCIO
|
OPTIONS_DEFINE= DOCS IMAGEVIEWER OCIO
|
||||||
OPTIONS_DEFAULT= DOCS IMAGEVIEWER OCIO
|
OPTIONS_DEFAULT= IMAGEVIEWER OCIO
|
||||||
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
IMAGEVIEWER_DESC= Build image viewer
|
IMAGEVIEWER_DESC= Build image viewer
|
||||||
OCIO_DESC= Colour management support
|
OCIO_DESC= Colour management support
|
||||||
.endif
|
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
|
.if ${SLAVE_PORT} == no
|
||||||
|
LIB_DEPENDS= libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
|
||||||
|
libboost_thread.so:${PORTSDIR}/devel/boost-libs \
|
||||||
|
libhdf5.so:${PORTSDIR}/science/hdf5-18 \
|
||||||
|
libopencv_legacy.so:${PORTSDIR}/graphics/opencv \
|
||||||
|
libopenjpeg.so:${PORTSDIR}/graphics/openjpeg \
|
||||||
|
libwebp.so:${PORTSDIR}/graphics/webp
|
||||||
|
USE_LDCONFIG= yes
|
||||||
|
CMAKE_ARGS+= -DUSE_PYTHON:BOOL=OFF -DOIIO_BUILD_TOOLS:BOOL=ON
|
||||||
|
.else
|
||||||
|
LIB_DEPENDS= libOpenImageIO.so:${PORTSDIR}/graphics/openimageio \
|
||||||
|
libboost_python.so:${PORTSDIR}/devel/boost-python-libs
|
||||||
|
USE_PYTHON= 2.6+
|
||||||
|
PLIST= ${PKGDIR}/pkg-plist-pybind
|
||||||
|
CMAKE_ARGS+= -DUSE_PYTHON:BOOL=ON -DOIIO_BUILD_TOOLS:BOOL=OFF
|
||||||
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MDOCS}
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
CMAKE_ARGS+= -DINSTALL_DOCS:BOOL=ON
|
CMAKE_ARGS+= -DINSTALL_DOCS:BOOL=ON
|
||||||
.else
|
.else
|
||||||
|
@ -69,22 +65,20 @@ USE_GL= glew
|
||||||
USE_QT4= corelib gui opengl qmake_build moc_build rcc_build uic_build
|
USE_QT4= corelib gui opengl qmake_build moc_build rcc_build uic_build
|
||||||
CMAKE_ARGS+= -DUSE_QT:BOOL=ON -DUSE_OPENGL:BOOL=ON
|
CMAKE_ARGS+= -DUSE_QT:BOOL=ON -DUSE_OPENGL:BOOL=ON
|
||||||
CMAKE_ENV+= QTDIR=${QT_PREFIX} QT_INCLUDES=${QT_INCDIR}
|
CMAKE_ENV+= QTDIR=${QT_PREFIX} QT_INCLUDES=${QT_INCDIR}
|
||||||
PLIST_SUB+= IMAGEVIEWER=""
|
|
||||||
.else
|
.else
|
||||||
CMAKE_ARGS+= -DUSE_OPENGL:BOOL=OFF -DUSE_QT:BOOL=OFF
|
CMAKE_ARGS+= -DUSE_OPENGL:BOOL=OFF -DUSE_QT:BOOL=OFF
|
||||||
PLIST_SUB+= IMAGEVIEWER="@comment "
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MOCIO}
|
.if ${PORT_OPTIONS:MOCIO}
|
||||||
CMAKE_ARGS+= -DUSE_OCIO:BOOL=ON
|
CMAKE_ARGS+= -DUSE_OCIO:BOOL=ON
|
||||||
LIB_DEPENDS+= OpenColorIO:${PORTSDIR}/graphics/opencolorio
|
LIB_DEPENDS+= libOpenColorIO.so:${PORTSDIR}/graphics/opencolorio
|
||||||
.else
|
.else
|
||||||
CMAKE_ARGS+= -DUSE_OCIO:BOOL=OFF
|
CMAKE_ARGS+= -DUSE_OCIO:BOOL=OFF
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(OIIO_PYBIND)
|
.if ${SLAVE_PORT} == no
|
||||||
cd ${PREFIX}/lib && ${LN} -sf libOpenImageIO.so.1.2 libOpenImageIO.so.1
|
${LN} -sf libOpenImageIO.so.1.2 ${STAGEDIR}${PREFIX}/lib/libOpenImageIO.so.1
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
SHA256 (openimageio-1.2.1.tar.gz) = 030f4247c2c2a576f5611989bf656baf502f3bfaeb6e9ae37f3b5d3a5e5c97b7
|
SHA256 (openimageio-1.2.2.tar.gz) = 85891b3cac5bcc724ec42b1f46ff990f84ecc3887dd04743ad38961efacf2414
|
||||||
SIZE (openimageio-1.2.1.tar.gz) = 12380093
|
SIZE (openimageio-1.2.2.tar.gz) = 12383666
|
||||||
|
|
25
graphics/openimageio/files/patch-include_pugixml.hpp
Normal file
25
graphics/openimageio/files/patch-include_pugixml.hpp
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
--- include/pugixml.hpp.orig 2013-09-30 19:25:21.000000000 +0200
|
||||||
|
+++ include/pugixml.hpp 2013-10-27 20:41:36.000000000 +0100
|
||||||
|
@@ -27,22 +27,6 @@
|
||||||
|
{
|
||||||
|
struct bidirectional_iterator_tag;
|
||||||
|
|
||||||
|
-#ifdef __SUNPRO_CC
|
||||||
|
- // Sun C++ compiler has a bug which forces template argument names in forward declarations to be the same as in actual definitions
|
||||||
|
- template <class _T> class allocator;
|
||||||
|
- template <class _charT> struct char_traits;
|
||||||
|
- template <class _charT, class _Traits> class basic_istream;
|
||||||
|
- template <class _charT, class _Traits> class basic_ostream;
|
||||||
|
- template <class _charT, class _Traits, class _Allocator> class basic_string;
|
||||||
|
-#else
|
||||||
|
- // Borland C++ compiler has a bug which forces template argument names in forward declarations to be the same as in actual definitions
|
||||||
|
- template <class _Ty> class allocator;
|
||||||
|
- template <class _Ty> struct char_traits;
|
||||||
|
- template <class _Elem, class _Traits> class basic_istream;
|
||||||
|
- template <class _Elem, class _Traits> class basic_ostream;
|
||||||
|
- template <class _Elem, class _Traits, class _Ax> class basic_string;
|
||||||
|
-#endif
|
||||||
|
-
|
||||||
|
// Digital Mars compiler has a bug which requires a forward declaration for explicit instantiation (otherwise type selection is messed up later, producing link errors)
|
||||||
|
// Also note that we have to declare char_traits as a class here, since it's defined that way
|
||||||
|
#ifdef __DMC__
|
10
graphics/openimageio/files/patch-include_sysutil.h
Normal file
10
graphics/openimageio/files/patch-include_sysutil.h
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- include/sysutil.h.orig 2013-09-24 15:26:10.604215091 +0930
|
||||||
|
+++ include/sysutil.h 2013-09-24 15:26:16.727214989 +0930
|
||||||
|
@@ -41,6 +41,7 @@
|
||||||
|
#define OPENIMAGEIO_SYSUTIL_H
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
+#include <time.h>
|
||||||
|
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
#include <malloc.h> // for alloca
|
|
@ -39,7 +39,7 @@ include/OpenImageIO/version.h
|
||||||
lib/libOpenImageIO.so
|
lib/libOpenImageIO.so
|
||||||
lib/libOpenImageIO.so.1
|
lib/libOpenImageIO.so.1
|
||||||
lib/libOpenImageIO.so.1.2
|
lib/libOpenImageIO.so.1.2
|
||||||
lib/libOpenImageIO.so.1.2.1
|
lib/libOpenImageIO.so.1.2.2
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
|
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
|
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/openimageio.pdf
|
%%PORTDOCS%%%%DOCSDIR%%/openimageio.pdf
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
%%PYTHON_SITELIBDIR%%/OpenImageIO.so
|
%%PYTHON_SITELIBDIR%%/OpenImageIO.so
|
||||||
|
@dirrmtry %%PYTHON_SITELIBDIR%%
|
||||||
|
@dirrmtry %%PYTHON_LIBDIR%%
|
||||||
|
|
|
@ -1,26 +1,16 @@
|
||||||
# Created by: Shane Ambler
|
# Created by: Shane Ambler
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= openimageio
|
|
||||||
PORTREVISION= 1
|
|
||||||
CATEGORIES= graphics multimedia python
|
CATEGORIES= graphics multimedia python
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
COMMENT= OpenImageIO python bindings
|
COMMENT= OpenImageIO python bindings
|
||||||
|
|
||||||
LICENSE= BSD
|
|
||||||
|
|
||||||
LIB_DEPENDS= OpenImageIO:${PORTSDIR}/graphics/openimageio \
|
|
||||||
boost_python:${PORTSDIR}/devel/boost-python-libs
|
|
||||||
|
|
||||||
MASTERDIR= ${.CURDIR}/../openimageio
|
MASTERDIR= ${.CURDIR}/../openimageio
|
||||||
|
OPTIONS_EXCLUDE=DOCS IMAGEVIEWER OCIO
|
||||||
|
|
||||||
USE_PYTHON= 2.6+
|
|
||||||
|
|
||||||
OIIO_PYBIND= yes
|
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_LIB} ${BUILD_WRKSRC}/python/OpenImageIO.so ${PYTHON_SITELIBDIR}/
|
@${MKDIR} -p ${STAGEDIR}${PYTHON_SITELIBDIR}
|
||||||
|
${INSTALL_LIB} ${BUILD_WRKSRC}/python/OpenImageIO.so ${STAGEDIR}${PYTHON_SITELIBDIR}
|
||||||
|
|
||||||
.include "${MASTERDIR}/Makefile"
|
.include "${MASTERDIR}/Makefile"
|
||||||
|
|
Loading…
Add table
Reference in a new issue