aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Druzenko <vvd@FreeBSD.org>2024-06-01 00:46:20 +0000
committerVladimir Druzenko <vvd@FreeBSD.org>2024-06-01 00:46:20 +0000
commit98ebc5d3c875e9bfb8e17d2e170f5bc6b7722cf8 (patch)
tree3c50799930fda97156f941c3abc224f60a78462e
parent2a54b2f1ce131d7003c4bc883742ecdf99b1462b (diff)
graphics/{,py-}opencolorio{,-tools}: fix plist in py- port after update to 2.3.2
While here pet portclippy and remove unnecessary dependencies. PR: 275402 275494 Reported by: antoine Approved by: portmgr (blanket, fix build) Fixes: 3e51c20bc069 (graphics/{,py-}opencolorio{,-tools}: Udpate to 2.3.2)
-rw-r--r--graphics/opencolorio-tools/Makefile4
-rw-r--r--graphics/opencolorio/Makefile48
-rw-r--r--graphics/opencolorio/pkg-plist-pyglue3
-rw-r--r--graphics/py-opencolorio/Makefile4
4 files changed, 26 insertions, 33 deletions
diff --git a/graphics/opencolorio-tools/Makefile b/graphics/opencolorio-tools/Makefile
index 7da3bd09b21a..2bfd9bee31bf 100644
--- a/graphics/opencolorio-tools/Makefile
+++ b/graphics/opencolorio-tools/Makefile
@@ -1,10 +1,10 @@
-PORTREVISION= 0
+PORTREVISION= 1
PKGNAMESUFFIX= -tools
COMMENT= Tools to work with OpenColorIO profiles
MASTERDIR= ${.CURDIR}/../opencolorio
-OCIO_SLAVE= tools
OPTIONS_EXCLUDE= DOCS
+OCIO_SLAVE= tools
.include "${MASTERDIR}/Makefile"
diff --git a/graphics/opencolorio/Makefile b/graphics/opencolorio/Makefile
index 0ea8845f343d..a26bf39d5f4b 100644
--- a/graphics/opencolorio/Makefile
+++ b/graphics/opencolorio/Makefile
@@ -5,7 +5,7 @@ DISTVERSION= 2.3.2
# py-opencolorio's PORTREVISION.
# Also, just to be on the safe side, when resetting,
# best keep PORTREVISION?= 0.
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= graphics multimedia
MAINTAINER?= FreeBSD@Shaneware.biz
@@ -18,8 +18,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libexpat.so:textproc/expat2 \
libImath.so:math/Imath \
libpystring.so:devel/pystring \
- libyaml-cpp.so:devel/yaml-cpp \
- libzstd.so:archivers/zstd
+ libyaml-cpp.so:devel/yaml-cpp
+
USES= alias cmake compiler:c++14-lang localbase:ldflags \
pkgconfig minizip:ng
@@ -32,14 +32,14 @@ GH_PROJECT= OpenColorIO
CMAKE_OFF= OCIO_BUILD_JAVA OCIO_BUILD_JNIGLUE OCIO_BUILD_NUKE \
OCIO_BUILD_TESTS OCIO_BUILD_GPU_TESTS
+PLIST_SUB= SHL3=${PORTVERSION} SHL2=${PORTVERSION:R}
+
OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT= DOCS
OPTIONS_SUB= yes
-DOCS_CMAKE_BOOL= OCIO_BUILD_DOCS
DOCS_BUILD_DEPENDS= doxygen>0:devel/doxygen
-
-PLIST_SUB= SHL3=${PORTVERSION} SHL2=${PORTVERSION:R}
+DOCS_CMAKE_BOOL= OCIO_BUILD_DOCS
.include <bsd.port.options.mk>
@@ -64,33 +64,30 @@ BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}breathe>=0:devel/py-breathe@${PY_FLAVOR}
.if defined(OCIO_SLAVE) && ${OCIO_SLAVE} == tools
LIB_DEPENDS+= liblcms2.so:graphics/lcms2 \
- libOpenColorIO.so:graphics/opencolorio \
libOpenImageIO.so:graphics/openimageio \
- libopencv_core.so:graphics/opencv \
libOpenEXR.so:graphics/openexr
+USES+= gl xorg
+USE_GL= gl glu glut glew opengl
+USE_XORG= xi xmu
+CMAKE_ARGS+= -DCMAKE_CXX_STANDARD=14
CMAKE_ON+= OCIO_BUILD_APPS USE_EXTERNAL_LCMS
CMAKE_OFF+= BUILD_SHARED_LIBS OCIO_BUILD_DOCS \
OCIO_BUILD_PYGLUE OCIO_BUILD_PYTHON
-CMAKE_ARGS+= -DCMAKE_CXX_STANDARD=14
LDFLAGS+= -lOpenImageIO_Util
-USES+= gl xorg
-USE_GL= egl gl glu glut glew
-USE_XORG= xi xmu
PLIST= ${PKGDIR}/pkg-plist-tools
.elif defined(OCIO_SLAVE) && ${OCIO_SLAVE} == pymodule
BUILD_DEPENDS+= pybind11>0:devel/pybind11
LIB_DEPENDS+= libOpenColorIO.so:graphics/opencolorio
-# textproc/py-sphinx_press_theme doesn't support py3.6
USES+= python
-LDFLAGS+= -lOpenColorIO
+USE_PYTHON= concurrent flavors
+CMAKE_ARGS+= -DOCIO_PYTHON_VERSION=${PYTHON_VER}
CMAKE_ON+= OCIO_BUILD_PYTHON
CMAKE_OFF+= OCIO_BUILD_APPS BUILD_SHARED_LIBS OCIO_BUILD_DOCS \
OCIO_BUILD_TESTS OCIO_BUILD_GPU_TESTS
-CMAKE_ARGS+= -DOCIO_PYTHON_VERSION=${PYTHON_VER}
+LDFLAGS+= -lOpenColorIO
PLIST= ${PKGDIR}/pkg-plist-pyglue
# concurrent allows docs to not collide with master port
-USE_PYTHON= concurrent flavors
.else # master port
# we enable pyglue in master port. This makes the python module
@@ -98,26 +95,21 @@ USE_PYTHON= concurrent flavors
# but only install the python module with the py-opencolorio port
# this makes it easier to allow multiple python versions installed
BUILD_DEPENDS+= pybind11>0:devel/pybind11
+USES+= python:build xorg
+USE_LDCONFIG= yes
+USE_XORG= xi xmu
+CMAKE_ARGS+= -DOCIO_PYTHON_VERSION=${PYTHON_VER}
CMAKE_ON+= BUILD_SHARED_LIBS OCIO_BUILD_PYGLUE OCIO_BUILD_PYTHON
CMAKE_OFF+= OCIO_BUILD_APPS
-CMAKE_ARGS+= -DOCIO_PYTHON_VERSION=${PYTHON_VER}
-USES+= gl python:build xorg
-USE_GL= gl glu glut glew
-USE_XORG= xi xmu
-USE_LDCONFIG= yes
PLIST= ${PKGDIR}/pkg-plist ${PKGDIR}/pkg-plist-docs
.endif
post-install:
@cd ${STAGEDIR}${PREFIX} && ${RM} -r share/ocio
.if defined(OCIO_SLAVE)
- @cd ${STAGEDIR}${PREFIX} && ${RM} -r include libdata lib/cmake lib/libOpenColorIO.a
-.endif
-.if !defined(OCIO_SLAVE) || (defined(OCIO_SLAVE) && ${OCIO_SLAVE} != pymodule)
- @cd ${STAGEDIR}${PREFIX} && ${RM} -r lib/libOpenColorIO*.a lib/python*
-.endif
-.if defined(OCIO_SLAVE) && ${OCIO_SLAVE} == tools
- ${RM} -r ${STAGEDIR}${PREFIX}/share/OpenColorIO
+ @cd ${STAGEDIR}${PREFIX} && ${RM} -r include lib/cmake lib/libOpenColorIO*.a libdata share/OpenColorIO
+.else
+ @cd ${STAGEDIR}${PREFIX} && ${RM} -r lib/python*
.endif
post-install-DOCS-on:
diff --git a/graphics/opencolorio/pkg-plist-pyglue b/graphics/opencolorio/pkg-plist-pyglue
index 013c9554cd7a..456b673d3f60 100644
--- a/graphics/opencolorio/pkg-plist-pyglue
+++ b/graphics/opencolorio/pkg-plist-pyglue
@@ -1 +1,2 @@
-%%PYTHON_SITELIBDIR%%/PyOpenColorIO.so
+%%PYTHON_SITELIBDIR%%/PyOpenColorIO/PyOpenColorIO.so
+%%PYTHON_SITELIBDIR%%/PyOpenColorIO/__init__.py
diff --git a/graphics/py-opencolorio/Makefile b/graphics/py-opencolorio/Makefile
index 255684dfd78d..6ca6e604f265 100644
--- a/graphics/py-opencolorio/Makefile
+++ b/graphics/py-opencolorio/Makefile
@@ -1,11 +1,11 @@
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= graphics multimedia python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
COMMENT= OpenColorIO python bindings
MASTERDIR= ${.CURDIR}/../opencolorio
+OPTIONS_EXCLUDE= ${OPTIONS_DEFINE}
OCIO_SLAVE= pymodule
-OPTIONS_EXCLUDE=${OPTIONS_DEFINE}
.include "${MASTERDIR}/Makefile"