Skip to content

Commit

Permalink
a possible fix for apple silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper Boon committed Sep 6, 2024
1 parent 4f15036 commit 4079562
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 27 deletions.
24 changes: 0 additions & 24 deletions debian/control

This file was deleted.

21 changes: 18 additions & 3 deletions macos/macpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ MOSLINE=`grep 'SOFTWARE LICENSE AGREEMENT FOR ' '/System/Library/CoreServices/Se
# pre Sierra : MOSNAME=`echo ${MOSLINE} | awk -F 'OS X ' '{print $NF}' | tr -d '\\' | tr ' ' '_'`
MOSNAME=`echo ${MOSLINE} | awk -F 'macOS ' '{print $NF}' | tr -d '\\' | tr ' ' '_'`

if [ "$1" = "true" ] ; then
BASEDIR=usr
HOMEBREW=$1

if [ "$HOMEBREW" = "true" ] ; then
# It's HOMEBREW
if [ `uname -m` = "x86_64" ] ; then
BASEDIR=usr
else
BASEDIR=/opt/homebrew
fi
else
BASEDIR=opt
fi
Expand Down Expand Up @@ -106,7 +113,15 @@ if [ "$FC" = "ifort" ] ; then
LIBS2="${LIBS2} libifport.dylib"
fi
else
PATH2=/${BASEDIR}/local/
if [ "$HOMEBREW" = "true" ] ; then
if [ `uname -m` = "x86_64" ] ; then
PATH2=/${BASEDIR}/local/
else
PATH2=/${BASEDIR}/opt/
fi
else
PATH2=/${BASEDIR}/local/
fi
PATH3=/usr/local/
LIBS2="libgfortran.5.dylib"
fi
Expand Down

0 comments on commit 4079562

Please sign in to comment.