diff options
Diffstat (limited to 'graphics/py-clutter')
-rw-r--r-- | graphics/py-clutter/Makefile | 4 | ||||
-rw-r--r-- | graphics/py-clutter/files/patch-clutter_cluttermodule.c | 33 |
2 files changed, 35 insertions, 2 deletions
diff --git a/graphics/py-clutter/Makefile b/graphics/py-clutter/Makefile index 46e8fa8ee92c..0ab6d0602664 100644 --- a/graphics/py-clutter/Makefile +++ b/graphics/py-clutter/Makefile @@ -3,12 +3,12 @@ # Whom: Martin Wilke <miwi@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/graphics/py-clutter/Makefile,v 1.3 2009/09/26 13:41:59 marcus Exp $ +# $MCom: ports/graphics/py-clutter/Makefile,v 1.6 2010/05/10 04:21:19 marcus Exp $ # PORTNAME= clutter PORTVERSION= 1.0.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics MASTER_SITES= http://www.clutter-project.org/sources/pyclutter/${PORTVERSION:R}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/graphics/py-clutter/files/patch-clutter_cluttermodule.c b/graphics/py-clutter/files/patch-clutter_cluttermodule.c new file mode 100644 index 000000000000..31d685664358 --- /dev/null +++ b/graphics/py-clutter/files/patch-clutter_cluttermodule.c @@ -0,0 +1,33 @@ +--- clutter/cluttermodule.c.orig 2010-02-15 11:16:18.000000000 +0100 ++++ clutter/cluttermodule.c 2010-02-15 11:18:06.000000000 +0100 +@@ -148,19 +148,19 @@ pycogl_add_gl_constants (PyObject *modul + * should also be loading PyOpenGL, which exposes all the + * enumeration values + */ +- PyModule_AddObject (module, "NEVER", Py_BuildValue ("i", CGL_NEVER)); +- PyModule_AddObject (module, "LESS", Py_BuildValue ("i", CGL_LESS)); +- PyModule_AddObject (module, "LEQUAL", Py_BuildValue ("i", CGL_LEQUAL)); +- PyModule_AddObject (module, "EQUAL", Py_BuildValue ("i", CGL_EQUAL)); +- PyModule_AddObject (module, "NOTEQUAL", Py_BuildValue ("i", CGL_NOTEQUAL)); +- PyModule_AddObject (module, "GEQUAL", Py_BuildValue ("i", CGL_GEQUAL)); +- PyModule_AddObject (module, "GREATER", Py_BuildValue ("i", CGL_GREATER)); +- PyModule_AddObject (module, "ALWAYS", Py_BuildValue ("i", CGL_ALWAYS)); ++ PyModule_AddObject (module, "NEVER", Py_BuildValue ("i", GL_NEVER)); ++ PyModule_AddObject (module, "LESS", Py_BuildValue ("i", GL_LESS)); ++ PyModule_AddObject (module, "LEQUAL", Py_BuildValue ("i", GL_LEQUAL)); ++ PyModule_AddObject (module, "EQUAL", Py_BuildValue ("i", GL_EQUAL)); ++ PyModule_AddObject (module, "NOTEQUAL", Py_BuildValue ("i", GL_NOTEQUAL)); ++ PyModule_AddObject (module, "GEQUAL", Py_BuildValue ("i", GL_GEQUAL)); ++ PyModule_AddObject (module, "GREATER", Py_BuildValue ("i", GL_GREATER)); ++ PyModule_AddObject (module, "ALWAYS", Py_BuildValue ("i", GL_ALWAYS)); + +- PyModule_AddObject (module, "SRC_ALPHA", Py_BuildValue ("i", CGL_SRC_ALPHA)); +- PyModule_AddObject (module, "ONE_MINUS_SRC_ALPHA", Py_BuildValue ("i", CGL_ONE_MINUS_SRC_ALPHA)); ++ PyModule_AddObject (module, "SRC_ALPHA", Py_BuildValue ("i", GL_SRC_ALPHA)); ++ PyModule_AddObject (module, "ONE_MINUS_SRC_ALPHA", Py_BuildValue ("i", GL_ONE_MINUS_SRC_ALPHA)); + +- PyModule_AddObject (module, "OBJECT_COMPILE_STATUS", Py_BuildValue ("i", CGL_OBJECT_COMPILE_STATUS)); ++ PyModule_AddObject (module, "OBJECT_COMPILE_STATUS", Py_BuildValue ("i", GL_OBJECT_COMPILE_STATUS_ARB)); + + if (PyErr_Occurred ()) + PyErr_Print (); |