MacOSX 10.5: Install libltdl.3.dylib if needed

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4703 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
jps 2010-09-09 09:18:18 +00:00
parent ffdad69bca
commit 8bb0ab634e
3 changed files with 10 additions and 0 deletions

BIN
MacOSX/10.5/libltdl.3.dylib Executable file

Binary file not shown.

View File

@ -21,4 +21,8 @@ for f in /Library/OpenSC/bin/*
do
ln -sf $f /usr/local/bin
done
if !([ -e "/usr/lib/libltdl.3.dylib" ])
then
cp /Library/OpenSC/lib/libltdl.3.dylib /usr/lib/libltdl.3.dylib
fi
exit 0

View File

@ -129,6 +129,12 @@ mv OpenSC.tokend/build/OpenSC.tokend target/System/Library/Security/tokend
mkdir -p target/usr/local/bin
cp MacOSX/opensc-uninstall target/usr/local/bin
# Copy libltdl.3.dylib, will be installed in /usr/lib by postflight script if needed
case ${OSX_RELEASE} in
"10.5")
cp MacOSX/10.5/libltdl.3.dylib target/Library/OpenSC/lib/
;;
# Build installer package
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker \
-r target \