Ticket #32123: Portfile.diff

File Portfile.diff, 1.0 KB (added by ranauei@…, 12 years ago)

Strips inline if clang is the compiler and modernized checksums

  • Portfile

    old new  
    33PortSystem 1.0
    44name            bwm-ng
    55version         0.6
     6revision        1
    67categories      net
    78maintainers     nomaintainer
    89description     A small and simple bandwidth monitor
     
    1516platforms       darwin
    1617
    1718master_sites    ${homepage}/bwm-ng
    18 checksums       md5 d3a02484fb7946371bfb4e10927cebfb
     19checksums       sha256 c1134358e268329d438b0996399003b0f0b966034fb4b5b138761c2f3c62ffdd \
     20                rmd160 d50ea7883a5aaf0fe8e670f1b7386ee9d9de5768
     21
    1922configure.args  --with-ncurses=${prefix}/include
    2023depends_lib     port:ncurses
     24post-patch {
     25    if {${configure.compiler} == "clang"} {
     26        reinplace "s|inline||g" ${worksrcpath}/src/bwm-ng.c \
     27                                ${worksrcpath}/src/help.c \
     28                                ${worksrcpath}/src/options.c \
     29                                ${worksrcpath}/src/output.c \
     30                                ${worksrcpath}/src/process.c \
     31                                ${worksrcpath}/src/input/retrieve.c \
     32                                ${worksrcpath}/src/input/retrieve.h
     33    }
     34}