Changeset 103819


Ignore:
Timestamp:
Mar 8, 2013, 6:04:51 AM (7 years ago)
Author:
ryandesign@…
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/ent/Portfile

    r87583 r103819  
    22
    33PortSystem          1.0
     4
    45name                ent
    56version             20080128
     
    2223dist_subdir         ${name}/${version}
    2324use_zip             yes
    24 worksrcdir          ent
     25extract.mkdir       yes
    2526
    2627checksums           md5     8104a83af1ea5b280da96c92da18eae4 \
     
    2829                    rmd160  b21b8401fdbd2aac189fe4a442a1164b172407f8
    2930
    30 pre-extract {
    31    extract.post_args   "-d ${worksrcpath}"
    32 }
     31variant universal {}
    3332
    34 post-extract {
    35    reinplace "s|^CFLAGS = |CFLAGS = -O3 |" ${worksrcpath}/Makefile
     33post-patch {
     34    reinplace "s|^CFLAGS = |CFLAGS = ${configure.cflags} [get_canonical_archflags cc] |" ${worksrcpath}/Makefile
    3635}
    3736
    3837use_configure       no
    3938
     39build.args          CC=${configure.cc}
     40
    4041build.target        ent
    4142
    4243destroot {
    43    xinstall -m 755 -d ${destroot}${prefix}/bin \
    44       ${destroot}${prefix}/share/doc/${name}
    4544   xinstall -m 755 -W ${worksrcpath} ent ${destroot}${prefix}/bin
     45   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    4646   xinstall -m 644 -W ${worksrcpath} ent.html entitle.gif \
    4747      ${destroot}${prefix}/share/doc/${name}
    4848}
    4949
    50 universal_variant   no
    51 
    5250livecheck.type      none
    5351
Note: See TracChangeset for help on using the changeset viewer.