Ticket #38562: Portfile.diff

File Portfile.diff, 1.5 KB (added by andremm@…, 11 years ago)
  • ports/devel/lpeg/Portfile

    old new  
    44PortSystem          1.0
    55
    66name                lpeg
    7 version             0.10.2
     7version             0.11
    88categories          devel
    99platforms           darwin
    1010maintainers         gmail.com:andremm
     
    1717homepage            http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html
    1818master_sites        http://www.inf.puc-rio.br/~roberto/lpeg/
    1919
    20 checksums           sha1    f2cd5857efb6e1bb02dfb9fbd68e74a451467462 \
    21                     rmd160  77dc2f7ca88ac84e6f185cf6077aaf88a130c3af
     20checksums           sha1    b8a30adc05d056cd025690ff51797667026c2add \
     21                    rmd160  b64e4aa32cef4c6143c9a48c84b3d74e858e3dd4
    2222
    2323depends_build       port:pkgconfig
    2424
    2525depends_lib         port:lua
    2626
    2727patchfiles          patch-makefile.diff
     28post-patch {
     29    reinplace "s|@@PREFIX@@|${prefix}|"               ${worksrcpath}/makefile
     30    reinplace "s|@@COMPILER@@|${configure.compiler}|" ${worksrcpath}/makefile
     31}
    2832
    2933use_configure       no
    3034
    3135variant universal {}
    3236
    33 build.target
    34 build.args          CC="${configure.cc} [get_canonical_archflags]" \
    35                     LUADIR=${prefix}/include
     37build.env-append    CFLAGS="${configure.cflags}" \
     38                    LDFLAGS="${configure.ldflags} -llua -lm"G
     39
     40build.target        lpeg.so
    3641
    3742destroot {
    3843    set lua_cmod [exec ${prefix}/bin/pkg-config lua --variable INSTALL_CMOD]