source: trunk/dports/math/ent/Portfile

Last change on this file was 103819, checked in by ryandesign@…, 4 years ago

ent: ensure we're UsingTheRightCompiler; use -arch flags; add universal variant; use MacPorts default optimization flags; use 'extract.mkdir yes' instead of reimplementing it; remove unnecessary directives

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 103819 2013-03-08 06:04:51Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                ent
6version             20080128
7categories          math security
8license             public-domain
9maintainers         nomaintainer
10description         Entropy calculator
11long_description \
12   ent applies various tests to sequences of bytes stored in files and \
13   reports the results of those tests.  The program is useful for those \
14   evaluating pseudorandom number generators for encryption and statistical \
15   sampling applications, compression algorithms, and other applications \
16   where the information density of a file is of interest.
17
18platforms           darwin
19
20homepage            http://www.fourmilab.ch/random/
21master_sites        ${homepage}
22distname            random
23dist_subdir         ${name}/${version}
24use_zip             yes
25extract.mkdir       yes
26
27checksums           md5     8104a83af1ea5b280da96c92da18eae4 \
28                    sha1    0f2f12dc67d1f02f77776709cf5fc5eee1d1b2e2 \
29                    rmd160  b21b8401fdbd2aac189fe4a442a1164b172407f8
30
31variant universal {}
32
33post-patch {
34    reinplace "s|^CFLAGS = |CFLAGS = ${configure.cflags} [get_canonical_archflags cc] |" ${worksrcpath}/Makefile
35}
36
37use_configure       no
38
39build.args          CC=${configure.cc}
40
41build.target        ent
42
43destroot {
44   xinstall -m 755 -W ${worksrcpath} ent ${destroot}${prefix}/bin
45   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
46   xinstall -m 644 -W ${worksrcpath} ent.html entitle.gif \
47      ${destroot}${prefix}/share/doc/${name}
48}
49
50livecheck.type      none
51
Note: See TracBrowser for help on using the repository browser.