Changeset 91066


Ignore:
Timestamp:
Mar 23, 2012, 12:50:17 PM (7 years ago)
Author:
jmr@…
Message:

psutils: better handling of cflags and destdir

Location:
trunk/dports/print/psutils
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/print/psutils/Portfile

    r80610 r91066  
    2424                rmd160 1494f37e7ae809f0e446d52d4b3a21cd48690cc0
    2525
     26depends_build   bin:perl:perl5
     27
    2628worksrcdir      ${name}
    2729
    28 patchfiles clang.patch
     30patchfiles clang.patch Makefile.unix.patch
    2931
    3032pre-configure   {
    3133        file rename ${worksrcpath}/Makefile.unix ${worksrcpath}/Makefile
    32         reinplace "s|/usr/local/bin/perl|perl|" "${worksrcpath}/Makefile"
    3334        reinplace "s|/usr/local|${prefix}|g" "${worksrcpath}/Makefile"
    3435}
     
    3637
    3738variant universal {}
    38 if {[variant_isset universal]} {
    39         set archflags ${configure.universal_cflags}
    40 } else {
    41         set archflags ${configure.cc_archflags}
    42 }
    43 build.args      CC="${configure.cc} ${archflags}"
    44 
    45 pre-destroot    {
    46         reinplace "s|${prefix}|${destroot}${prefix}|g" "${worksrcpath}/Makefile"
    47 }
     39build.args      CC="${configure.cc}" EXTRA_CFLAGS="${configure.cflags} [get_canonical_archflags]"
Note: See TracChangeset for help on using the changeset viewer.