# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 name gl2ps version 1.3.9 revision 1 categories graphics print platforms darwin maintainers nomaintainer license {LGPL Copyleft} description an OpenGL to PostScript printing library long_description GL2PS is a C library providing high quality vector \ output for any OpenGL application. The main difference \ between GL2PS and other similar libraries is the use of \ sorting algorithms capable of handling intersecting and \ stretched polygons, as well as non manifold objects. \ GL2PS provides advanced smooth shading and text \ rendering, culling of invisible primitives, mixed \ vector/bitmap output, and much more... homepage http://geuz.org/gl2ps/ master_sites ${homepage}src/ extract.suffix .tgz checksums rmd160 b606dc82858c0d3d59435386c6588907e47c9635 \ sha256 8a680bff120df8bcd78afac276cdc38041fed617f2721bade01213362bcc3640 depends_lib-append port:zlib \ port:libpng worksrcdir ${name}-${version}-source # if CMakeLists.txt finds GLUT, it builds but does not install example programs # it also links installed libraries with whichever glut it finds # if CMakeLists.txt finds LATEX, it builds and installs pdf documentation # it also looks for the program tth to build but not install html documentation configure.args-append \ -DCMAKE_DISABLE_FIND_PACKAGE_GLUT=TRUE \ -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE cmake.out_of_source yes use_parallel_build yes variant docs description {generate documentation} { depends_build-append \ port:texlive-latex \ port:tth configure.args-delete -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE build.args-append html post-destroot { xinstall -m 644 \ ${cmake.build_dir}/gl2ps.html \ ${destroot}${prefix}/share/doc/gl2ps } } livecheck.type regex livecheck.url [lindex ${master_sites} 0] livecheck.regex ${name}-(\[0-9.\]+)\\.