Ticket #33986: Portfile

File Portfile, 1.8 KB (added by christophe.prudhomme@…, 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                gmsh
8version             2.5.1~beta2~svn11845
9categories          science
10platforms           darwin
11maintainers         ujf-grenoble.fr:Christophe.Prudhomme
12description         Finite element mesh generator in 1D, 2D and 3D
13long_description    \
14        Gmsh is an automatic 3D finite element mesh generator (primarily   \
15        Delaunay) with build-in CAD and post-processing facilities. Its     \
16        design goal is to provide a simple meshing tool for academic test   \
17        cases with parametric input and up to date visualization            \
18        capabilities.
19
20homepage            http://www.geuz.org/gmsh/
21master_sites        http://ftp.de.debian.org/debian/pool/main/g/gmsh/
22#distname            gmsh-nightly-source
23distname            gmsh_2.5.1~beta2~svn11845~dfsg.orig
24extract.suffix      .tar.xz
25worksrcdir          gmsh-2.5.1~beta2~svn11845~dfsg
26
27checksums           \
28                          sha1    b1d005841ed72a30ccf5077bdd79f289f87dd261\
29                          rmd160 9ef320a0e737060982c3fcdc40fdfeaae2a0c1c1
30
31extract.cmd   xz
32
33# https://trac.macports.org/ticket/33925
34if {${configure.compiler} == "clang"} {
35    configure.compiler llvm-gcc-4.2
36}
37
38configure.args-append \
39    -DENABLE_NATIVE_FILE_CHOOSER:BOOL=OFF\
40    -DENABLE_OCC:BOOL=OFF \
41    -DENABLE_FLTK:BOOL=ON\
42    -DENABLE_GRAPHICS:BOOL=ON\
43    -DENABLE_APP_BUNDLE=OFF \
44    -DENABLE_METIS=OFF \
45    -DENABLE_TAUCS=OFF
46
47post-build {
48    # lib and shared targets are not handled by default target
49    system "cd ${worksrcpath} && make lib shared"
50}
51
52depends_lib  \
53    port:mesa \
54    port:libpng \
55    port:fltk-devel\
56    port:jpeg \
57    port:zlib \
58    port:texinfo