Files

51 lines
1.8 KiB
Tcl

#-*- 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
PortSystem 1.0
PortGroup mpi 1.0
name gfsview
set snapshot 121130
version 0.4.2-20${snapshot}
categories science
license GPL-2+
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description graphical viewer for Gerris simulation files
long_description GfsView is a graphical viewer for Gerris simulation files.
homepage http://gfs.sourceforge.net/
distname ${name}-snapshot-${snapshot}
master_sites http://gerris.dalembert.upmc.fr/gerris/tarballs/
checksums rmd160 0eaa794d67f3f215283fc0c7b68cff16942bef55 \
sha256 60440319e506d78f7bb5ebf63383f541e30d5e99ad05ea175876fb346e0766d9 \
size 707424
depends_build port:pkgconfig
depends_lib port:gerris \
port:mesa \
path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
port:gtkglext \
port:ftgl \
port:startup-notification \
path:lib/pkgconfig/glib-2.0.pc:glib2
# avoid
# fatal error: 'gdk/x11/gdkglx.h' file not found
require_active_variants path:lib/pkgconfig/gtk+-2.0.pc:gtk2 x11
patchfiles dynamic_lookup-11.patch
pre-configure {
if {[mpi_variant_isset]} {
configure.args-append --enable-mpi \
--with-mpicc=${configure.cc}
} else {
configure.args-append --disable-mpi
}
}
mpi.enforce_variant gerris
livecheck.regex {gfsview-snapshot-(\d+(?:\.\d+)*)}
livecheck.version ${snapshot}