diff options
Diffstat (limited to 'graphics/openimageio/Makefile')
-rw-r--r-- | graphics/openimageio/Makefile | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/graphics/openimageio/Makefile b/graphics/openimageio/Makefile index 764c3188116b..c6621a4f7b88 100644 --- a/graphics/openimageio/Makefile +++ b/graphics/openimageio/Makefile @@ -2,9 +2,9 @@ # $FreeBSD$ PORTNAME= openimageio -PORTVERSION= 1.4.15 +PORTVERSION= 1.5.16 DISTVERSIONPREFIX= Release- -PORTREVISION?= 2 +PORTREVISION?= 0 CATEGORIES?= graphics multimedia MAINTAINER?= FreeBSD@Shaneware.biz @@ -23,42 +23,63 @@ USES= cmake:outsource CMAKE_ARGS= -DBUILDSTATIC:BOOL=OFF \ -DLINKSTATIC:BOOL=OFF \ -DNOTHREADS:BOOL=OFF \ - -DSTOP_ON_WARNING:BOOL=OFF + -DSTOP_ON_WARNING:BOOL=OFF \ + -DUSE_CPP11:BOOL=OFF \ + -DUSE_OPENSSL:BOOL=OFF +CXXFLAGS+= -D__STDC_CONSTANT_MACROS -OPTIONS_DEFINE= DOCS IMAGEVIEWER OCIO TEST -OPTIONS_DEFAULT= OCIO +OPTIONS_DEFINE= DOCS FFMPEG GIF IMAGEVIEWER OCIO RAW TEST +OPTIONS_DEFAULT= OCIO FFMPEG GIF OPTIONS_SUB= yes +FFMPEG_DESC= Use ffmpeg to support extra file types IMAGEVIEWER_DESC= Build image viewer OCIO_DESC= Colour management support DOCS_CMAKE_ON= -DINSTALL_DOCS:BOOL=ON DOCS_CMAKE_OFF= -DINSTALL_DOCS:BOOL=OFF +FFMPEG_CMAKE_ON= -DUSE_FFMPEG:BOOL=ON +FFMPEG_CMAKE_OFF= -DUSE_FFMPEG:BOOL=OFF +FFMPEG_LIB_DEPENDS= libavutil.so:${PORTSDIR}/multimedia/ffmpeg + +GIF_CMAKE_ON= -DUSE_GIF:BOOL=ON +GIF_CMAKE_OFF= -DUSE_GIF:BOOL=OFF +GIF_LIB_DEPENDS= libgif.so:${PORTSDIR}/graphics/giflib + OCIO_CMAKE_ON= -DUSE_OCIO:BOOL=ON OCIO_CMAKE_OFF= -DUSE_OCIO:BOOL=OFF OCIO_LIB_DEPENDS= libOpenColorIO.so:${PORTSDIR}/graphics/opencolorio +RAW_CMAKE_ON= -DUSE_LIBRAW:BOOL=ON +RAW_CMAKE_OFF= -DUSE_LIBRAW:BOOL=OFF +RAW_LIB_DEPENDS= libraw_r.so:${PORTSDIR}/graphics/libraw + TEST_CMAKE_ON= -DOIIO_BUILD_TESTS:BOOL=ON TEST_CMAKE_OFF= -DOIIO_BUILD_TESTS:BOOL=OFF +PLIST_SUB+= LIBVERS=${PORTVERSION} + .include <bsd.port.options.mk> .if ${SLAVE_PORT} == no -LIB_DEPENDS= libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \ +LIB_DEPENDS+= libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \ libboost_thread.so:${PORTSDIR}/devel/boost-libs \ libhdf5.so:${PORTSDIR}/science/hdf5 \ libopencv_legacy.so:${PORTSDIR}/graphics/opencv \ libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15 \ libwebp.so:${PORTSDIR}/graphics/webp USE_LDCONFIG= yes -CMAKE_ARGS+= -DUSE_PYTHON:BOOL=OFF -DOIIO_BUILD_TOOLS:BOOL=ON +CMAKE_ARGS+= -DUSE_PYTHON:BOOL=OFF -DUSE_PYTHON3:BOOL=OFF \ + -DOIIO_BUILD_TOOLS:BOOL=ON .else LIB_DEPENDS= libOpenImageIO.so:${PORTSDIR}/graphics/openimageio \ libboost_python.so:${PORTSDIR}/devel/boost-python-libs -USES+= python PLIST= ${PKGDIR}/pkg-plist-pybind -CMAKE_ARGS+= -DUSE_PYTHON:BOOL=ON -DOIIO_BUILD_TOOLS:BOOL=OFF +#while oiio supports py3, ports doesn't have py3 support for boost-python yet +USES+= python:2 +CMAKE_ARGS+= -DUSE_PYTHON:BOOL=ON -DUSE_PYTHON3:BOOL=OFF \ + -DOIIO_BUILD_TOOLS:BOOL=OFF .endif .if ${PORT_OPTIONS:MIMAGEVIEWER} @@ -76,8 +97,8 @@ post-patch: post-install: .if ${SLAVE_PORT} == no - ${LN} -sf libOpenImageIO.so.1.4 ${STAGEDIR}${PREFIX}/lib/libOpenImageIO.so.1 - ${LN} -sf libOpenImageIO_Util.so.1.4 ${STAGEDIR}${PREFIX}/lib/libOpenImageIO_Util.so.1 + ${LN} -sf libOpenImageIO.so.1.5 ${STAGEDIR}${PREFIX}/lib/libOpenImageIO.so.1 + ${LN} -sf libOpenImageIO_Util.so.1.5 ${STAGEDIR}${PREFIX}/lib/libOpenImageIO_Util.so.1 .endif .include <bsd.port.mk> |