diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-02-15 18:22:21 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-02-15 18:22:21 +0800 |
commit | 5df9a260e8365712a31977f3ef84de9c758ffd58 (patch) | |
tree | f1041509c823d64496593a44951807c737a82668 /graphics | |
parent | 9218eb30353fc99423746b6f48dfc53e6a6c4e27 (diff) | |
download | marcuscom-ports-5df9a260e8365712a31977f3ef84de9c758ffd58.tar marcuscom-ports-5df9a260e8365712a31977f3ef84de9c758ffd58.tar.gz marcuscom-ports-5df9a260e8365712a31977f3ef84de9c758ffd58.tar.bz2 marcuscom-ports-5df9a260e8365712a31977f3ef84de9c758ffd58.tar.lz marcuscom-ports-5df9a260e8365712a31977f3ef84de9c758ffd58.tar.xz marcuscom-ports-5df9a260e8365712a31977f3ef84de9c758ffd58.tar.zst marcuscom-ports-5df9a260e8365712a31977f3ef84de9c758ffd58.zip |
Fix build with new clutter.
Obtained from: clutter git
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13630 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/py-clutter/Makefile | 37 | ||||
-rw-r--r-- | graphics/py-clutter/distinfo | 3 | ||||
-rw-r--r-- | graphics/py-clutter/files/patch-clutter_cluttermodule.c | 33 | ||||
-rw-r--r-- | graphics/py-clutter/pkg-descr | 4 | ||||
-rw-r--r-- | graphics/py-clutter/pkg-plist | 29 |
5 files changed, 106 insertions, 0 deletions
diff --git a/graphics/py-clutter/Makefile b/graphics/py-clutter/Makefile new file mode 100644 index 000000000..3b775f0e8 --- /dev/null +++ b/graphics/py-clutter/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: py-clutter +# Date created: 2008-12-26 +# Whom: Martin Wilke <miwi@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= clutter +PORTVERSION= 1.0.0 +PORTREVISION= 2 +CATEGORIES= graphics +MASTER_SITES= http://www.clutter-project.org/sources/pyclutter/${PORTVERSION:R}/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= py${PORTNAME}-${PORTVERSION} + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Python modules for Clutter toolkit + +BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gobject/__init__.py:${PORTSDIR}/devel/py-gobject \ + ${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/py-cairo +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gobject/__init__.py:${PORTSDIR}/devel/py-gobject \ + ${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/py-cairo +LIB_DEPENDS= clutter-glx-1.0:${PORTSDIR}/graphics/clutter + +USE_BZIP2= yes +USE_GMAKE= yes +USE_AUTOTOOLS= libtool:22 +USE_GNOME= gnomehack pygnome2 pygtk2 +USE_PYTHON= 2.5+ +CONFIGURE_ARGS= --disable-docs +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" + +CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} +LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} + +.include <bsd.port.mk> diff --git a/graphics/py-clutter/distinfo b/graphics/py-clutter/distinfo new file mode 100644 index 000000000..c501d3442 --- /dev/null +++ b/graphics/py-clutter/distinfo @@ -0,0 +1,3 @@ +MD5 (pyclutter-1.0.0.tar.bz2) = 1cfbb64eceef6828e47e9a64689ffa41 +SHA256 (pyclutter-1.0.0.tar.bz2) = 1c916bc9ab1c98803fecc23ac0276cc02e95a047aa42f7defe05dca81912b537 +SIZE (pyclutter-1.0.0.tar.bz2) = 422185 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 000000000..31d685664 --- /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 (); diff --git a/graphics/py-clutter/pkg-descr b/graphics/py-clutter/pkg-descr new file mode 100644 index 000000000..e0eb4ffe1 --- /dev/null +++ b/graphics/py-clutter/pkg-descr @@ -0,0 +1,4 @@ +This package contains the Python modules that allow you to use the +Clutter toolkit in Python programs. + +WWW: http://clutter-project.org/ diff --git a/graphics/py-clutter/pkg-plist b/graphics/py-clutter/pkg-plist new file mode 100644 index 000000000..954ad348d --- /dev/null +++ b/graphics/py-clutter/pkg-plist @@ -0,0 +1,29 @@ +include/pyclutter-1.0/pyclutter/pyclutter.h +%%PYTHON_SITELIBDIR%%/clutter/__init__.py +%%PYTHON_SITELIBDIR%%/clutter/__init__.pyc +%%PYTHON_SITELIBDIR%%/clutter/__init__.pyo +%%PYTHON_SITELIBDIR%%/clutter/_clutter.a +%%PYTHON_SITELIBDIR%%/clutter/_clutter.la +%%PYTHON_SITELIBDIR%%/clutter/_clutter.so +%%PYTHON_SITELIBDIR%%/clutter/deprecation.py +%%PYTHON_SITELIBDIR%%/clutter/deprecation.pyc +%%PYTHON_SITELIBDIR%%/clutter/deprecation.pyo +%%PYTHON_SITELIBDIR%%/clutter/keysyms.py +%%PYTHON_SITELIBDIR%%/clutter/keysyms.pyc +%%PYTHON_SITELIBDIR%%/clutter/keysyms.pyo +libdata/pkgconfig/pyclutter-1.0.pc +share/pyclutter/1.0/defs/clutter-base-types.defs +share/pyclutter/1.0/defs/clutter-base.defs +share/pyclutter/1.0/defs/clutter-types.defs +share/pyclutter/1.0/defs/clutter.defs +share/pyclutter/1.0/defs/cogl-base-types.defs +share/pyclutter/1.0/defs/cogl-base.defs +share/pyclutter/1.0/defs/cogl-types.defs +share/pyclutter/1.0/defs/cogl.defs +@dirrm share/pyclutter/1.0/defs +@dirrm share/pyclutter/1.0 +@dirrm share/pyclutter +@dirrm %%PYTHON_SITELIBDIR%%/clutter +@dirrmtry %%PYTHON_SITELIBDIR%% +@dirrm include/pyclutter-1.0/pyclutter +@dirrm include/pyclutter-1.0 |