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$ |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | set uname yao |
---|
6 | name yorick-${uname} |
---|
7 | version 4.5.1 |
---|
8 | categories science |
---|
9 | maintainers users.sourceforge.net:paumard |
---|
10 | description A Yorick-based adaptive optics system simulator |
---|
11 | long_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. |
---|
15 | homepage http://maumae.net/yorick/doc/plugins.php |
---|
16 | platforms darwin |
---|
17 | |
---|
18 | depends_lib port:yorick port:fftw-3-single |
---|
19 | depends_run port:yorick-yutils port:yorick-imutil \ |
---|
20 | port:py26-gtk |
---|
21 | |
---|
22 | master_sites http://maumae.net/yorick/packages/src/ |
---|
23 | distname ${uname}-${version}-src |
---|
24 | extract.suffix .tgz |
---|
25 | checksums md5 6fbd060d7ef48d5c1993649a14052ae1 \ |
---|
26 | sha1 ff221e5cc0d9e070e2cd061e7593f37e5fe5a9f0 \ |
---|
27 | rmd160 275d323b5fc4b62e31871d8880706d5d4070372f |
---|
28 | worksrcdir ${name}-${version} |
---|
29 | |
---|
30 | configure { |
---|
31 | system "cd ${worksrcpath} && \ |
---|
32 | ${prefix}/bin/yorick -batch make.i" |
---|
33 | } |
---|
34 | |
---|
35 | build.args PKG_CFLAGS=-I${prefix}/include \ |
---|
36 | PKG_DEPLIBS="-L${prefix}/lib -lfftw3f -lm" |
---|
37 | |
---|
38 | post-build { |
---|
39 | system "cd ${worksrcpath}/doc && gzip -9 -c ${uname}.1 > ${uname}.1.gz" |
---|
40 | } |
---|
41 | |
---|
42 | post-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 | } |
---|