graphics/openimageio cleanup cmake vars and enable TOOLS as default

PR:		244516
Submitted by:	Shane <FreeBSD@ShaneWare.Biz> (maintainer)
This commit is contained in:
Tobias C. Berner 2020-03-08 15:15:04 +00:00
parent 9b3502b0b7
commit f72ddf2d98
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=528041

View file

@ -4,6 +4,7 @@
PORTNAME= openimageio
DISTVERSIONPREFIX= Release-
DISTVERSION= 2.1.11.2
PORTREVISION= 1
CATEGORIES?= graphics multimedia
MAINTAINER?= FreeBSD@Shaneware.biz
@ -35,7 +36,7 @@ CMAKE_OFF= BUILDSTATIC INSTALL_FONTS LINKSTATIC NOTHREADS \
OPTIONS_DEFINE= DICOM DOCS FFMPEG FREETYPE GIF IMAGEVIEWER OCIO \
OPENCV OPENJPEG RAW TBB TEST TOOLS VDB
OPTIONS_DEFAULT= DICOM FREETYPE GIF OCIO OPENJPEG
OPTIONS_DEFAULT= DICOM FREETYPE GIF OCIO OPENJPEG TOOLS
OPTIONS_SUB= yes
DOCS_CMAKE_BOOL= INSTALL_DOCS
@ -104,7 +105,6 @@ PLIST= ${PKGDIR}/pkg-plist-pybind
USES+= python
USE_PYTHON= flavors
CMAKE_ON+= USE_PYTHON
CMAKE_OFF+= OIIO_BUILD_TOOLS USE_FFMPEG
CMAKE_ARGS+= -DPYTHON_VERSION:STRING=${PYTHON_VER} \
-DPYBIND11_INCLUDE_DIR:STRING="${PYTHONPREFIX_INCLUDEDIR}"
@ -113,7 +113,6 @@ do-install:
${INSTALL_LIB} ${BUILD_WRKSRC}/lib/python/site-packages/OpenImageIO.so ${STAGEDIR}${PYTHON_SITELIBDIR}
.else # SLAVE_PORT == no
USE_LDCONFIG= yes
CMAKE_ON+= DOIIO_BUILD_TOOLS
CMAKE_OFF+= USE_PYTHON
post-install: