# -*- 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 75159 2011-01-17 02:00:53Z rmstonecipher@macports.org $

PortSystem          1.0

name                yorick-z
cvs.date            20100504
version             1.2.0.cvs${cvs.date}
revision            1
categories          science
platforms           darwin
maintainers         users.sourceforge.net:paumard
description         zlib, jpeg and png support for the Yorick language
long_description    This is a compiled add-on for yorick (an interpreted \
                    computer language specialized for numerical and \
                    scientific problems). Yorick-z adds support for zlib \
                    (the data compression system used by gzip), png (a \
                    lossless image compression format), and jpeg (a lossy \
                    image compression format).
homepage            http://maumae.net/yorick/doc/plugins.php

fetch.type          cvs
cvs.root            :pserver:anonymous@yorick.cvs.sourceforge.net:/cvsroot/yorick
cvs.module          ${name}
worksrcdir          ${name}

depends_lib         port:yorick \
                    port:zlib \
                    port:jpeg \
                    port:libpng

patchfiles          patch-configure

post-patch {
    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/configure
}

universal_variant   no

configure.pre_args
configure.args      --yorick=${prefix}/bin/yorick \
                    --no-avcodec
