Ticket #60560: Portfile.diff

File Portfile.diff, 1.9 KB (added by jmroot (Joshua Root), 4 years ago)
  • databases/msodbcsql17/Portfile

    diff --git a/databases/msodbcsql17/Portfile b/databases/msodbcsql17/Portfile
    index e79d83ff422..ac5a1e83aeb 100644
    a b PortSystem 1.0 
    22
    33name                msodbcsql17
    44version             17.5.2.1
     5revision            1
    56categories          databases
    67platforms           darwin
    78supported_archs     x86_64
    master_sites https://download.microsoft.com/download/1/9/A/19AF548A-6DD3- 
    1819checksums           rmd160  e1b848a8e0b89448eaab0d38bf742ec940e2a3cf \
    1920                    sha256  4a2116b0469453b47da48171af7309e9bb829198ea2b3daf8856ac62c069896b \
    2021                    size    853645
    21                    
     22
     23depends_patch       port:bsdiff
    2224depends_run         port:unixODBC \
    2325                    port:openssl
    24                    
     26
    2527use_configure       no
    2628
    2729patch {
    2830    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/odbcinst.ini
     31    move ${worksrcpath}/lib/libmsodbcsql.17.dylib ${worksrcpath}/lib/libmsodbcsql.17.dylib.orig
     32    system -W ${worksrcpath} "bspatch lib/libmsodbcsql.17.dylib.orig lib/libmsodbcsql.17.dylib ${filespath}/libmsodbcsql.17.dylib.bdiff"
     33    delete ${worksrcpath}/lib/libmsodbcsql.17.dylib.orig
    2934}
    3035                   
    3136build {
    destroot { 
    4449    xinstall -m 644 -W ${worksrcpath}/share/doc/msodbcsql17 LICENSE.txt RELEASE_NOTES ${destroot}${prefix}/share/doc/msodbcsql17
    4550}
    4651
    47 notes "To make this work with SSL you need to create a symbolic link as follows: \n\
    48        sudo mkdir -p /usr/local/opt/openssl/ \n\
    49            sudo ln -s ${prefix}/lib /usr/local/opt/openssl/lib \n\n\
    50            This is because this port installs binaries meant to be used with Homebrew."
    51 
    5252post-activate {
    5353    system "odbcinst -u -d -n \"ODBC Driver 17 for SQL Server\""
    5454    system "odbcinst -i -d -f ${prefix}/share/msodbcsql17/resources/odbcinst.ini"