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

set udate           20110402
github.setup        dhmunro yorick-z 1.2.0.git${udate} z_
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
fetch.type          git
git.branch          b5c6b217646704d82c86034ce648c4d7d408636c
revision            4

license             BSD
categories          science yorick
maintainers         {thibaut @paumard} openmaintainer
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

depends_lib         port:yorick \
                    port:zlib \
                    path:include/turbojpeg.h:libjpeg-turbo \
                    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
