diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-09-28 07:22:02 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-09-28 07:22:02 +0800 |
commit | 36fe92dd47a666096bf67f63e5fb398ee7fa3cd2 (patch) | |
tree | d379ce7df0389a8c321fd985728a1faccee7dc2b | |
parent | 32db3ee178f09984209803334909aad982d93a44 (diff) | |
download | marcuscom-ports-36fe92dd47a666096bf67f63e5fb398ee7fa3cd2.tar marcuscom-ports-36fe92dd47a666096bf67f63e5fb398ee7fa3cd2.tar.gz marcuscom-ports-36fe92dd47a666096bf67f63e5fb398ee7fa3cd2.tar.bz2 marcuscom-ports-36fe92dd47a666096bf67f63e5fb398ee7fa3cd2.tar.lz marcuscom-ports-36fe92dd47a666096bf67f63e5fb398ee7fa3cd2.tar.xz marcuscom-ports-36fe92dd47a666096bf67f63e5fb398ee7fa3cd2.tar.zst marcuscom-ports-36fe92dd47a666096bf67f63e5fb398ee7fa3cd2.zip |
Fix build with new gtk.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13058 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | graphics/py-visual/Makefile | 62 | ||||
-rw-r--r-- | graphics/py-visual/distinfo | 3 | ||||
-rw-r--r-- | graphics/py-visual/files/patch-bin-vpython.in | 12 | ||||
-rw-r--r-- | graphics/py-visual/files/patch-configure | 14 | ||||
-rw-r--r-- | graphics/py-visual/files/patch-src-python-cvisualmodule.cpp | 11 | ||||
-rw-r--r-- | graphics/py-visual/files/patch-src-python-vector_array.cpp | 10 | ||||
-rw-r--r-- | graphics/py-visual/files/patch-src_gtk_display.cpp | 11 | ||||
-rw-r--r-- | graphics/py-visual/pkg-descr | 10 | ||||
-rw-r--r-- | graphics/py-visual/pkg-plist | 132 |
9 files changed, 265 insertions, 0 deletions
diff --git a/graphics/py-visual/Makefile b/graphics/py-visual/Makefile new file mode 100644 index 000000000..d9c852d76 --- /dev/null +++ b/graphics/py-visual/Makefile @@ -0,0 +1,62 @@ +# New ports collection makefile for: py-visual +# Date created: 2005-07-13 +# Whom: Nicola Vitale <nivit@email.it> +# +# $FreeBSD: ports/graphics/py-visual/Makefile,v 1.22 2009/08/22 00:23:07 amdmi3 Exp $ +# + +PORTNAME= visual +PORTVERSION= 4.b26 +PORTREVISION= 3 +CATEGORIES= graphics python +MASTER_SITES= SF/${PORTNAME}python/${PORTNAME}-module/VPython%204.beta26 +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME}-${PORTVERSION:S/b/beta/} + +MAINTAINER= nivit@FreeBSD.org +COMMENT= A python module that offers real 3D visual output + +BUILD_DEPENDS= ${PYNUMPY} \ + bjam:${PORTSDIR}/devel/boost-jam +LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea \ + gtkglextmm-x11-1.2:${PORTSDIR}/x11-toolkits/gtkglextmm \ + glademm-2.4.1:${PORTSDIR}/devel/libglademm24 \ + boost_python.4:${PORTSDIR}/devel/boost-python-libs +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_BZIP2= yes +USE_GMAKE= yes +USE_GNOME= gtk12 +USE_PYTHON= 2.3+ + +OPTIONS= EXAMPLES "install example files" on +OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} --disable-dependency-tracking +.if defined(NOPORTDOCS) +CONFIGURE_ARGS+= --disable-docs +.endif +CONFIGURE_ENV= PYTHONPATH=${PYTHON_LIBDIR} +CFLAGS+= ${PTHREAD_CFLAGS} +MAKE_ENV= LDFLAGS="${LDFLAGS} ${PTREAD_LIBS}" + +VPYTHON_SCRIPT= bin/vpython.in + +.include <bsd.port.pre.mk> + +.if !defined(WITH_EXAMPLES) +CONFIGURE_ARGS+= --disable-examples +PLIST_SUB+= PORTEXAMPLES="@comment " +.else +CONFIGURE_ARGS+= --with-example-dir=${EXAMPLESDIR} +PLIST_SUB+= PORTEXAMPLES="" +.endif + +post-patch: + @cd ${WRKSRC}; \ + ${REINPLACE_CMD} -e 's|%%PYTHONBASE%%|${PYTHONBASE}|g' \ + -e 's|%%PYTHON_VERSION%%|${PYTHON_VER}|g' \ + ${VPYTHON_SCRIPT} + +.include <bsd.port.post.mk> diff --git a/graphics/py-visual/distinfo b/graphics/py-visual/distinfo new file mode 100644 index 000000000..e6ede9629 --- /dev/null +++ b/graphics/py-visual/distinfo @@ -0,0 +1,3 @@ +MD5 (visual-4.beta26.tar.bz2) = e06e55117825f4d77435339c03a0bf36 +SHA256 (visual-4.beta26.tar.bz2) = 9d55a4fb1d3a84659ef7d8514a52447863176160b51c6771f11bebebdd4c931c +SIZE (visual-4.beta26.tar.bz2) = 614231 diff --git a/graphics/py-visual/files/patch-bin-vpython.in b/graphics/py-visual/files/patch-bin-vpython.in new file mode 100644 index 000000000..77eecde05 --- /dev/null +++ b/graphics/py-visual/files/patch-bin-vpython.in @@ -0,0 +1,12 @@ +$FreeBSD: ports/graphics/py-visual/files/patch-bin-vpython.in,v 1.1 2005/07/19 19:58:07 pav Exp $ +--- bin/vpython.in Fri Feb 25 21:39:38 2005 ++++ bin/vpython.in.port Tue Jul 19 10:35:23 2005 +@@ -2,7 +2,7 @@ + # Variables determined by configure. + PYTHON=@PYTHON@ + visualexampledir=@visualexampledir@ +-IDLE=idle ++IDLE=%%PYTHONBASE%%/bin/idle%%PYTHON_VERSION%% + PYTHONPATH=@PYTHONPATH@ + export PYTHONPATH + diff --git a/graphics/py-visual/files/patch-configure b/graphics/py-visual/files/patch-configure new file mode 100644 index 000000000..72187d893 --- /dev/null +++ b/graphics/py-visual/files/patch-configure @@ -0,0 +1,14 @@ +--- configure Sat Dec 30 20:15:57 2006 ++++ configure.port Wed Mar 7 18:11:26 2007 +@@ -20104,11 +20104,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + +- if $PYTHON -c 'import numpy ; numpy.array' 1>&5 2>&5; then + eval "py_cv_mod_$py_mod_var=yes" +- else +- eval "py_cv_mod_$py_mod_var=no" +- fi + + fi + diff --git a/graphics/py-visual/files/patch-src-python-cvisualmodule.cpp b/graphics/py-visual/files/patch-src-python-cvisualmodule.cpp new file mode 100644 index 000000000..4400d2207 --- /dev/null +++ b/graphics/py-visual/files/patch-src-python-cvisualmodule.cpp @@ -0,0 +1,11 @@ +$FreeBSD: ports/graphics/py-visual/files/patch-src-python-cvisualmodule.cpp,v 1.1 2007/03/09 17:15:06 nivit Exp $ +--- src/python/cvisualmodule.cpp Tue Mar 6 11:45:52 2007 ++++ src/python/cvisualmodule.cpp.port Tue Mar 6 11:46:04 2007 +@@ -5,6 +5,7 @@ + // See the file license.txt for complete license terms. + // See the file authors.txt for a complete list of contributors. + ++#include <iostream> + #include <stdexcept> + #include <exception> + diff --git a/graphics/py-visual/files/patch-src-python-vector_array.cpp b/graphics/py-visual/files/patch-src-python-vector_array.cpp new file mode 100644 index 000000000..f37720a04 --- /dev/null +++ b/graphics/py-visual/files/patch-src-python-vector_array.cpp @@ -0,0 +1,10 @@ +--- src/python/vector_array.cpp Tue Mar 6 12:39:10 2007 ++++ src/python/vector_array.cpp.port Tue Mar 6 12:20:51 2007 +@@ -1,6 +1,7 @@ + // Copyright (c) 2000, 2001, 2002, 2003 by David Scherer and others. + // See the file license.txt for complete license terms. + // See the file authors.txt for a complete list of contributors. ++#include <iostream> + #include "python/vector_array.hpp" + #include "python/scalar_array.hpp" + diff --git a/graphics/py-visual/files/patch-src_gtk_display.cpp b/graphics/py-visual/files/patch-src_gtk_display.cpp new file mode 100644 index 000000000..7d839d43b --- /dev/null +++ b/graphics/py-visual/files/patch-src_gtk_display.cpp @@ -0,0 +1,11 @@ +--- src/gtk2/display.cpp.orig 2009-09-28 01:08:27.000000000 +0200 ++++ src/gtk2/display.cpp 2009-09-28 01:08:43.000000000 +0200 +@@ -400,7 +400,7 @@ display::create() + window->fullscreen(); + active = true; + area->grab_focus(); +- assert( area->can_focus()); ++ assert( area->get_can_focus()); + while (Gtk::Main::events_pending()) + Gtk::Main::iteration(); + } diff --git a/graphics/py-visual/pkg-descr b/graphics/py-visual/pkg-descr new file mode 100644 index 000000000..dfacc3929 --- /dev/null +++ b/graphics/py-visual/pkg-descr @@ -0,0 +1,10 @@ +With this Python module a program can create 3D objects (such as spheres, +curves, etc.) and position them in 3D space. Visual, running in a separate +thread, automatically updates a 3D scene many times per second, to reflect +the current positions of the objects. +The programmer does not need to deal with display management, but can focus +on the computational aspects of the program. +The user can navigate in the 3D scene by using the mouse to zoom and rotate +while the program is running. Visual supports full vector algebra. + +WWW: http://www.vpython.org/ diff --git a/graphics/py-visual/pkg-plist b/graphics/py-visual/pkg-plist new file mode 100644 index 000000000..75e15ad7b --- /dev/null +++ b/graphics/py-visual/pkg-plist @@ -0,0 +1,132 @@ +@comment $FreeBSD: ports/graphics/py-visual/pkg-plist,v 1.6 2008/04/18 16:44:03 nivit Exp $ +bin/vpython +%%PYTHON_SITELIBDIR%%/cvisualmodule.la +%%PYTHON_SITELIBDIR%%/cvisualmodule.so +%%PYTHON_SITELIBDIR%%/cvisualmodule.so.3 +%%PYTHON_SITELIBDIR%%/visual/__init__.py +%%PYTHON_SITELIBDIR%%/visual/__init__.pyc +%%PYTHON_SITELIBDIR%%/visual/__init__.pyo +%%PYTHON_SITELIBDIR%%/visual/array_backend.py +%%PYTHON_SITELIBDIR%%/visual/array_backend.pyc +%%PYTHON_SITELIBDIR%%/visual/array_backend.pyo +%%PYTHON_SITELIBDIR%%/visual/controls.py +%%PYTHON_SITELIBDIR%%/visual/controls.pyc +%%PYTHON_SITELIBDIR%%/visual/controls.pyo +%%PYTHON_SITELIBDIR%%/visual/crayola.py +%%PYTHON_SITELIBDIR%%/visual/crayola.pyc +%%PYTHON_SITELIBDIR%%/visual/crayola.pyo +%%PYTHON_SITELIBDIR%%/visual/factorial.py +%%PYTHON_SITELIBDIR%%/visual/factorial.pyc +%%PYTHON_SITELIBDIR%%/visual/factorial.pyo +%%PYTHON_SITELIBDIR%%/visual/graph.py +%%PYTHON_SITELIBDIR%%/visual/graph.pyc +%%PYTHON_SITELIBDIR%%/visual/graph.pyo +%%PYTHON_SITELIBDIR%%/visual/logo_t.gif +%%PYTHON_SITELIBDIR%%/visual/pan.png +%%PYTHON_SITELIBDIR%%/visual/primitives.py +%%PYTHON_SITELIBDIR%%/visual/primitives.pyc +%%PYTHON_SITELIBDIR%%/visual/primitives.pyo +%%PYTHON_SITELIBDIR%%/visual/text.py +%%PYTHON_SITELIBDIR%%/visual/text.pyc +%%PYTHON_SITELIBDIR%%/visual/text.pyo +%%PYTHON_SITELIBDIR%%/visual/ui.py +%%PYTHON_SITELIBDIR%%/visual/ui.pyc +%%PYTHON_SITELIBDIR%%/visual/ui.pyo +%%PYTHON_SITELIBDIR%%/visual/vpython.glade +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/visual/VisualIntro.css +%%PORTDOCS%%%%DOCSDIR%%/visual/VisualIntro.html +%%PORTDOCS%%%%DOCSDIR%%/visual/VisualRef-1.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/VisualRef-2.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/VisualRef-3.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/VisualRef-4.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/VisualRef-5.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/VisualRef-6.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/VisualRef-7.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/VisualRef.css +%%PORTDOCS%%%%DOCSDIR%%/visual/arrow.html +%%PORTDOCS%%%%DOCSDIR%%/visual/axes.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/box.html +%%PORTDOCS%%%%DOCSDIR%%/visual/color.html +%%PORTDOCS%%%%DOCSDIR%%/visual/cone.html +%%PORTDOCS%%%%DOCSDIR%%/visual/controls.html +%%PORTDOCS%%%%DOCSDIR%%/visual/convex.html +%%PORTDOCS%%%%DOCSDIR%%/visual/curve.html +%%PORTDOCS%%%%DOCSDIR%%/visual/cylinder.html +%%PORTDOCS%%%%DOCSDIR%%/visual/defaults.html +%%PORTDOCS%%%%DOCSDIR%%/visual/delete.html +%%PORTDOCS%%%%DOCSDIR%%/visual/display.html +%%PORTDOCS%%%%DOCSDIR%%/visual/ellipsoid.html +%%PORTDOCS%%%%DOCSDIR%%/visual/faces.html +%%PORTDOCS%%%%DOCSDIR%%/visual/factorial.html +%%PORTDOCS%%%%DOCSDIR%%/visual/float.html +%%PORTDOCS%%%%DOCSDIR%%/visual/frame.html +%%PORTDOCS%%%%DOCSDIR%%/visual/graph.html +%%PORTDOCS%%%%DOCSDIR%%/visual/helix.html +%%PORTDOCS%%%%DOCSDIR%%/visual/icons/blank.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/icons/contents.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/icons/index.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/icons/modules.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/icons/next.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/icons/previous.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/icons/up.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/index.html +%%PORTDOCS%%%%DOCSDIR%%/visual/keyboard.html +%%PORTDOCS%%%%DOCSDIR%%/visual/label.html +%%PORTDOCS%%%%DOCSDIR%%/visual/license.txt +%%PORTDOCS%%%%DOCSDIR%%/visual/mouse.html +%%PORTDOCS%%%%DOCSDIR%%/visual/mouse_click.html +%%PORTDOCS%%%%DOCSDIR%%/visual/mouse_drag.html +%%PORTDOCS%%%%DOCSDIR%%/visual/options.html +%%PORTDOCS%%%%DOCSDIR%%/visual/pyramid.html +%%PORTDOCS%%%%DOCSDIR%%/visual/rate.html +%%PORTDOCS%%%%DOCSDIR%%/visual/ring.html +%%PORTDOCS%%%%DOCSDIR%%/visual/rotation.html +%%PORTDOCS%%%%DOCSDIR%%/visual/sphere.html +%%PORTDOCS%%%%DOCSDIR%%/visual/spherebox.gif +%%PORTDOCS%%%%DOCSDIR%%/visual/texture-opacity-lighting.html +%%PORTDOCS%%%%DOCSDIR%%/visual/vector.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Tk-Visual.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/boxlighttest.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bounce.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bounce2.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/colorsliders.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/controlstest.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/convex.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/crossproduct.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/crystal.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dipole.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/doublependulum.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/drape.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/faces_cone.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/faces_heightfield.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/flower128.vpt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gas.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/glinfo.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/graphtest.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gyro.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gyro2.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hanoi.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/labels.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lathe.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lorenz.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mandelbrot.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/orbit.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/planar.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/randombox.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stars.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stonehenge.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/texttest.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/texture_and_lighting.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/texturetest.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tictac.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tictacdat.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/toroid.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/toroid_drag.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wave.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wood256lum.vpt +%%PORTDOCS%%@dirrm %%DOCSDIR%%/visual/icons +%%PORTDOCS%%@dirrm %%DOCSDIR%%/visual +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% +@dirrm %%PYTHON_SITELIBDIR%%/visual |