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

name                    opendx-samples
version                 4.4.0
revision                2
categories              science
license                 IBMPL-1
maintainers             nomaintainer
platforms               any
supported_archs         noarch

description             IBM's Open Visualization Data Explorer (Data Samples)
long_description        OpenDX is a uniquely powerful, full-featured software   \
                        package for the visualization of scientific,        \
                        engineering and analytical data: Its open system design \
                        is built on familiar standard interface environments.   \
                        And its sophisticated data model provides users with    \
                        great flexibility in creating visualizations.

#homepage                http://opendx.org
#master_sites           http://opendx.informatics.jax.org/source/
homepage                http://web.archive.org/web/20180102225501/http://www.opendx.org/
master_sites            macports_distfiles

deprecated.upstream_support \
                        no

checksums               rmd160  3d5f09c48452374ec25099bd7a894859fe34fba9 \
                        sha256  ec2277facc8cf0f095a7fc4cb58391e053d5fd26c90d4711c927d2897dc455d9 \
                        size    7791659

distname                dxsamples-${version}

depends_lib             port:opendx

# avoid mtree violations
configure.pre_args-replace \
                        --prefix=${prefix} \
                        --prefix=${prefix}/libexec/opendx

configure.env           JAVAC=/usr/bin/javac
post-extract {
    set fixers [ exec find ${worksrcpath} -type f | xargs grep -l /usr/lpp ]
    foreach fil ${fixers} {
        reinplace "s|/usr/lpp|${prefix}|g" ${fil}
    }
}