Ticket #26469: Portfile.2

File Portfile.2, 2.1 KB (added by christophe.prudhomme@…, 14 years ago)

Portfile for gmsh 2.5.0

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
3# $Id$
4
5PortSystem          1.0
6PortGroup           cmake 1.0
7
8name                  gmsh
9version               2.5.0
10categories           science
11platforms            macosx darwin freebsd
12maintainers         ujf-grenoble.fr:Christophe.Prudhomme
13description         Finite element mesh generator in 1D, 2D and 3D
14long_description    \
15        Gmsh is an automatic 3D finite element mesh generator (primarily   \
16        Delaunay) with build-in CAD and post-processing facilities. Its     \
17        design goal is to provide a simple meshing tool for academic test   \
18        cases with parametric input and up to date visualization            \
19        capabilities.
20
21homepage            http://www.geuz.org/gmsh/
22master_sites         http://www.geuz.org/gmsh/src/
23distfiles               gmsh-2.5.0-source.tgz
24
25checksums           \
26                          sha1    b541fd9f1aadf1df7bf6fdd97a68ca41966ffeb6 \
27                          rmd160  49ab2054d546e4549250119cec0453cd1cdfffef
28
29patchfiles          patch-cmakelists.diff
30
31worksrcdir      ${name}-${version}-source
32#configure      { system "mkdir -p ${worksrcpath} && cd ${worksrcpath} && cmake ${configure.args} ../" }
33
34configure.args-append \
35    -DENABLE_NATIVE_FILE_CHOOSER:BOOL=OFF\
36    -DENABLE_OCC:BOOL=OFF \
37    -DENABLE_FLTK:BOOL=ON\
38    -DENABLE_GRAPHICS:BOOL=ON
39
40#    -DENABLE_CGNS:BOOL=ON
41#    -DENABLE_MPI:BOOL=ON\
42#    -DMPI_COMPILER=/opt/local/lib/openmpi/bin/mpic++\
43#    -DMPI_LIBRARY="MPI_LIBRARY-NOTFOUND"\
44
45#configure.args         \
46#        -DCMAKE_INSTALL_PREFIX=/opt/local \
47#        -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON \
48#        -DENABLE_NATIVE_FILE_CHOOSER:BOOL=OFF\
49#        -DENABLE_OCC:BOOL=OFF \
50#        -DENABLE_FLTK:BOOL=OFF\
51#        -DENABLE_GRAPHICS:BOOL=ON\
52#        -DENABLE_CGNS:BOOL=ON
53
54post-build {
55# lib and shared targets are not handled by default target
56    system "cd ${worksrcpath} && make lib shared"
57}
58
59depends_lib  \
60    port:mesa \
61    port:libpng \
62    port:fltk-devel\
63    port:jpeg \
64    port:zlib \
65    port:texinfo
66
67#    port:cgnslib
68
69
70