Ticket #14268: Portfile

File Portfile, 2.3 KB (added by raphael@…, 16 years ago)
Line 
1# $Id:$
2
3PortSystem          1.0
4
5name                geomview
6version             1.9.4
7categories          science graphics x11
8maintainers         raphael@ira.uka.de
9description         interactive 3D viewing program
10long_description    Geomview is an interactive 3D viewing program for Unix. \
11                    It lets you view and manipulate 3D objects: you use the \
12                    mouse to rotate, translate, zoom in and out, etc. It \
13                    can be used as a standalone viewer for static objects \
14                    or as a display engine for other programs which produce \
15                    dynamically changing geometry. It can display objects \
16                    described in a variety of file formats. It comes with a \
17                    wide selection of example objects, and you can create \
18                    your own objects too.
19homepage            http://www.geomview.org/
20platforms           darwin
21master_sites        sourceforge
22checksums           md5 29c7e6d678af7b9968980f92954419bb \
23                    sha1 b5e04dfee5cef46655766c2456199905832cd45c \
24                    rmd160 adf7c8ba745db9ff003e3ed74089379b2a72c712
25patchfiles          patch-iobuffer.c.diff \
26                    patch-geomview.texi.diff \
27                    patch-geomview-pt_BR.texi.diff
28
29post-extract {      delete ${worksrcpath}/doc/geomview.html
30                    delete ${worksrcpath}/doc/geomview-pt_BR.html
31}
32
33configure.args      --with-opengl=${x11prefix} \
34                    --with-htmlbrowser=open \
35                    --with-pdfviewer=open
36depends_lib         port:openmotif \
37                    port:zlib \
38                    lib:libX11.6:XFree86
39depends_build       path:${prefix}/bin/tex:texlive \
40                    port:texinfo
41
42platform darwin 9 {
43    configure.ldflags-append    -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
44                                /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
45}
46
47variant no_zlib description {do not use zlib} {
48    configure.args-append       --without-zlib
49    depends_lib-delete          port:zlib
50}
51
52variant no_opengl description {do not use OpenGL} {
53    configure.args-append       --without-opengl
54    configure.args-delete       --with-opengl=${x11prefix}
55}