Merge pull request #764 from frankmorgner/towards-opensc-0.16.0
Fix OS X installation
This commit is contained in:
commit
ebefd29560
@ -15,17 +15,30 @@ SDKS_PATH="$(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs"
|
||||
SDK_PATH="${SDK_PATH:-$SDKS_PATH/$(ls -1 ${SDKS_PATH} | sort -n -k2 -t. -r | head -1)}"
|
||||
|
||||
# Set SDK path
|
||||
export CFLAGS="$CFLAGS -isysroot $SDK_PATH -arch i386 -arch x86_64 -mmacosx-version-min=10.10"
|
||||
|
||||
# OpenSSL is deprecated on OSX since 10.7 and that generates lots of
|
||||
# "false positive" warnings and there is no alternative option.
|
||||
# Just ignore these warning for now by silencing them.
|
||||
CFLAGS="$CFLAGS -Wno-deprecated-declarations"
|
||||
export CFLAGS="$CFLAGS -isysroot $SDK_PATH -arch x86_64 -mmacosx-version-min=10.10"
|
||||
|
||||
export SED=/usr/bin/sed
|
||||
PREFIX=/Library/OpenSC
|
||||
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
|
||||
|
||||
if ! pkg-config libcrypto --atleast-version=1.0.1; then
|
||||
# OpenSSL is not installed
|
||||
if ! test -e $BUILDPATH/openssl_bin/lib/pkgconfig; then
|
||||
# Build OpenSSL manually, because Apple's binaries are deprecated
|
||||
if ! test -e openssl; then
|
||||
git clone --depth=1 https://github.com/openssl/openssl.git -b OpenSSL_1_0_2-stable
|
||||
fi
|
||||
cd openssl
|
||||
KERNEL_BITS=64 ./config --prefix=$PREFIX -mmacosx-version-min=10.10
|
||||
make clean update depend
|
||||
make
|
||||
make INSTALL_PREFIX=$BUILDPATH/openssl_bin install_sw
|
||||
cd ..
|
||||
fi
|
||||
export OPENSSL_CFLAGS="`env PKG_CONFIG_PATH=$BUILDPATH/openssl_bin/$PREFIX/lib/pkgconfig PKG_CONFIG_SYSROOT_DIR=$BUILDPATH/openssl_bin pkg-config --static --cflags libcrypto`"
|
||||
export OPENSSL_LIBS="` env PKG_CONFIG_PATH=$BUILDPATH/openssl_bin/$PREFIX/lib/pkgconfig PKG_CONFIG_SYSROOT_DIR=$BUILDPATH/openssl_bin pkg-config --static --libs libcrypto`"
|
||||
fi
|
||||
|
||||
./configure --prefix=$PREFIX \
|
||||
--sysconfdir=$PREFIX/etc \
|
||||
--disable-dependency-tracking \
|
||||
|
@ -17,10 +17,10 @@
|
||||
|
||||
<p>OpenSC provides a set of libraries and utilities to work with smart cards. Its main focus is on cards that support cryptographic operations, and facilitate their use in security applications such as authentication, mail encryption and digital signatures.</p>
|
||||
|
||||
<p>OpenSC implements the <a href="http://www.rsa.com/rsalabs/node.asp?id=2133">PKCS#11 API</a> so applications supporting this API (such as Mozilla Firefox and Thunderbird) can use it. On the card OpenSC implements the <a href="http://www.rsa.com/rsalabs/node.asp?id=2141">PKCS#15</a> standard and aims to be compatible with every software/card that does so, too.</p>
|
||||
<p>OpenSC implements the <a href="https://www.oasis-open.org/committees/pkcs11/">PKCS#11 API</a> so applications supporting this API (such as Mozilla Firefox and Thunderbird) can use it. On the card OpenSC implements the <a href="http://www.emc.com/emc-plus/rsa-labs/standards-initiatives/pkcs-15-cryptographic-token-information-format.htm">PKCS#15</a> standard and aims to be compatible with every software/card that does so, too.</p>
|
||||
|
||||
<h2>Documentation:</h2>
|
||||
<p>The OpenSC Wiki is available at: <a href="http://www.opensc-project.org/opensc">http://www.opensc-project.org/opensc</a> and should be consulted for further documentation and support.</p>
|
||||
<p>The OpenSC Wiki is available at: <a href="https://github.com/OpenSC/OpenSC/wiki">https://github.com/OpenSC/OpenSC/wiki</a> and should be consulted for further documentation and support.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -549,10 +549,6 @@ if test "${enable_sm}" = "yes"; then
|
||||
*-mingw*|*-winnt*|*-cygwin*)
|
||||
DEFAULT_SM_MODULE_PATH="\# module_path = \"\";"
|
||||
;;
|
||||
*-apple-*)
|
||||
DEFAULT_SM_MODULE="libsmm-local.dylib"
|
||||
DEFAULT_SM_MODULE_PATH="module_path = \$(libdir);"
|
||||
;;
|
||||
*)
|
||||
DEFAULT_SM_MODULE="libsmm-local.so"
|
||||
DEFAULT_SM_MODULE_PATH="module_path = \$(libdir);"
|
||||
@ -635,11 +631,6 @@ case "${host}" in
|
||||
LIBDIR=""
|
||||
LIB_PRE=""
|
||||
;;
|
||||
*-apple-*)
|
||||
DYN_LIB_EXT=".dylib"
|
||||
LIBDIR="\$(libdir)/"
|
||||
LIB_PRE="lib"
|
||||
;;
|
||||
*)
|
||||
DYN_LIB_EXT=".so"
|
||||
LIBDIR="\$(libdir)/"
|
||||
|
Loading…
Reference in New Issue
Block a user