diff --git a/graphics/py-glcontext/Makefile b/graphics/py-glcontext/Makefile index 7fc043f59474..f562332c332c 100644 --- a/graphics/py-glcontext/Makefile +++ b/graphics/py-glcontext/Makefile @@ -1,33 +1,32 @@ PORTNAME= glcontext -DISTVERSION= 2.3.7 -PORTREVISION= 1 +DISTVERSION= 2.4.0 CATEGORIES= graphics #MASTER_SITES= PYPI # no tests PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Portable OpenGL context for Python WWW= https://github.com/moderngl/glcontext LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} USES= localbase python xorg USE_PYTHON= pep517 autoplist pytest USE_XORG= x11 USE_GITHUB= yes GH_ACCOUNT= moderngl TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC}/tests post-install: @${STRIP_CMD} \ ${STAGEDIR}${PYTHON_SITELIBDIR}/glcontext/x11${PYTHON_EXT_SUFFIX}.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/glcontext/egl${PYTHON_EXT_SUFFIX}.so .include diff --git a/graphics/py-glcontext/distinfo b/graphics/py-glcontext/distinfo index 0f875aea5609..2beccd31b580 100644 --- a/graphics/py-glcontext/distinfo +++ b/graphics/py-glcontext/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1674242863 -SHA256 (moderngl-glcontext-2.3.7_GH0.tar.gz) = 91f649b1b7db6ebb66ca7c0ec5e032c9abd19975caeefb77c8fe063a401e7fe3 -SIZE (moderngl-glcontext-2.3.7_GH0.tar.gz) = 22254 +TIMESTAMP = 1689135407 +SHA256 (moderngl-glcontext-2.4.0_GH0.tar.gz) = 78e4e2df1c8ba18a28d5b449c42cfd0db16c894d2b8d7a73ade8cd013cb5b0fe +SIZE (moderngl-glcontext-2.4.0_GH0.tar.gz) = 23609 diff --git a/graphics/py-glcontext/files/patch-glcontext_egl.cpp b/graphics/py-glcontext/files/patch-glcontext_egl.cpp deleted file mode 100644 index 634ebae65fa7..000000000000 --- a/graphics/py-glcontext/files/patch-glcontext_egl.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- glcontext/egl.cpp.orig 2023-01-20 19:29:43 UTC -+++ glcontext/egl.cpp -@@ -216,7 +216,7 @@ GLContext * meth_create_context(PyObject * self, PyObj - return NULL; - } - -- EGLDeviceEXT* devices = malloc(sizeof(EGLDeviceEXT) * num_devices); -+ EGLDeviceEXT* devices = (EGLDeviceEXT*)malloc(sizeof(EGLDeviceEXT) * num_devices); - if (!res->m_eglQueryDevicesEXT(num_devices, devices, &num_devices)) { - PyErr_Format(PyExc_Exception, "eglQueryDevicesEXT failed (0x%x)", res->m_eglGetError()); - free(devices);