# -*- 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

name                    xgraph
version                 12.1
revision                2
categories              math x11
platforms               darwin
license                 BSD
maintainers             nomaintainer
description             VINT xgraph
long_description        xgraph provides interactive plotting and graphing
homepage                http://www.isi.edu/nsnam/xgraph
master_sites            http://www.isi.edu/nsnam/dist/
checksums               md5 c4cbfb3291a607dd274e7fb161b9056a

depends_lib             port:xorg-libX11 \
                        port:xorg-libsm

# http://www.blasted-heath.com/xg/
patchfiles              patch-64b.diff
patch.pre_args-replace  -p0 -p1

patchfiles-append       patch-getline.diff

universal_variant       no

configure.cc-append     [get_canonical_archflags cc]

post-destroot           {
    move ${destroot}${prefix}/man/manm/xgraph.man \
        ${destroot}${prefix}/share/man/man1/xgraph.1
}
