diff --git a/databases/msodbcsql17/Portfile b/databases/msodbcsql17/Portfile
index e79d83ff422..ac5a1e83aeb 100644
a
|
b
|
PortSystem 1.0 |
2 | 2 | |
3 | 3 | name msodbcsql17 |
4 | 4 | version 17.5.2.1 |
| 5 | revision 1 |
5 | 6 | categories databases |
6 | 7 | platforms darwin |
7 | 8 | supported_archs x86_64 |
… |
… |
master_sites https://download.microsoft.com/download/1/9/A/19AF548A-6DD3- |
18 | 19 | checksums rmd160 e1b848a8e0b89448eaab0d38bf742ec940e2a3cf \ |
19 | 20 | sha256 4a2116b0469453b47da48171af7309e9bb829198ea2b3daf8856ac62c069896b \ |
20 | 21 | size 853645 |
21 | | |
| 22 | |
| 23 | depends_patch port:bsdiff |
22 | 24 | depends_run port:unixODBC \ |
23 | 25 | port:openssl |
24 | | |
| 26 | |
25 | 27 | use_configure no |
26 | 28 | |
27 | 29 | patch { |
28 | 30 | 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 |
29 | 34 | } |
30 | 35 | |
31 | 36 | build { |
… |
… |
destroot { |
44 | 49 | xinstall -m 644 -W ${worksrcpath}/share/doc/msodbcsql17 LICENSE.txt RELEASE_NOTES ${destroot}${prefix}/share/doc/msodbcsql17 |
45 | 50 | } |
46 | 51 | |
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 | | |
52 | 52 | post-activate { |
53 | 53 | system "odbcinst -u -d -n \"ODBC Driver 17 for SQL Server\"" |
54 | 54 | system "odbcinst -i -d -f ${prefix}/share/msodbcsql17/resources/odbcinst.ini" |