pkgsrc/graphics/py-OpenGL/Makefile

42 lines
1.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.26 2019/08/30 18:26:32 nia Exp $
Upgrade from PyOpenGL-3.0.1 to PyOpenGL-3.1.1a1 (alpha version of 3.1.1) Package changes: - drop unneeded patch - set MASTER_SITES to MASTER_SITE_PYPI - set LICENSE - add preliminary notes about running tests (at the moment not functional) Upstream changes: Mike C. Fletcher has released PyOpenGL 3.1.1a1. Change log: Python 3.4 compatibility fixes new data-type declarations to match current Khronos ability to use opaque pointers as keys in dictionaries (osmesa fix) removing a few now-redundant hand-written wrappers fix for a missing import on gles2 wrapper tweaked error-message for debugging clarity allow for the shader convenience function to skip validate-on-compile PyOpenGL 3.1.0 (final) is now available. Headline changes: * Generation of wrappers substantially more automatic and based on Khronos source-files with annotations from the Chromium/regal project * Common code-base for Python 2.6, 2.7, 3.3 and 3.4, Python 2.5 is no longer supported * Better isolation and pervasive lazy-loading behaviour to prevent loading unused libraries (e.g. GLUT in non-GLUT contexts or GLES in OpenGL contexts) * Automated wrappers now (generally) allow passing in output arrays rather than having them generated * Experimental support for GLES and EGL * Many bug-fixes and minor improvements Installation can be done from PyPI: pip install PyOpenGL PyOpenGL_accelerate Source code is available on Launchpad: bzr branch lp:pyopengl The homepage, including documentation, remains: http://pyopengl.sourceforge.net/ PyOpenGL 3.0.2 (final, finally) has been released. The major changes since 3.0.1 (released in 2010!) are: * OpenGL core support up to 4.3 level [1] * OpenGL extension support from the current registry [1] * Some missing FreeGLUT extensions added * OpenGL.GL.framebufferobjects providing ARB/EXT alternates for framebuffer operations * Experimental OSMesa (Offscreen Mesa) context (use the environment variable PYOPENGL_PLATFORM=osmesa) Codebase changes: * Experimental Python 3.2 and PyPy support * Win64 Support (including OpenGL_accelerate) * Numarray (the ancient transitional module between Numeric and numpy) is no longer supported as an array type * More compact auto-generated wrappers * Large numbers of bug fixes Downloads are at: http://pypi.python.org/pypi/PyOpenGL/3.0.2 http://pypi.python.org/pypi/PyOpenGL-accelerate/3.0.2 Future Compatibility Notes: * This will be the last release of PyOpenGL to support Python 2.5 (and it supports Python 2.5 in source-release only mode). o PyOpenGL will be moving to a "shared code" approach for Python 2/3 support, which makes supporting the older Python releases problematic * This will be the last release to support the use of bare numbers as number-array data-types o i.e. passing 1.00 to a function expecting an array/address of an float o Use Glfloat( 1.00 ) to pass in an array-compatible value o Passing in an int/long will generate a GLvoidp( I ) to allow for easy offset-address-style API usage * The ancient Numeric package (as distinct from Numpy) will be dropped as a supported array format o Numeric itself has long since been deprecated, use Numpy
2016-07-24 02:48:16 +02:00
DISTNAME= PyOpenGL-3.1.1a1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^Py//}
PKGREVISION= 1
CATEGORIES= graphics
Upgrade from PyOpenGL-3.0.1 to PyOpenGL-3.1.1a1 (alpha version of 3.1.1) Package changes: - drop unneeded patch - set MASTER_SITES to MASTER_SITE_PYPI - set LICENSE - add preliminary notes about running tests (at the moment not functional) Upstream changes: Mike C. Fletcher has released PyOpenGL 3.1.1a1. Change log: Python 3.4 compatibility fixes new data-type declarations to match current Khronos ability to use opaque pointers as keys in dictionaries (osmesa fix) removing a few now-redundant hand-written wrappers fix for a missing import on gles2 wrapper tweaked error-message for debugging clarity allow for the shader convenience function to skip validate-on-compile PyOpenGL 3.1.0 (final) is now available. Headline changes: * Generation of wrappers substantially more automatic and based on Khronos source-files with annotations from the Chromium/regal project * Common code-base for Python 2.6, 2.7, 3.3 and 3.4, Python 2.5 is no longer supported * Better isolation and pervasive lazy-loading behaviour to prevent loading unused libraries (e.g. GLUT in non-GLUT contexts or GLES in OpenGL contexts) * Automated wrappers now (generally) allow passing in output arrays rather than having them generated * Experimental support for GLES and EGL * Many bug-fixes and minor improvements Installation can be done from PyPI: pip install PyOpenGL PyOpenGL_accelerate Source code is available on Launchpad: bzr branch lp:pyopengl The homepage, including documentation, remains: http://pyopengl.sourceforge.net/ PyOpenGL 3.0.2 (final, finally) has been released. The major changes since 3.0.1 (released in 2010!) are: * OpenGL core support up to 4.3 level [1] * OpenGL extension support from the current registry [1] * Some missing FreeGLUT extensions added * OpenGL.GL.framebufferobjects providing ARB/EXT alternates for framebuffer operations * Experimental OSMesa (Offscreen Mesa) context (use the environment variable PYOPENGL_PLATFORM=osmesa) Codebase changes: * Experimental Python 3.2 and PyPy support * Win64 Support (including OpenGL_accelerate) * Numarray (the ancient transitional module between Numeric and numpy) is no longer supported as an array type * More compact auto-generated wrappers * Large numbers of bug fixes Downloads are at: http://pypi.python.org/pypi/PyOpenGL/3.0.2 http://pypi.python.org/pypi/PyOpenGL-accelerate/3.0.2 Future Compatibility Notes: * This will be the last release of PyOpenGL to support Python 2.5 (and it supports Python 2.5 in source-release only mode). o PyOpenGL will be moving to a "shared code" approach for Python 2/3 support, which makes supporting the older Python releases problematic * This will be the last release to support the use of bare numbers as number-array data-types o i.e. passing 1.00 to a function expecting an array/address of an float o Use Glfloat( 1.00 ) to pass in an array-compatible value o Passing in an int/long will generate a GLvoidp( I ) to allow for easy offset-address-style API usage * The ancient Numeric package (as distinct from Numpy) will be dropped as a supported array format o Numeric itself has long since been deprecated, use Numpy
2016-07-24 02:48:16 +02:00
MASTER_SITES= ${MASTER_SITE_PYPI:=P/PyOpenGL/}
2010-11-01 01:08:09 +01:00
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pyopengl.sourceforge.net/
2013-12-25 02:29:06 +01:00
COMMENT= Python bindings for OpenGL
Upgrade from PyOpenGL-3.0.1 to PyOpenGL-3.1.1a1 (alpha version of 3.1.1) Package changes: - drop unneeded patch - set MASTER_SITES to MASTER_SITE_PYPI - set LICENSE - add preliminary notes about running tests (at the moment not functional) Upstream changes: Mike C. Fletcher has released PyOpenGL 3.1.1a1. Change log: Python 3.4 compatibility fixes new data-type declarations to match current Khronos ability to use opaque pointers as keys in dictionaries (osmesa fix) removing a few now-redundant hand-written wrappers fix for a missing import on gles2 wrapper tweaked error-message for debugging clarity allow for the shader convenience function to skip validate-on-compile PyOpenGL 3.1.0 (final) is now available. Headline changes: * Generation of wrappers substantially more automatic and based on Khronos source-files with annotations from the Chromium/regal project * Common code-base for Python 2.6, 2.7, 3.3 and 3.4, Python 2.5 is no longer supported * Better isolation and pervasive lazy-loading behaviour to prevent loading unused libraries (e.g. GLUT in non-GLUT contexts or GLES in OpenGL contexts) * Automated wrappers now (generally) allow passing in output arrays rather than having them generated * Experimental support for GLES and EGL * Many bug-fixes and minor improvements Installation can be done from PyPI: pip install PyOpenGL PyOpenGL_accelerate Source code is available on Launchpad: bzr branch lp:pyopengl The homepage, including documentation, remains: http://pyopengl.sourceforge.net/ PyOpenGL 3.0.2 (final, finally) has been released. The major changes since 3.0.1 (released in 2010!) are: * OpenGL core support up to 4.3 level [1] * OpenGL extension support from the current registry [1] * Some missing FreeGLUT extensions added * OpenGL.GL.framebufferobjects providing ARB/EXT alternates for framebuffer operations * Experimental OSMesa (Offscreen Mesa) context (use the environment variable PYOPENGL_PLATFORM=osmesa) Codebase changes: * Experimental Python 3.2 and PyPy support * Win64 Support (including OpenGL_accelerate) * Numarray (the ancient transitional module between Numeric and numpy) is no longer supported as an array type * More compact auto-generated wrappers * Large numbers of bug fixes Downloads are at: http://pypi.python.org/pypi/PyOpenGL/3.0.2 http://pypi.python.org/pypi/PyOpenGL-accelerate/3.0.2 Future Compatibility Notes: * This will be the last release of PyOpenGL to support Python 2.5 (and it supports Python 2.5 in source-release only mode). o PyOpenGL will be moving to a "shared code" approach for Python 2/3 support, which makes supporting the older Python releases problematic * This will be the last release to support the use of bare numbers as number-array data-types o i.e. passing 1.00 to a function expecting an array/address of an float o Use Glfloat( 1.00 ) to pass in an array-compatible value o Passing in an int/long will generate a GLvoidp( I ) to allow for easy offset-address-style API usage * The ancient Numeric package (as distinct from Numpy) will be dropped as a supported array format o Numeric itself has long since been deprecated, use Numpy
2016-07-24 02:48:16 +02:00
# There are many similar licenses, see license.txt
LICENSE= modified-bsd AND mit
DEPENDS+= ${PYPKGPREFIX}-Tk-[0-9]*:../../x11/py-Tk
Upgrade from PyOpenGL-3.0.1 to PyOpenGL-3.1.1a1 (alpha version of 3.1.1) Package changes: - drop unneeded patch - set MASTER_SITES to MASTER_SITE_PYPI - set LICENSE - add preliminary notes about running tests (at the moment not functional) Upstream changes: Mike C. Fletcher has released PyOpenGL 3.1.1a1. Change log: Python 3.4 compatibility fixes new data-type declarations to match current Khronos ability to use opaque pointers as keys in dictionaries (osmesa fix) removing a few now-redundant hand-written wrappers fix for a missing import on gles2 wrapper tweaked error-message for debugging clarity allow for the shader convenience function to skip validate-on-compile PyOpenGL 3.1.0 (final) is now available. Headline changes: * Generation of wrappers substantially more automatic and based on Khronos source-files with annotations from the Chromium/regal project * Common code-base for Python 2.6, 2.7, 3.3 and 3.4, Python 2.5 is no longer supported * Better isolation and pervasive lazy-loading behaviour to prevent loading unused libraries (e.g. GLUT in non-GLUT contexts or GLES in OpenGL contexts) * Automated wrappers now (generally) allow passing in output arrays rather than having them generated * Experimental support for GLES and EGL * Many bug-fixes and minor improvements Installation can be done from PyPI: pip install PyOpenGL PyOpenGL_accelerate Source code is available on Launchpad: bzr branch lp:pyopengl The homepage, including documentation, remains: http://pyopengl.sourceforge.net/ PyOpenGL 3.0.2 (final, finally) has been released. The major changes since 3.0.1 (released in 2010!) are: * OpenGL core support up to 4.3 level [1] * OpenGL extension support from the current registry [1] * Some missing FreeGLUT extensions added * OpenGL.GL.framebufferobjects providing ARB/EXT alternates for framebuffer operations * Experimental OSMesa (Offscreen Mesa) context (use the environment variable PYOPENGL_PLATFORM=osmesa) Codebase changes: * Experimental Python 3.2 and PyPy support * Win64 Support (including OpenGL_accelerate) * Numarray (the ancient transitional module between Numeric and numpy) is no longer supported as an array type * More compact auto-generated wrappers * Large numbers of bug fixes Downloads are at: http://pypi.python.org/pypi/PyOpenGL/3.0.2 http://pypi.python.org/pypi/PyOpenGL-accelerate/3.0.2 Future Compatibility Notes: * This will be the last release of PyOpenGL to support Python 2.5 (and it supports Python 2.5 in source-release only mode). o PyOpenGL will be moving to a "shared code" approach for Python 2/3 support, which makes supporting the older Python releases problematic * This will be the last release to support the use of bare numbers as number-array data-types o i.e. passing 1.00 to a function expecting an array/address of an float o Use Glfloat( 1.00 ) to pass in an array-compatible value o Passing in an int/long will generate a GLvoidp( I ) to allow for easy offset-address-style API usage * The ancient Numeric package (as distinct from Numpy) will be dropped as a supported array format o Numeric itself has long since been deprecated, use Numpy
2016-07-24 02:48:16 +02:00
REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py
# Tests require:
# - devel/py-virtualenv
# - devel/py-game
# - math/py-numpy
# ...
SUBST_CLASSES+= pyver
SUBST_MESSAGE.pyver= Set Python version suffix for virtualenv calls.
SUBST_STAGE.pyver= pre-configure
SUBST_FILES.pyver= tests/tests.py
SUBST_SED.pyver= -e '121s,virtualenv,virtualenv-${PYVERSSUFFIX},'
do-test:
${RUN} ${PYTHONBIN} ${WRKSRC}/tests/tests.py
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/freeglut/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../math/py-numpy/buildlink3.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"