Import py-pigment 0.3.12:
Pigment-python contains modules that allow you to use Pigment in Python programs. At present, it is a fairly complete set of bindings. Thanks to kurt@, guenther@ & oga@ for hints on how to correctly link/use libGL. For now, there's an evil patch for that. ok ajacoutot@
This commit is contained in:
parent
61911cfc3e
commit
06b538cc00
41
graphics/py-pigment/Makefile
Normal file
41
graphics/py-pigment/Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/10/13 19:39:09 landry Exp $
|
||||
|
||||
COMMENT = python bindings for pigment
|
||||
|
||||
CATEGORIES = graphics
|
||||
|
||||
DISTNAME = pigment-python-0.3.12
|
||||
PKGNAME = py-pigment-0.3.12
|
||||
MASTER_SITES = http://elisa.fluendo.com/static/download/pigment/
|
||||
|
||||
# LGPLv2.1
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
HOMEPAGE = https://code.fluendo.com/pigment/trac
|
||||
|
||||
MODULES = lang/python \
|
||||
devel/gettext
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
CONFIGURE_ENV += LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
|
||||
CPPFLAGS="-I${X11BASE}/include -L${LOCALBASE}/include"
|
||||
|
||||
USE_LIBTOOL = Yes
|
||||
USE_GMAKE = Yes
|
||||
|
||||
RUN_DEPENDS = ::multimedia/gstreamer-0.10/py-gstreamer
|
||||
BUILD_DEPENDS += ${RUN_DEPENDS}
|
||||
|
||||
LIB_DEPENDS = pigment-0.3,pigment-gtk-0.3,pigment-imaging-0.3::graphics/pigment
|
||||
|
||||
WANTLIB += GL X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
|
||||
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig
|
||||
WANTLIB += freetype gio-2.0 glib-2.0 glitz gmodule-2.0 gobject-2.0
|
||||
WANTLIB += gthread-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0
|
||||
WANTLIB += pcre pixman-1 png pthread-stubs xcb z xml2
|
||||
WANTLIB += gstvideo-0.10 gtk-x11-2.0 gdk-x11-2.0 gdk_pixbuf-2.0 gstbase-0.10 gstreamer-0.10
|
||||
|
||||
.include <bsd.port.mk>
|
5
graphics/py-pigment/distinfo
Normal file
5
graphics/py-pigment/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (pigment-python-0.3.12.tar.gz) = 3ULOKRvk032akzyePNcVkA==
|
||||
RMD160 (pigment-python-0.3.12.tar.gz) = hTsPU1TKeOeFgPUzt/8zFPpCmao=
|
||||
SHA1 (pigment-python-0.3.12.tar.gz) = tGDvqT+UwP+F2TiWTjTKcHXj19g=
|
||||
SHA256 (pigment-python-0.3.12.tar.gz) = 1gtj0hZhgge1wdlk3OCQ7Dr9oNf5FrOgatSfC9rcUFg=
|
||||
SIZE (pigment-python-0.3.12.tar.gz) = 573736
|
1897
graphics/py-pigment/good.log
Normal file
1897
graphics/py-pigment/good.log
Normal file
File diff suppressed because it is too large
Load Diff
26
graphics/py-pigment/patches/patch-pgm_pgmmodule_c
Normal file
26
graphics/py-pigment/patches/patch-pgm_pgmmodule_c
Normal file
@ -0,0 +1,26 @@
|
||||
$OpenBSD: patch-pgm_pgmmodule_c,v 1.1.1.1 2009/10/13 19:39:12 landry Exp $
|
||||
Needed for python to correctly view gl syms, has to be dlopened w/ RTLD_GLOBAL.
|
||||
--- pgm/pgmmodule.c.orig Wed May 20 19:08:27 2009
|
||||
+++ pgm/pgmmodule.c Tue Oct 13 13:05:29 2009
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <pygobject.h>
|
||||
#include <Python.h>
|
||||
#include <pgm/pgm.h>
|
||||
+#include <dlfcn.h>
|
||||
|
||||
void pypgm_register_classes (PyObject *d);
|
||||
void pypgm_add_constants (PyObject *module, const gchar *strip_prefix);
|
||||
@@ -57,6 +58,13 @@ init_pgm (void)
|
||||
argv = g_new (char *, argc);
|
||||
for (i = 0; i < argc; i++)
|
||||
argv[i] = g_strdup (PyString_AsString (PyList_GetItem (av, i)));
|
||||
+ }
|
||||
+
|
||||
+ /* for an unknown reason python doesn't load libGL, so force it */
|
||||
+ if (!dlopen ("libGL.so", RTLD_GLOBAL|RTLD_NOW))
|
||||
+ {
|
||||
+ perror(dlerror());
|
||||
+ return;
|
||||
}
|
||||
|
||||
if (!pgm_init_check (&argc, &argv))
|
2
graphics/py-pigment/pkg/DESCR
Normal file
2
graphics/py-pigment/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
Pigment-python contains modules that allow you to use Pigment in Python
|
||||
programs. At present, it is a fairly complete set of bindings.
|
163
graphics/py-pigment/pkg/PLIST
Normal file
163
graphics/py-pigment/pkg/PLIST
Normal file
@ -0,0 +1,163 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/10/13 19:39:12 landry Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/_pgmgtkmodule.a
|
||||
lib/python${MODPY_VERSION}/site-packages/_pgmgtkmodule.la
|
||||
lib/python${MODPY_VERSION}/site-packages/_pgmgtkmodule.so
|
||||
lib/python${MODPY_VERSION}/site-packages/_pgmimagingmodule.a
|
||||
lib/python${MODPY_VERSION}/site-packages/_pgmimagingmodule.la
|
||||
lib/python${MODPY_VERSION}/site-packages/_pgmimagingmodule.so
|
||||
lib/python${MODPY_VERSION}/site-packages/_pgmmodule.a
|
||||
lib/python${MODPY_VERSION}/site-packages/_pgmmodule.la
|
||||
lib/python${MODPY_VERSION}/site-packages/_pgmmodule.so
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/__init__.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/__init__.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/__init__.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/__init__.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/__init__.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/__init__.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/drawable.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/drawable.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/drawable.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/group.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/group.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/group.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/image.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/image.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/image.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/text.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/text.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/graph/text.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/keysyms.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/keysyms.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/keysyms.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/__init__.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/__init__.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/__init__.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/controller.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/controller.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/controller.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/implicit.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/implicit.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/implicit.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/keyframe.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/keyframe.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/keyframe.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/modifier.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/modifier.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/modifier.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/ticker.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/ticker.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/timing/ticker.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/__init__.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/__init__.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/__init__.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/benchmark.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/benchmark.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/benchmark.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/classinit.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/classinit.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/classinit.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/image.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/image.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/image.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/maths.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/maths.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/utils/maths.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/__init__.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/__init__.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/__init__.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/button.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/button.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/button.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/circular_list_ng.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/circular_list_ng.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/circular_list_ng.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/console.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/console.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/console.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/const.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/const.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/const.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/grid_ng.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/grid_ng.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/grid_ng.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/list_ng.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/list_ng.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/list_ng.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/scrollbar.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/scrollbar.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/scrollbar.pyo
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/sliced_image.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/sliced_image.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pgm/widgets/sliced_image.pyo
|
||||
share/pigment-python/
|
||||
share/pigment-python/0.3/
|
||||
share/pigment-python/0.3/examples/
|
||||
share/pigment-python/0.3/examples/cloning.py
|
||||
share/pigment-python/0.3/examples/groups.py
|
||||
share/pigment-python/0.3/examples/image.py
|
||||
share/pigment-python/0.3/examples/implicit.py
|
||||
share/pigment-python/0.3/examples/layout.py
|
||||
share/pigment-python/0.3/examples/mappingmatrix.py
|
||||
share/pigment-python/0.3/examples/pgmgtk.py
|
||||
share/pigment-python/0.3/examples/pictures/
|
||||
share/pigment-python/0.3/examples/pictures/fluendo.png
|
||||
share/pigment-python/0.3/examples/pictures/line-pattern.png
|
||||
share/pigment-python/0.3/examples/pictures/meiko.jpg
|
||||
share/pigment-python/0.3/examples/sphere.py
|
||||
share/pigment-python/0.3/examples/text.py
|
||||
share/pigment-python/0.3/examples/timing.py
|
||||
share/pigment-python/0.3/examples/video.py
|
||||
share/pigment-python/0.3/examples/webcam.py
|
||||
share/pigment-python/0.3/examples/wrapping.py
|
||||
share/pigment-python/2.0/
|
||||
share/pigment-python/2.0/codegen/
|
||||
share/pigment-python/2.0/codegen/__init__.py
|
||||
share/pigment-python/2.0/codegen/__init__.pyc
|
||||
share/pigment-python/2.0/codegen/__init__.pyo
|
||||
share/pigment-python/2.0/codegen/argtypes.py
|
||||
share/pigment-python/2.0/codegen/argtypes.pyc
|
||||
share/pigment-python/2.0/codegen/argtypes.pyo
|
||||
share/pigment-python/2.0/codegen/codegen.py
|
||||
share/pigment-python/2.0/codegen/codegen.pyc
|
||||
share/pigment-python/2.0/codegen/codegen.pyo
|
||||
share/pigment-python/2.0/codegen/createdefs.py
|
||||
share/pigment-python/2.0/codegen/createdefs.pyc
|
||||
share/pigment-python/2.0/codegen/createdefs.pyo
|
||||
share/pigment-python/2.0/codegen/definitions.py
|
||||
share/pigment-python/2.0/codegen/definitions.pyc
|
||||
share/pigment-python/2.0/codegen/definitions.pyo
|
||||
share/pigment-python/2.0/codegen/defsparser.py
|
||||
share/pigment-python/2.0/codegen/defsparser.pyc
|
||||
share/pigment-python/2.0/codegen/defsparser.pyo
|
||||
share/pigment-python/2.0/codegen/docextract.py
|
||||
share/pigment-python/2.0/codegen/docextract.pyc
|
||||
share/pigment-python/2.0/codegen/docextract.pyo
|
||||
share/pigment-python/2.0/codegen/docgen.py
|
||||
share/pigment-python/2.0/codegen/docgen.pyc
|
||||
share/pigment-python/2.0/codegen/docgen.pyo
|
||||
share/pigment-python/2.0/codegen/docstuff.py
|
||||
share/pigment-python/2.0/codegen/docstuff.pyc
|
||||
share/pigment-python/2.0/codegen/docstuff.pyo
|
||||
share/pigment-python/2.0/codegen/h2def.py
|
||||
share/pigment-python/2.0/codegen/h2def.pyc
|
||||
share/pigment-python/2.0/codegen/h2def.pyo
|
||||
share/pigment-python/2.0/codegen/mergedefs.py
|
||||
share/pigment-python/2.0/codegen/mergedefs.pyc
|
||||
share/pigment-python/2.0/codegen/mergedefs.pyo
|
||||
share/pigment-python/2.0/codegen/mkskel.py
|
||||
share/pigment-python/2.0/codegen/mkskel.pyc
|
||||
share/pigment-python/2.0/codegen/mkskel.pyo
|
||||
share/pigment-python/2.0/codegen/override.py
|
||||
share/pigment-python/2.0/codegen/override.pyc
|
||||
share/pigment-python/2.0/codegen/override.pyo
|
||||
share/pigment-python/2.0/codegen/reversewrapper.py
|
||||
share/pigment-python/2.0/codegen/reversewrapper.pyc
|
||||
share/pigment-python/2.0/codegen/reversewrapper.pyo
|
||||
share/pigment-python/2.0/codegen/scmexpr.py
|
||||
share/pigment-python/2.0/codegen/scmexpr.pyc
|
||||
share/pigment-python/2.0/codegen/scmexpr.pyo
|
Loading…
x
Reference in New Issue
Block a user