# $Id$ PortSystem 1.0 PortGroup qt4 1.0 name OpenCSG version 1.3.2 license GPL-2 categories science maintainers macsforever2000 openmaintainer description OpenCSG is a library that does image-based CSG rendering using OpenGL long_description CSG is short for Constructive Solid Geometry and denotes an approach \ to model complex 3D-shapes using simpler ones. I.e., two shapes can be \ combined by taking the union of them, by intersecting them, or by \ subtracting one shape of the other. The most basic shapes, which are \ not result of such a CSG operation, are called primitives. Primitives \ must be solid, i.e., they must have a clearly defined interior and \ exterior. By construction, a CSG shape is also solid then. platforms darwin homepage http://www.opencsg.org/ master_sites ${homepage} checksums rmd160 4480778c310a3d5f84933c1b35508dd94adf2332 \ sha256 c790c92998f7113cb35cde825f81c5532755908a0a3f43c3c3c8df2326b3b925 depends_build port:qt4-mac # we only need qmake, don't care about it's arch set depends_skip_archcheck {qt4-mac} patchfiles patch-src__src.pro-use-system-glew.diff depends_lib port:glew worksrcdir ${distname}/src configure.cmd ${qt_qmake_cmd} configure.pre_args configure.args -o Makefile src.pro LIBS+="-lGLEW" configure.post_args configure.universal_args post-configure { reinplace "s/-lQtGui -lQtCore//g" ${worksrcpath}/Makefile } destroot { eval file copy [glob ${worksrcpath}/../lib/*] ${destroot}${prefix}/lib eval file copy [glob ${worksrcpath}/../include/*] ${destroot}${prefix}/include system "install_name_tool -id ${prefix}/lib/libopencsg.[lindex [split ${version} .] 0].dylib ${destroot}${prefix}/lib/libopencsg.dylib" } livecheck.type regex livecheck.url [lindex ${master_sites} 0] livecheck.regex ${name}-(\[0-9.-\]+)\\.tar.gz