Ticket #17598: unrar.diff

File unrar.diff, 1.2 KB (added by meissnem@…, 16 years ago)
  • (a) /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/unrar/Portfile vs. (b) unrar-portfile.new

    a b  
    2626
    2727worksrcdir      ${name}
    2828
    29 # configure.universal_ldflags-append  -isysroot ${sysroot}
    30 configure.universal_ldflags-append  -isysroot /Developer/SDKs/MacOSX10.4u.sdk
     29use_configure no
    3130
    32 configure {
    33     reinplace -E "/^CXXFLAGS/s|\$| [join ${configure.cflags}]\\\n\
    34                 LDFLAGS=[join ${configure.ldflags}]|" \
    35         ${worksrcpath}/makefile.unix
     31set CXXFLAGS        ${configure.cxxflags}
     32set LDFLAGS         ${configure.ldflags}
     33if {[variant_isset universal]} {
     34    set CXXFLAGS    "${CXXFLAGS} ${configure.universal_cxxflags}"
     35    set LDFLAGS     "${LDFLAGS} ${configure.universal_ldflags}"
    3636}
    3737
     38build.env-append CXXFLAGS="${CXXFLAGS}"
     39build.env-append LDFLAGS="${LDFLAGS}"
    3840build.args      -f makefile.unix
    3941
    4042use_parallel_build  yes
     
    4749        xinstall -m 0644 ${worksrcpath}/license.txt ${destroot}${docdir}
    4850}
    4951
     52variant universal {}
     53
    5054livecheck.check regex
    5155livecheck.url   ${master_sites}?C=M&O=D
    5256livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)