From nobody Sun Jun 02 11:16:08 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VsZ6d1pxtz5Mbbk; Sun, 02 Jun 2024 11:16:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VsZ6d0k7bz51WT; Sun, 2 Jun 2024 11:16:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717326969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Mjc1Vvz9cOfF47csgVb3ssQ4tuoEXPX4A5HsrEB9rIc=; b=NBSdlNal5ESkaMYonoB9Gur0YED69HyMod0wPJiY/cJGtdziGOR5AN5TuSHzK57hHTR6oJ hz+zMPEdo34VqCKiTAiWgvP5A4UYI0RBPg16M2nsiVt0fhfZo0ByFgV5MscBTOgxly8Y0e GSn54tdgjhK0JXJSvLbQmhHByhvSihqkr13fJTnQXCHr4N59uMOwn0+5nEvTKADCZrhbeE qlzcyY3pTwQxsBg4CeaWY87KIwCoVb53yZZqPr8HAX52XOYiGtNsJ5tKyU+2/keuNrZa49 w0+b5W0yj48TgbVPgHItRtBnMeJpCiCGYeX80mlItFN85lE5LNhRWH9xmFIk6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717326969; a=rsa-sha256; cv=none; b=UY4YrqKeZrvg54jmQniKipifpLXkIphdIAhmyzYT1n2gsVP3l4kcqVC9BKgReaHOFypPOu JIQq7LOLYNwndl6tha0N4du1Vtmb3h88d/bjBRafkfWC2K0x3Th46u2dV8abn6lx8y7Hca aivpid78Cal+zKwvOg/YBfXbsJFQWgEjOvJDeFrPaKcC2z8V2REEnnq+nUNLJ9iemLZpXt //zS6Kl3bcit3XO12PSiI6BA+dBAg2Mf12f25nAoXmPuRx31neePlLYjh4/N+VM/KlB5IJ V3WzXjhCD0THsgK7XT/buq0csR30J62I5eZDOxS4lwEl4QJdbE+0M8ggxlA4FA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717326969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Mjc1Vvz9cOfF47csgVb3ssQ4tuoEXPX4A5HsrEB9rIc=; b=p3owLdWefKwPsqGdYtCpjypAlxmqIQn3lEJd0JPPbPjZfV+BJ1YSxG8XwqhbLUZvChIPJx rIHITKAlQZX0rHR/N6PnFaiQ3XToBRDO0Q7u2w+L0QPdkwgGdmdqt0lunid6L1Se8ZGoH5 yhYW+Ps5yEDILgNmyBg+pMOL3mYGgyvU7EGIdV6PXEuA1Y4GUteNZVDugHqrailDRl64qh BDKScXkYxGKE9EmSTDfbqDHkTahdKsjf7Y0HEyuvD1vesAACfohOsYutCDQJEviV7tMWgW h8vpzCpG+OeXKDgdSSNidVGcEZBgLXsfmyX67GX1BvSX2tnxEiHQHPo6D+lR3g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VsZ6d0CqtzpWp; Sun, 2 Jun 2024 11:16:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 452BG8O2088491; Sun, 2 Jun 2024 11:16:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 452BG80Y088488; Sun, 2 Jun 2024 11:16:08 GMT (envelope-from git) Date: Sun, 2 Jun 2024 11:16:08 GMT Message-Id: <202406021116.452BG80Y088488@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: d6b1bdaf042e - main - graphics/{,py-}openimageio: sort out Makefile, remove unnecessary dependencies and pet portclippy List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d6b1bdaf042ee04786083b137b9c441888eb1d0f Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=d6b1bdaf042ee04786083b137b9c441888eb1d0f commit d6b1bdaf042ee04786083b137b9c441888eb1d0f Author: Vladimir Druzenko AuthorDate: 2024-06-02 10:52:40 +0000 Commit: Vladimir Druzenko CommitDate: 2024-06-02 11:09:31 +0000 graphics/{,py-}openimageio: sort out Makefile, remove unnecessary dependencies and pet portclippy - Add VDB_IMPLIES=TBB: OpenVDB require TBB - build warning: "Not using OpenVDB -- disabled (because TBB was not found)" - Remove unused dependencies science/hdf5 and graphics/squish. - Move devel/libfmt and graphics/libjpeg-turbo to BUILD_DEPENDS and RUN_DEPENDS: check during configure stage and doesn't link this both. - Force use devel/libfmt and textproc/pugixml from ports and prevent use embedded copies. - Remove GL=glew from IMAGEVIEWER - it doesn't link with libGLEW. - Remove old and removed by upstream CMAKE options NOTHREADS, USE_OPENSSL, USE_OPENGL. - Sort options. PR: 279454 Approved by: Shane (maintainer) --- graphics/openimageio/Makefile | 86 ++++++++++++++++++++-------------------- graphics/openimageio/pkg-plist | 6 --- graphics/py-openimageio/Makefile | 4 +- 3 files changed, 46 insertions(+), 50 deletions(-) diff --git a/graphics/openimageio/Makefile b/graphics/openimageio/Makefile index f262d2b29ef5..2ad927eeff66 100644 --- a/graphics/openimageio/Makefile +++ b/graphics/openimageio/Makefile @@ -5,7 +5,7 @@ DISTVERSION= 2.5.8.0 # py-openimageio'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 @@ -14,19 +14,20 @@ WWW= https://www.openimageio.org/ LICENSE= BSD3CLAUSE -BUILD_DEPENDS= ${LOCALBASE}/include/tsl/robin_map.h:devel/robin-map +BUILD_DEPENDS= ${LOCALBASE}/include/tsl/robin_map.h:devel/robin-map \ + libfmt>10.0.0:devel/libfmt \ + libjpeg-turbo>3.0.0:graphics/libjpeg-turbo LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ - libfmt.so:devel/libfmt \ - libhdf5.so:science/hdf5 \ libImath.so:math/Imath \ libOpenColorIO.so:graphics/opencolorio \ libOpenEXR.so:graphics/openexr \ libheif.so:graphics/libheif \ - libturbojpeg.so:graphics/libjpeg-turbo \ libpng.so:graphics/png \ - libsquish.so:graphics/squish \ + libpugixml.so:textproc/pugixml \ libtiff.so:graphics/tiff \ libwebp.so:graphics/webp +RUN_DEPENDS= libfmt>10.0.0:devel/libfmt \ + libjpeg-turbo>3.0.0:graphics/libjpeg-turbo USES= cmake jpeg compiler:c++17-lang iconv:wchar_t @@ -37,70 +38,72 @@ GH_PROJECT= OpenImageIO CMAKE_ARGS= -DCMAKE_CXX_STANDARD:INTEGER=17 # OpenVDB uses the C++17 STL # feature std::tuple_size_v; since the slave port py-openimageio excludes # options - this is a global line here -CMAKE_OFF= BUILDSTATIC INSTALL_FONTS LINKSTATIC NOTHREADS \ - STOP_ON_WARNING USE_OPENSSL OIIO_DOWNLOAD_MISSING_TESTDATA \ - USE_Package +CMAKE_ON= BUILD_SHARED_LIBS USE_EXTERNAL_PUGIXML +CMAKE_OFF= BUILD_FMT_FORCE BUILD_MISSING_FMT INSTALL_FONTS INTERNALIZE_FMT \ + LINKSTATIC OIIO_DOWNLOAD_MISSING_TESTDATA OIIO_USING_FMT_LOCAL \ + STOP_ON_WARNING + +SHL1= ${PORTVERSION:R:R:R} +SHL2= ${PORTVERSION:R:R} +SHL3= ${PORTVERSION:R} +PLIST_SUB= SHL1=${SHL1} SHL2=${SHL2} SHL3=${SHL3} OPTIONS_DEFINE= DICOM DOCS FFMPEG FREETYPE GIF IMAGEVIEWER \ OPENCV OPENJPEG PTEX RAW TBB TEST TOOLS VDB -OPTIONS_DEFAULT= DICOM FREETYPE GIF OPENJPEG PTEX TOOLS VDB +OPTIONS_DEFAULT= DICOM FREETYPE GIF OPENJPEG PTEX TBB TOOLS VDB OPTIONS_SUB= yes -DOCS_CMAKE_BOOL= INSTALL_DOCS -DOCS_CMAKE_ON= -DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} - DICOM_DESC= DICOM/MEDICOM support -DICOM_CMAKE_BOOL= USE_DICOM +FFMPEG_DESC= Use FFmpeg to support extra file types +IMAGEVIEWER_DESC= Build image viewer (requires Qt) +PTEX_DESC= ptex support +TBB_DESC= Intel tbb support +TOOLS_DESC= Build CLI tools +VDB_DESC= OpenVDB support + DICOM_LIB_DEPENDS= libdcmimage.so:graphics/dcmtk +DICOM_CMAKE_BOOL= USE_DICOM + +DOCS_CMAKE_BOOL= INSTALL_DOCS +DOCS_CMAKE_ON= -DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} -FFMPEG_DESC= Use FFmpeg to support extra file types -FFMPEG_CMAKE_BOOL= USE_FFMPEG FFMPEG_LIB_DEPENDS= libavutil.so:multimedia/ffmpeg +FFMPEG_CMAKE_BOOL= USE_FFMPEG -FREETYPE_CMAKE_BOOL= USE_FREETYPE FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 FREETYPE_RUN_DEPENDS= ${LOCALBASE}/share/fonts/Droid/DroidSans.ttf:x11-fonts/droid-fonts-ttf +FREETYPE_CMAKE_BOOL= USE_FREETYPE -GIF_CMAKE_BOOL= USE_GIF GIF_LIB_DEPENDS= libgif.so:graphics/giflib +GIF_CMAKE_BOOL= USE_GIF -IMAGEVIEWER_DESC= Build image viewer (requires Qt) -IMAGEVIEWER_USES= gl qt:6 IMAGEVIEWER_IMPLIES= TOOLS -IMAGEVIEWER_CMAKE_BOOL= USE_OPENGL USE_QT -IMAGEVIEWER_USE= GL=gl,glu,glew QT=base +IMAGEVIEWER_USES= gl qt:6 +IMAGEVIEWER_USE= GL=gl,glu QT=base +IMAGEVIEWER_CMAKE_BOOL= USE_QT -OPENCV_CMAKE_BOOL= USE_OPENCV OPENCV_IMPLIES= OPENJPEG -OPENCV_LIB_DEPENDS= libopencv_highgui.so:graphics/opencv \ - libopencv_core.so:graphics/opencv +OPENCV_LIB_DEPENDS= libopencv_core.so:graphics/opencv +OPENCV_CMAKE_BOOL= USE_OPENCV -OPENJPEG_CMAKE_BOOL= USE_OPENJPEG OPENJPEG_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg +OPENJPEG_CMAKE_BOOL= USE_OPENJPEG -PTEX_DESC= ptex support PTEX_LIB_DEPENDS= libPtex.so:graphics/ptex -RAW_CMAKE_BOOL= USE_LIBRAW RAW_LIB_DEPENDS= libraw_r.so:graphics/libraw +RAW_CMAKE_BOOL= USE_LIBRAW -TBB_DESC= Intel tbb support -TBB_CMAKE_BOOL= USE_TBB TBB_LIB_DEPENDS= libtbb.so:devel/onetbb +TBB_CMAKE_BOOL= USE_TBB TEST_CMAKE_BOOL= OIIO_BUILD_TESTS -TOOLS_DESC= Build CLI tools TOOLS_CMAKE_BOOL= OIIO_BUILD_TOOLS -VDB_DESC= OpenVDB support -VDB_CMAKE_BOOL= USE_OPENVDB +VDB_IMPLIES= TBB VDB_LIB_DEPENDS= libopenvdb.so:misc/openvdb - -PLIST_SUB= SHL3=${PORTVERSION:R} SHL2=${PORTVERSION:R:R} SHL1=${PORTVERSION:R:R:R} -SHL3= ${PORTVERSION:R} -SHL2= ${PORTVERSION:R:R} -SHL1= ${PORTVERSION:R:R:R} +VDB_CMAKE_BOOL= USE_OPENVDB post-patch: @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," \ @@ -111,14 +114,13 @@ post-patch: .if ${SLAVE_PORT} == yes BUILD_DEPENDS+= ${PREFIX}/share/cmake/pybind11/pybind11Config.cmake:devel/pybind11 LIB_DEPENDS+= libOpenImageIO.so:graphics/openimageio -PLIST= ${PKGDIR}/pkg-plist-pybind USES+= python USE_PYTHON= flavors +CMAKE_ARGS+= -DPYTHON_VERSION:STRING=${PYTHON_VER} CMAKE_ON+= USE_PYTHON # we don't need the apps built - only libs. -CMAKE_OFF+= USE_QT USE_OPENGL OIIO_BUILD_TOOLS OIIO_BUILD_TESTS \ - EMBED_PLUGINS -CMAKE_ARGS+= -DPYTHON_VERSION:STRING=${PYTHON_VER} +CMAKE_OFF+= EMBED_PLUGINS OIIO_BUILD_TESTS OIIO_BUILD_TOOLS USE_DICOM USE_FFMPEG USE_FREETYPE USE_GIF USE_LIBRAW USE_OPENCV USE_OPENJPEG USE_OPENVDB USE_QT USE_TBB +PLIST= ${PKGDIR}/pkg-plist-pybind do-install: ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} diff --git a/graphics/openimageio/pkg-plist b/graphics/openimageio/pkg-plist index 1b159cfef4e7..485484f2231f 100644 --- a/graphics/openimageio/pkg-plist +++ b/graphics/openimageio/pkg-plist @@ -15,17 +15,11 @@ include/OpenImageIO/color.h include/OpenImageIO/dassert.h include/OpenImageIO/deepdata.h include/OpenImageIO/detail/farmhash.h -include/OpenImageIO/detail/fmt/chrono.h -include/OpenImageIO/detail/fmt/core.h -include/OpenImageIO/detail/fmt/format-inl.h include/OpenImageIO/detail/fmt/format.h include/OpenImageIO/detail/fmt/ostream.h include/OpenImageIO/detail/fmt/printf.h include/OpenImageIO/detail/fmt/std.h include/OpenImageIO/detail/fmt.h -include/OpenImageIO/detail/pugixml/pugiconfig.hpp -include/OpenImageIO/detail/pugixml/pugixml.cpp -include/OpenImageIO/detail/pugixml/pugixml.hpp include/OpenImageIO/errorhandler.h include/OpenImageIO/export.h include/OpenImageIO/filesystem.h diff --git a/graphics/py-openimageio/Makefile b/graphics/py-openimageio/Makefile index 1e173e9fc75f..5327113c05b0 100644 --- a/graphics/py-openimageio/Makefile +++ b/graphics/py-openimageio/Makefile @@ -1,10 +1,10 @@ -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= graphics multimedia python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} COMMENT= OpenImageIO python bindings MASTERDIR= ${.CURDIR}/../openimageio -OPTIONS_EXCLUDE=${OPTIONS_DEFINE} +OPTIONS_EXCLUDE= ${OPTIONS_DEFINE} .include "${MASTERDIR}/Makefile"