Ticket #21102: freetds.patch

File freetds.patch, 990 bytes (added by meissnem@…, 15 years ago)
  • Portfile

    old new  
    5959        ${worksrcpath}/src/tds/unittests/Makefile.in
    6060}
    6161
     62post-configure {
     63        if {[variant_isset universal]} {
     64            reinplace "s|-dynamiclib)|-dynamiclib) ${configure.ldflags} ${configure.universal_ldflags}|g" ${worksrcpath}/libtool
     65        } else {
     66            reinplace "s|-dynamiclib)|-dynamiclib) ${configure.ldflags}|" ${worksrcpath}/libtool
     67        }
     68}
     69
    6270post-activate {
    6371    # copy over freetds sample files if none exists
    6472    ui_msg "\n****************************************************************"
     
    8997    }
    9098}
    9199
     100platform darwin 10 {
     101    pre-build {
     102        system "cp /usr/bin/glibtool ${worksrcpath}/libtool"
     103        reinplace "s|\"gcc\"|\"${configure.cc}\"|" ${worksrcpath}/libtool
     104    }
     105}
     106
    92107variant mssql description {Use MS style dblib} {
    93108       configure.args-append --enable-msdblib --with-tdsver=8.0
    94109}