PortSystem 1.0 name msodbcsql version 13.1.9.2 revision 1 epoch 1 categories databases platforms {darwin any} supported_archs x86_64 maintainers {jann @roederja} openmaintainer license Restrictive description ODBC Driver for Microsoft(R) SQL Server(R). long_description ODBC Driver for Microsoft(R) SQL Server(R). homepage https://msdn.microsoft.com/en-us/library/mt654048(v=sql.1).aspx master_sites https://download.microsoft.com/download/4/9/5/495639C0-79E4-45A7-B65A-B264071C3D9A/ checksums rmd160 c3f5763dda0e8b6b65fe79a043906be1c504afd1 \ sha256 06f4f45bbf16438d681227c6eeada89cbf03a78c61338bdc5eda51ab0e314e5d \ size 906899 depends_run port:unixODBC \ port:openssl10 use_configure no patch { reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/odbcinst.ini } build { system "install_name_tool -change /usr/local/lib/libodbcinst.2.dylib ${prefix}/lib/libodbcinst.2.dylib ${worksrcpath}/lib/libmsodbcsql.13.dylib" system "install_name_tool -change /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib ${prefix}/lib/openssl-1.0/libcrypto.1.0.0.dylib ${worksrcpath}/lib/libmsodbcsql.13.dylib" system "install_name_tool -change /usr/local/opt/openssl/lib/libssl.1.0.0.dylib ${prefix}/lib/openssl-1.0/libssl.1.0.0.dylib ${worksrcpath}/lib/libmsodbcsql.13.dylib" system "install_name_tool -id ${prefix}/lib/libmsodbcsql.13.dylib ${worksrcpath}/lib/libmsodbcsql.13.dylib" } destroot { xinstall -m 444 ${worksrcpath}/lib/libmsodbcsql.13.dylib ${destroot}${prefix}/lib/libmsodbcsql.13.dylib xinstall -d ${destroot}${prefix}/share/msodbcsql/resources/en_US xinstall -m 444 ${worksrcpath}/share/msodbcsql/resources/en_US/msodbcsqlr13.rll ${destroot}${prefix}/share/msodbcsql/resources/en_US/msodbcsqlr13.rll xinstall -m 644 ${worksrcpath}/odbcinst.ini ${destroot}${prefix}/share/msodbcsql/resources/odbcinst.ini xinstall -m 644 ${worksrcpath}/include/msodbcsql.h ${destroot}${prefix}/include/msodbcsql.h xinstall -d ${destroot}${prefix}/share/doc/msodbcsql xinstall -m 644 -W ${worksrcpath}/share/doc/msodbcsql LICENSE.txt RELEASE_NOTES ${destroot}${prefix}/share/doc/msodbcsql } post-activate { system "odbcinst -u -d -n \"ODBC Driver 13 for SQL Server\"" system "odbcinst -i -d -f ${prefix}/share/msodbcsql/resources/odbcinst.ini" } pre-deactivate { system "odbcinst -u -d -n \"ODBC Driver 13 for SQL Server\"" }