source: trunk/dports/graphics/gl2ps/Portfile

Last change on this file was 145859, checked in by jmr@…, 17 months ago

gl2ps: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- 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
2# $Id: Portfile 145859 2016-02-19 13:33:03Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               cmake 1.0
6
7name                    gl2ps
8version                 1.3.9
9revision                1
10categories              graphics print
11platforms               darwin
12maintainers             nomaintainer
13license                 {LGPL Copyleft}
14
15description             an OpenGL to PostScript printing library
16
17long_description        GL2PS is a C library providing high quality vector \
18                        output for any OpenGL application. The main difference \
19                        between GL2PS and other similar libraries is the use of \
20                        sorting algorithms capable of handling intersecting and \
21                        stretched polygons, as well as non manifold objects. \
22                        GL2PS provides advanced smooth shading and text \
23                        rendering, culling of invisible primitives, mixed \
24                        vector/bitmap output, and much more...
25
26homepage                http://geuz.org/gl2ps/
27master_sites            ${homepage}src/
28extract.suffix          .tgz
29
30checksums               rmd160  b606dc82858c0d3d59435386c6588907e47c9635 \
31                        sha256  8a680bff120df8bcd78afac276cdc38041fed617f2721bade01213362bcc3640
32
33depends_lib-append      port:zlib \
34                        port:libpng
35
36worksrcdir              ${name}-${version}-source
37
38# if CMakeLists.txt finds GLUT, it builds but does not install example programs
39#    it also links installed libraries with whichever glut it finds
40# if CMakeLists.txt finds LATEX, it builds and installs pdf documentation
41#    it also looks for the program tth to build but not install html documentation
42configure.args-append                        \
43    -DCMAKE_DISABLE_FIND_PACKAGE_GLUT=TRUE   \
44    -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE
45
46cmake.out_of_source     yes
47use_parallel_build      yes
48
49variant docs description {generate documentation} {
50    depends_build-append    \
51        port:texlive-latex  \
52        port:tth
53
54    configure.args-delete -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE
55    build.args-append html
56
57    post-destroot {
58        xinstall -m 644 \
59            ${cmake.build_dir}/gl2ps.html \
60            ${destroot}${prefix}/share/doc/gl2ps
61    }
62}
63
64livecheck.type          regex
65livecheck.url           [lindex ${master_sites} 0]
66livecheck.regex         ${name}-(\[0-9.\]+)\\.
Note: See TracBrowser for help on using the repository browser.