Ticket #28696: dact-Portfile.diff

File dact-Portfile.diff, 2.3 KB (added by rmstonecipher@…, 14 years ago)
  • Portfile

    old new  
    33PortSystem      1.0
    44
    55name            dact
    6 version         0.8.41
     6version         0.8.42
    77categories      archivers
    88platforms       darwin
    99maintainers     nomaintainer
     
    1717homepage        http://www.rkeene.org/oss/dact/
    1818master_sites    http://www.rkeene.org/files/oss/dact/release/
    1919
    20 checksums       md5 f6b33e18e9680c08835e93f8673dea8d \
    21                 sha1 a87db20ae7bf4ffd1b5d37c7e3be70c84661e379 \
    22                 rmd160 015544501df128da869f837b64579de53028a163
    23 
    24 post-patch {
    25         # checking how to create shared objects... cant
    26         # configure: error: We are unable to make shared objects.
    27 
    28         reinplace "s/ -bind_at_load//" ${worksrcpath}/configure
    29 
    30         # Loadable objects are bundles on OS X
    31 
    32         reinplace "s/=\\.so/=\\.bundle/g" ${worksrcpath}/Makefile.in
    33         reinplace -E "s/\[\[:<:\]\]so\[\[:>:\]\]/bundle/g" \
    34         ${worksrcpath}/Makefile.in \
    35         ${worksrcpath}/Makefile.dep
    36         reinplace -E "/AS_MODULE/s/(SHOBJLDFLAGS)/\\1:dynamiclib=bundle/" \
    37         ${worksrcpath}/Makefile.in
    38         reinplace -E "/for/s/\\(MODS\\)/(ALGO:.c=.bundle)/" ${worksrcpath}/Makefile.in
    39 
    40         # ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
    41         # module_shr.o definition of common _modules (size 1024)
    42         # net_shr.o definition of common _dact_urls (size 3072)
    43         # ui_shr.o definition of common _dact_ui_statusvar (size 128)
    44 
    45         reinplace -E "s/^(void)/static \\1/" ${worksrcpath}/module.c
    46         reinplace -E "/^extern void/d" ${worksrcpath}/module.h
    47         reinplace -E "s/^(struct.*;)\$/static \\1/" ${worksrcpath}/net.c
    48         reinplace -E "s/^(char.*;)\$/static \\1/" ${worksrcpath}/ui.c
    49 }
     20checksums           md5     60d6ea03a08d14108ee155d2fbf1eadc \
     21                    sha1    f0ff1ff8a3eae9e15eeb3c9b567c7cd7f829eaac \
     22                    rmd160  2f79cb5a1baa64767253b499b6f0121c8f5a3857
    5023
    5124depends_lib     port:libmcrypt \
    5225                port:zlib \
    5326                port:bzip2 \
    54                 port:lzo
     27                port:lzo2
    5528
    5629configure.args  --mandir=${prefix}/share/man \
    5730                --disable-chkvers
     
    7346
    7447livecheck.type  regex
    7548livecheck.url   ${homepage}
    76 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
     49livecheck.regex Version\:</b> (\\d+(?:\\.\\d+)*)