Ticket #34286: Portfile

File Portfile, 1.7 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
7fetch.type          svn
8fetch.user          gmsh
9fetch.password      gmsh
10svn.url             https://geuz.org/svn/gmsh/trunk
11svn.revision        11960
12svn.method          export
13svn.post_args       --username ${fetch.user} --password ${fetch.password}
14
15name                gmsh-devel
16version             2.5.1-svn-${svn.revision}
17categories          science
18platforms           darwin
19maintainers         ujf-grenoble.fr:Christophe.Prudhomme
20description         Finite element mesh generator in 1D, 2D and 3D
21long_description    \
22        Gmsh is an automatic 3D finite element mesh generator (primarily   \
23        Delaunay) with build-in CAD and post-processing facilities. Its     \
24        design goal is to provide a simple meshing tool for academic test   \
25        cases with parametric input and up to date visualization            \
26        capabilities.
27
28homepage            http://www.geuz.org/gmsh/
29worksrcdir          trunk
30conflicts           gmsh
31
32# https://trac.macports.org/ticket/33925
33if {${configure.compiler} == "clang"} {
34    configure.compiler llvm-gcc-4.2
35}
36
37configure.args-append \
38    -DENABLE_NATIVE_FILE_CHOOSER:BOOL=OFF\
39    -DENABLE_OCC:BOOL=OFF \
40    -DENABLE_FLTK:BOOL=ON\
41    -DENABLE_GRAPHICS:BOOL=ON\
42    -DENABLE_APP_BUNDLE=OFF \
43    -DENABLE_METIS=OFF \
44    -DENABLE_TAUCS=OFF
45
46post-build {
47    # lib and shared targets are not handled by default target
48    system "cd ${worksrcpath} && make lib shared"
49}
50
51depends_lib  \
52    port:mesa \
53    port:libpng \
54    port:fltk-devel\
55    port:jpeg \
56    port:zlib \
57    port:texinfo