# $Id$ PortSystem 1.0 PortGroup cmake 1.0 name osgswig-devel version 222 revision 1 platforms darwin categories graphics license MIT maintainers nomaintainer description SWIG based bindings for OpenSceneGraph long_description \ The osgSWIG project utilises SWIG to generate bindings for this C++-based \ scene graph for various higher-level languages. Our main target is \ currently Python, but others of interest are Java, Ruby, and Lua. homepage http://code.google.com/p/osgswig/ fetch.type svn svn.url http://osgswig.googlecode.com/svn/trunk/ svn.revision ${version} worksrcdir trunk patchfiles \ patch-import-modules.diff \ patch-src-osg.i.diff \ patch-src-osgAnimation.i.diff \ patch-src-python-CMakeLists.txt.diff post-patch { reinplace s:@FRAMEWORKS_DIR@:${frameworks_dir}: \ ${worksrcpath}/src/python/CMakeLists.txt } depends_lib \ path:lib/pkgconfig/openscenegraph.pc:OpenSceneGraph \ port:python26 \ port:swig \ port:swig-python destroot { set site_packages \ ${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/site-packages xinstall -d ${destroot}${site_packages} copy ${worksrcpath}/lib/python/osgswig-0.9.1 \ ${destroot}${site_packages}/ move ${destroot}${site_packages}/osgswig-0.9.1/osg.pth \ ${destroot}${site_packages} } livecheck.type regex livecheck.url ${svn.url} livecheck.regex {Revision (\d+):}