summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2015-11-24 11:47:13 +0000
committerdanfe <danfe@FreeBSD.org>2015-11-24 11:47:13 +0000
commit8d337616c9fa0e6bea8fc85d939c117c297d8b11 (patch)
tree0675386fce50b24a61f4fa85561efcf98ac4c5dd
parentc860c15006bed0f7aab145f58fd2aff1149953bb (diff)
downloadFreeBSD-ports-8d337616c9fa0e6bea8fc85d939c117c297d8b11.zip
FreeBSD-ports-8d337616c9fa0e6bea8fc85d939c117c297d8b11.tar.gz
- Allow to build OpenImageIO without OpenCV, JPEG 2000, and TrueType support
- Turn off FFMPEG option by default; fix spelling of "FFmpeg" and "Color" - Make sure that `graphics/py-openimageio' slave port remains optionless - While here, wrap couple of long lines and beautify port description text OpenCV and FFMPEG are heavy dependencies, while these features might not even be used in consumer ports (e.g. blender, luxrender, and appleseed). More to it, OpenCV is broken on PowerPC, which prevents building any consumer ports. Approved by: maintainer
-rw-r--r--graphics/openimageio/Makefile31
-rw-r--r--graphics/openimageio/pkg-descr6
-rw-r--r--graphics/py-openimageio/Makefile2
3 files changed, 26 insertions, 13 deletions
diff --git a/graphics/openimageio/Makefile b/graphics/openimageio/Makefile
index 5b08f34..0b2b9cc 100644
--- a/graphics/openimageio/Makefile
+++ b/graphics/openimageio/Makefile
@@ -28,13 +28,14 @@ CMAKE_ARGS= -DBUILDSTATIC:BOOL=OFF \
-DUSE_OPENSSL:BOOL=OFF
CXXFLAGS+= -D__STDC_CONSTANT_MACROS
-OPTIONS_DEFINE= DOCS FFMPEG GIF IMAGEVIEWER OCIO RAW TEST
-OPTIONS_DEFAULT= OCIO FFMPEG GIF
+OPTIONS_DEFINE= DOCS FFMPEG FREETYPE GIF IMAGEVIEWER OCIO OPENCV \
+ OPENJPEG RAW TEST
+OPTIONS_DEFAULT= FREETYPE GIF OCIO OPENJPEG
OPTIONS_SUB= yes
-FFMPEG_DESC= Use ffmpeg to support extra file types
-IMAGEVIEWER_DESC= Build image viewer
-OCIO_DESC= Colour management support
+FFMPEG_DESC= Use FFmpeg to support extra file types
+IMAGEVIEWER_DESC= Build image viewer (requires Qt)
+OCIO_DESC= Color management support
DOCS_CMAKE_ON= -DINSTALL_DOCS:BOOL=ON
DOCS_CMAKE_OFF= -DINSTALL_DOCS:BOOL=OFF
@@ -43,6 +44,10 @@ FFMPEG_CMAKE_ON= -DUSE_FFMPEG:BOOL=ON
FFMPEG_CMAKE_OFF= -DUSE_FFMPEG:BOOL=OFF
FFMPEG_LIB_DEPENDS= libavutil.so:${PORTSDIR}/multimedia/ffmpeg
+FREETYPE_CMAKE_ON= -DUSE_FREETYPE:BOOL=ON
+FREETYPE_CMAKE_OFF= -DUSE_FREETYPE:BOOL=OFF
+FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
+
GIF_CMAKE_ON= -DUSE_GIF:BOOL=ON
GIF_CMAKE_OFF= -DUSE_GIF:BOOL=OFF
GIF_LIB_DEPENDS= libgif.so:${PORTSDIR}/graphics/giflib
@@ -51,6 +56,14 @@ OCIO_CMAKE_ON= -DUSE_OCIO:BOOL=ON
OCIO_CMAKE_OFF= -DUSE_OCIO:BOOL=OFF
OCIO_LIB_DEPENDS= libOpenColorIO.so:${PORTSDIR}/graphics/opencolorio
+OPENCV_CMAKE_ON= -DUSE_OPENCV:BOOL=ON
+OPENCV_CMAKE_OFF= -DUSE_OPENCV:BOOL=OFF
+OPENCV_LIB_DEPENDS= libopencv_highgui.so:${PORTSDIR}/graphics/opencv
+
+OPENJPEG_CMAKE_ON= -DUSE_OPENJPEG:BOOL=ON
+OPENJPEG_CMAKE_OFF= -DUSE_OPENJPEG:BOOL=OFF
+OPENJPEG_LIB_DEPENDS= libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15
+
RAW_CMAKE_ON= -DUSE_LIBRAW:BOOL=ON
RAW_CMAKE_OFF= -DUSE_LIBRAW:BOOL=OFF
RAW_LIB_DEPENDS= libraw_r.so:${PORTSDIR}/graphics/libraw
@@ -66,8 +79,6 @@ PLIST_SUB+= LIBVERS=${PORTVERSION}
LIB_DEPENDS+= libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
libboost_thread.so:${PORTSDIR}/devel/boost-libs \
libhdf5.so:${PORTSDIR}/science/hdf5 \
- libopencv_highgui.so:${PORTSDIR}/graphics/opencv \
- libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15 \
libwebp.so:${PORTSDIR}/graphics/webp
USE_LDCONFIG= yes
CMAKE_ARGS+= -DUSE_PYTHON:BOOL=OFF -DUSE_PYTHON3:BOOL=OFF \
@@ -96,8 +107,10 @@ post-patch:
post-install:
.if ${SLAVE_PORT} == no
- ${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
+ ${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>
diff --git a/graphics/openimageio/pkg-descr b/graphics/openimageio/pkg-descr
index 33f3f6e..4fc9bf3 100644
--- a/graphics/openimageio/pkg-descr
+++ b/graphics/openimageio/pkg-descr
@@ -4,7 +4,7 @@ related classes, utilities, and applications.
There is a particular emphasis on formats and functionality used
in professional, large-scale animation and visual effects work for film.
-OpenImageIO is used extensively in animation and VFX studios all over the world,
-and is also incorporated into several commercial products.
+OpenImageIO is used extensively in animation and VFX studios all over the
+world, and is also incorporated into several commercial products.
-WWW: http://www.openimageio.org
+WWW: http://www.openimageio.org/
diff --git a/graphics/py-openimageio/Makefile b/graphics/py-openimageio/Makefile
index 3787278..5a5b77a 100644
--- a/graphics/py-openimageio/Makefile
+++ b/graphics/py-openimageio/Makefile
@@ -7,7 +7,7 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
COMMENT= OpenImageIO python bindings
MASTERDIR= ${.CURDIR}/../openimageio
-OPTIONS_EXCLUDE=DOCS FFMPEG GIF IMAGEVIEWER OCIO RAW TEST
+OPTIONS_EXCLUDE=${OPTIONS_DEFINE}
do-install:
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
OpenPOWER on IntegriCloud