Misc 'osxcross-macports' fixes

This commit is contained in:
Thomas Pöchtrager 2017-02-19 19:50:18 +01:00
parent 5702a9ab39
commit 6f603a9c0a

View File

@ -81,9 +81,8 @@ case $MACOSX_DEPLOYMENT_TARGET in
10.8* ) OSXVERSION="darwin_12" ;;
10.9* ) OSXVERSION="darwin_13" ;;
10.10* ) OSXVERSION="darwin_14" ;;
# "Downgrade" 10.11 to 10.10 until
# there are packages for 10.11
10.11* ) OSXVERSION="darwin_14" ;;
10.11* ) OSXVERSION="darwin_15" ;;
10.12* ) OSXVERSION="darwin_16" ;;
* ) unsupportedDepTarget ;;
esac
@ -307,7 +306,7 @@ installPkg()
LASTPKGNAME=$pkgname
if [ $(pkgInstalled $pkgname) -eq 1 ]; then
continue
return
fi
echo "searching package $pkgname ..."
@ -348,8 +347,8 @@ installPkg()
if [ -d opt/local ]; then
verboseMsg " fixing permissions ..."
find opt/local -type d -exec chmod 770 {} \;
find opt/local -type f -exec chmod 660 {} \;
find opt/local -type d -exec chmod 755 {} \;
find opt/local -type f -exec chmod 644 {} \;
if [ -d opt/local/lib ]; then
if [ -n "$STATIC" ]; then
verboseMsg " "
@ -359,6 +358,9 @@ installPkg()
find opt/local/lib -type f -name "*.dylib" -exec chmod +x {} \;
fi
fi
if [ -d opt/local/bin ]; then
find opt/local/bin -type f -exec chmod +x {} \;
fi
set +e
cp -r opt $INSTALL
local status=$?