# -*- 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
# $Id: Portfile 116771 2014-02-06 20:25:08Z macsforever2000@macports.org $

PortSystem          1.0
PortGroup           cmake 1.0

fetch.type          svn
fetch.user          gmsh
fetch.password      gmsh
svn.url             https://geuz.org/svn/gmsh/trunk
svn.revision        16565
svn.method          export
svn.post_args       --username ${fetch.user} --password ${fetch.password}

name                gmsh-devel
version             2.8.2-svn-${svn.revision}
revision            1
categories          science
platforms           darwin
license             GPL-2+
maintainers         nomaintainer
description         Finite element mesh generator in 1D, 2D and 3D
long_description    \
        Gmsh is an automatic 3D finite element mesh generator (primarily   \
        Delaunay) with build-in CAD and post-processing facilities. Its     \
        design goal is to provide a simple meshing tool for academic test   \
        cases with parametric input and up to date visualization            \
        capabilities.

homepage            http://www.geuz.org/gmsh/
worksrcdir          trunk
conflicts           gmsh

# TODO: Fix these missing includes in the appropriate files
configure.cxxflags-append -include /usr/include/stdlib.h

configure.args-append \
    -DENABLE_OS_SPECIFIC_INSTALL=OFF \
    -DENABLE_NATIVE_FILE_CHOOSER=OFF \
    -DENABLE_OCC=OFF \
    -DENABLE_FLTK=ON \
    -DENABLE_GRAPHICS=ON \
    -DENABLE_APP_BUNDLE=OFF \
    -DENABLE_METIS=OFF \
    -DENABLE_TAUCS=OFF

depends_lib  \
    port:mesa \
    port:libpng \
    path:lib/libfltk.dylib:fltk \
    port:jpeg \
    port:zlib \
    port:texinfo
