[Bug 285958] multimedia/libopenshot: fix of configure when combined with python 3.12

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 08 Apr 2025 08:33:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285958

            Bug ID: 285958
           Summary: multimedia/libopenshot: fix of configure when combined
                    with python 3.12
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: tatsuki_makino@hotmail.com

py312-libopenshot-0.4.0 fails to configure.
It is a distutils issue, but we cannot directly add it to USE_PYTHON because
the do-* target should not change.
Therefore, it will be fixed as follows.

--- a/multimedia/libopenshot/Makefile
+++ b/multimedia/libopenshot/Makefile
@@ -13,7 +13,8 @@ LICENSE_COMB= multi
 LICENSE_FILE_BSD3CLAUSE=       ${WRKSRC}/LICENSES/BSD-3-Clause.txt
 LICENSE_FILE_LGPL3+ =  ${WRKSRC}/COPYING

-BUILD_DEPENDS= swig:devel/swig \
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+               swig:devel/swig \
                ${LOCALBASE}/include/zmq.hpp:net/cppzmq
 LIB_DEPENDS=   libavformat.so:multimedia/ffmpeg \
                libbabl-0.1.so:x11/babl \

This fix does not affect other versions of python, such as py311.
It is also unverified whether this fix resolves the issue since setuptools is
not available for python 3.12.
This is just a memorandum :)

-- 
You are receiving this mail because:
You are the assignee for the bug.