Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jan 2023 08:20:48 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ef349ce5642c - main - graphics/py-moderngl-window: New port: Library for ModernGL making window creation & resource loading simple
Message-ID:  <202301210820.30L8KmEU025520@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit ef349ce5642c59fbc918bb12289e6005463a20ee
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-01-21 08:18:51 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-01-21 08:20:42 +0000

    graphics/py-moderngl-window: New port: Library for ModernGL making window creation & resource loading simple
---
 graphics/Makefile                     |  1 +
 graphics/py-moderngl-window/Makefile  | 34 ++++++++++++++++++++++++++++++++++
 graphics/py-moderngl-window/distinfo  |  3 +++
 graphics/py-moderngl-window/pkg-descr |  3 +++
 4 files changed, 41 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index d12b8c96d1ef..e4b7a547782e 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -888,6 +888,7 @@
     SUBDIR += py-mgwr
     SUBDIR += py-ming
     SUBDIR += py-moderngl
+    SUBDIR += py-moderngl-window
     SUBDIR += py-momepy
     SUBDIR += py-mpl-interactions
     SUBDIR += py-mpl-scatter-density
diff --git a/graphics/py-moderngl-window/Makefile b/graphics/py-moderngl-window/Makefile
new file mode 100644
index 000000000000..9fa380b079f8
--- /dev/null
+++ b/graphics/py-moderngl-window/Makefile
@@ -0,0 +1,34 @@
+PORTNAME=	moderngl-window
+DISTVERSION=	2.4.2
+CATEGORIES=	graphics
+#MASTER_SITES=	PYPI # no tests
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Library for ModernGL making window creation & resource loading simple
+WWW=		https://github.com/moderngl/moderngl-window
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pillow>=9:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}moderngl<6:graphics/py-moderngl@${PY_FLAVOR} \
+		${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}pyglet>0:graphics/py-pyglet@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyrr>=0.10.3,<1:math/py-pyrr@${PY_FLAVOR}
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}PyWavefront>0:misc/py-PyWavefront@${PY_FLAVOR} # optional
+#RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}trimesh>0:devel/py-trimesh@${PY_FLAVOR} # optional, causes conflicts due to pyglet1 vs. pyglet
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest # some tests fail due to missing trimesh
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	moderngl
+
+NO_ARCH=	yes
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_WRKSRC=	${WRKSRC}/tests
+
+.include <bsd.port.mk>
diff --git a/graphics/py-moderngl-window/distinfo b/graphics/py-moderngl-window/distinfo
new file mode 100644
index 000000000000..ca3b83f65db3
--- /dev/null
+++ b/graphics/py-moderngl-window/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1674245228
+SHA256 (moderngl-moderngl-window-2.4.2_GH0.tar.gz) = 10e51cb16c15b1b8a24d3d974132296a871ad84a2e3c6d408bd89dad8acf6667
+SIZE (moderngl-moderngl-window-2.4.2_GH0.tar.gz) = 30988391
diff --git a/graphics/py-moderngl-window/pkg-descr b/graphics/py-moderngl-window/pkg-descr
new file mode 100644
index 000000000000..6b3fb98d1494
--- /dev/null
+++ b/graphics/py-moderngl-window/pkg-descr
@@ -0,0 +1,3 @@
+moderngl-window is a cross platform utility library for ModernGL making window
+creation and resource loading simple. It can also be used with PyOpenGL for
+rendering with the programmable pipeline.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301210820.30L8KmEU025520>