Ticket #24793: Portfile

File Portfile, 2.0 KB (added by paumard, 14 years ago)
Line 
1# -*- 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
2# $Id$
3PortSystem          1.0
4
5set uname           yao
6name                yorick-${uname}
7version             4.5.1
8categories          science
9maintainers         users.sourceforge.net:paumard
10description         A Yorick-based adaptive optics system simulator
11long_description    Yao is a monte-carlo simulation package for adaptive \
12                    optics. It can be used stand-alone through a GTK-based \
13                    integrated graphical user interface or as a Yorick \
14                    language extension.
15homepage            http://maumae.net/yorick/doc/plugins.php
16platforms           darwin
17
18depends_lib         port:yorick port:fftw-3-single
19depends_run         port:yorick-yutils port:yorick-imutil \
20                    port:py26-gtk
21
22master_sites        http://maumae.net/yorick/packages/src/
23distname            ${uname}-${version}-src
24extract.suffix      .tgz
25checksums           md5 6fbd060d7ef48d5c1993649a14052ae1 \
26                    sha1 ff221e5cc0d9e070e2cd061e7593f37e5fe5a9f0 \
27                    rmd160 275d323b5fc4b62e31871d8880706d5d4070372f
28worksrcdir          ${name}-${version}
29
30configure           {
31                    system "cd ${worksrcpath} && \
32                            ${prefix}/bin/yorick -batch make.i"
33                    }
34
35build.args          PKG_CFLAGS=-I${prefix}/include \
36                    PKG_DEPLIBS="-L${prefix}/lib -lfftw3f -lm"
37
38post-build          {
39    system "cd ${worksrcpath}/doc && gzip -9 -c ${uname}.1 > ${uname}.1.gz"
40                    }
41
42post-destroot       {
43    xinstall -d ${destroot}${prefix}/lib/yorick/packages/installed/
44    xinstall ${worksrcpath}/${uname}.info \
45        ${destroot}${prefix}/lib/yorick/packages/installed/
46    xinstall ${worksrcpath}/doc/${uname}.1.gz \
47        ${destroot}${prefix}/share/man/man1/
48    ln -s ${prefix}/lib/yorick/bin/${uname} ${destroot}${prefix}/bin/
49                    }