source: trunk/dports/math/xmfract/Portfile @ 76468

Last change on this file since 76468 was 76468, checked in by jmr@…, 7 years ago

xmfract: fix build, improve config file handling, update homepage, add license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 76468 2011-02-24 17:18:11Z jmr@macports.org $
2
3PortSystem 1.0
4
5name       xmfract
6version    1.4
7set release     1-4
8categories      math
9platforms       darwin
10license         GPL-2+
11maintainers     jmpp openmaintainer
12
13description     UNIX clone of the DOS baed Fractint
14long_description        X/Motif based UNIX clone of the DOS based Fractint program used in \
15                        the analysis of various fractal figures, created by Darryl House.
16
17homepage        http://www.Nahee.com/spanky/www/fractint/getting.html
18master_sites    http://www.Nahee.com/spanky/pub/fractals/programs/unix/
19distfiles       ${name}_${release}_tar.gz
20distname        ${name}_${version}
21checksums       md5 59cf6bf04fcfdfea06b5f4d903e1152e
22
23depends_lib     lib:libXm:openmotif
24
25patchfiles      patch-all-Makefile.in.diff patch-src_window_size.c.diff \
26            patch-xmfract.ini.diff
27post-patch {
28    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/xmfract.ini
29}
30
31configure.args  --x-includes=${prefix}/include \
32                --x-libraries=${prefix}/lib \
33                --with-editres
34
35post-destroot {
36             xinstall -m 644 -v -W ${worksrcpath} README Xmfract.ad xmfract.ini \
37             ${destroot}${prefix}/share/${name}
38             move ${destroot}${prefix}/share/xmfract/xmfract.ini \
39                  ${destroot}${prefix}/share/xmfract/xmfract.ini.default
40}
41
42post-activate {
43    if {![file exists ${prefix}/share/xmfract/xmfract.ini]} {
44        copy ${prefix}/share/xmfract/xmfract.ini.default \
45             ${prefix}/share/xmfract/xmfract.ini
46    }
47}
Note: See TracBrowser for help on using the repository browser.