Install openssl with brew install openssl
Per https://solitum.net/openssl-os-x-el-capitan-and-brew/:
$ cd /usr/local/include
$ ln -s ../opt/openssl/include/openssl .
$ cd /usr/local/lib
$ $ for i in ../opt/openssl/lib/lib*; do ln -vs $i .; done
Download and build globalplatform
:
./configure PCSCLITE_CFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/PCSC.framework/Headers
make
sudo make install
Download and build gppcscconnectionplugin:
./configure PCSCLITE_CFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/PCSC.framework/Headers GLOBALPLATFORM_CFLAGS=-I/Users/nickjohnson/Downloads/globalplatform-6.0.0/src/globalplatform GLOBALPLATFORM_LIBS=/usr/local/lib/libglobalplatform.dylib
make
sudo make install
Download and build gpshell:
./configure PCSCLITE_CFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/PCSC.framework/Headers GLOBALPLATFORM_CFLAGS=-I/Users/nickjohnson/Downloads/globalplatform-6.0.0/src/globalplatform GLOBALPLATFORM_LIBS=/usr/local/lib/libglobalplatform.dylib
make
sudo make install