Files

67 lines
2.6 KiB
Tcl

# -*- 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
PortSystem 1.0
PortGroup cmake 1.1
name gl2ps
version 1.4.2
revision 0
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 8f680025808a65c217c8dad3be3a524e6c0c337c \
sha256 8d1c00c1018f96b4b97655482e57dcb0ce42ae2f1d349cd6d4191e7848d9ffe9 \
size 301134
depends_lib-append port:zlib \
port:libpng
worksrcdir ${name}-${version}
# 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
variant docs description {generate documentation} {
depends_build-append \
port:texlive-fonts-recommended \
port:texlive-latex \
port:texlive-latex-recommended \
port:texlive-plain-generic \
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.\]+)\\.