Ticket #29071: Portfile

File Portfile, 2.3 KB (added by tehfink, 13 years ago)
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$
3
4PortSystem              1.0
5PortGroup               cmake 1.0
6
7name                    gl2ps
8version                 1.3.5
9categories              graphics print
10license                 lgpl
11maintainers             nomaintainer@macports.org
12homepage                http://geuz.org/gl2ps
13platforms               darwin
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
26master_sites            ${homepage}
27
28checksums               md5     22e51ff57ecd35cb1cc22497a178a017 \
29                        sha1    cf2c5220662581f48ef59173c64f41dc47011c6b \
30                        rmd160  bced0f28d0912670ee09c847a47e87c6787e94c3
31
32depends_lib-append      port:zlib \
33                        port:libpng \
34                        port:ghostscript \
35
36master_sites            ${homepage}/src/
37
38distfiles               gl2ps-${version}.tgz
39
40extract.suffix          .tgz
41
42worksrcdir              ${name}-${version}-source
43
44
45configure.universal_args
46
47use_parallel_build      yes
48
49test.run                yes
50
51livecheck.type          none
52
53configure.args-append   -DZLIB_INCLUDE_DIR=${prefix}/include \
54                        -DZLIB_LIBRARY=${prefix}/lib/libz.dylib \
55                        -DPNG_LIBRARY=${prefix}/lib/libpng.dylib \
56                        -DPNG_INCLUDE_DIR=${prefix}/include
57
58variant bibtex description {Add BibTeX support} {
59    depends_lib-append port:bibtex2html
60    configure.args-append -DBIBTEX_COMPILER=${prefix}/lib/
61}
62
63variant latex description {Add LaTeX support} {
64    depends_lib-append port:latex2html
65    configure.args-append -DLATEX2HTML_CONVERTER=${prefix}/lib/
66}