git: 6ebb34ddcafe - main - graphics/py-PyOpenGL: Update to 3.1.10 and switch to NumPy 2

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Tue, 05 May 2026 19:33:11 UTC
The branch main has been updated by makc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6ebb34ddcafe283d8c5344146725ce9caf3e4a98

commit 6ebb34ddcafe283d8c5344146725ce9caf3e4a98
Author:     Alastair Hogge <agh@riseup.net>
AuthorDate: 2026-05-05 19:27:12 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2026-05-05 19:29:34 +0000

    graphics/py-PyOpenGL: Update to 3.1.10 and switch to NumPy 2
    
    PR:             286376
    PR:             294328
---
 graphics/py-PyOpenGL/Makefile | 26 +++++++++++++-------------
 graphics/py-PyOpenGL/distinfo |  6 +++---
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/graphics/py-PyOpenGL/Makefile b/graphics/py-PyOpenGL/Makefile
index 44661f33ebfb..30217361c45a 100644
--- a/graphics/py-PyOpenGL/Makefile
+++ b/graphics/py-PyOpenGL/Makefile
@@ -1,10 +1,9 @@
 PORTNAME=	PyOpenGL
-PORTVERSION=	3.1.7
-PORTREVISION=	3
+PORTVERSION=	3.1.10
 CATEGORIES=	graphics python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-#DISTNAME=	PyOpenGL-${PORTVERSION}
+DISTNAME=	pyopengl-${PORTVERSION}
 
 MAINTAINER=	python@FreeBSD.org
 COMMENT=	OpenGL (and related library) interface for Python
@@ -13,10 +12,15 @@ WWW=		https://pyopengl.sourceforge.net/
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/license.txt
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy1>=1.16:math/py-numpy1@${PY_FLAVOR} \
-		${PY_PILLOW}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy1>=1.16:math/py-numpy1@${PY_FLAVOR} \
-		${PY_PILLOW}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=2.3:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools>=42:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=2.3:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		dos2unix gl python
+USE_GL=		glut
+USE_PYTHON=	autoplist pep517
 
 NO_ARCH=	yes
 
@@ -24,17 +28,13 @@ OPTIONS_DEFINE=	TKINTER
 OPTIONS_DEFAULT=	TKINTER
 TKINTER_DESC=	Build with tkinter for X support
 
-USES=		dos2unix gl python
-USE_GL=		glut
-USE_PYTHON=	distutils autoplist
-
 TKINTER_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR}
-TKINTER_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR}
+TKINTER_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR} \
+			togl>0:graphics/togl
 
 post-patch:
 	@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
 		's|<malloc\.h>|<stdlib.h>|g'
 	@${FIND} ${WRKSRC} -name "*.bak" -delete
-	${REINPLACE_CMD} -e 's|posix |posix|g' ${WRKSRC}/OpenGL/__init__.py
 
 .include <bsd.port.mk>
diff --git a/graphics/py-PyOpenGL/distinfo b/graphics/py-PyOpenGL/distinfo
index 9c856b534923..4c0c5792220f 100644
--- a/graphics/py-PyOpenGL/distinfo
+++ b/graphics/py-PyOpenGL/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1700299151
-SHA256 (PyOpenGL-3.1.7.tar.gz) = eef31a3888e6984fd4d8e6c9961b184c9813ca82604d37fe3da80eb000a76c86
-SIZE (PyOpenGL-3.1.7.tar.gz) = 1896446
+TIMESTAMP = 1774060415
+SHA256 (pyopengl-3.1.10.tar.gz) = c4a02d6866b54eb119c8e9b3fb04fa835a95ab802dd96607ab4cdb0012df8335
+SIZE (pyopengl-3.1.10.tar.gz) = 1915580