--- a/mac/ExternalPrograms/scripts/SetEnv-leopard-OpenMP.txt
+++ b/mac/ExternalPrograms/scripts/SetEnv-leopard-OpenMP.txt
@@ -3,7 +3,8 @@
 
 
 # has to be the absolute path from /
-myREPOSITORYDIR="/PATH2HUGIN/mac/ExternalPrograms/repository";
+#myREPOSITORYDIR="/Users/Shared/development/hugin_related/ExternalPrograms/repository";
+myREPOSITORYDIR="/Users/Shared/development/hugin_related/ExternalPrograms/4way-repository/";
 
 # number of jobs that make can use, probably same as the number of CPUs.
 #PROCESSNUM=2
@@ -18,12 +19,12 @@
 
 export \
  REPOSITORYDIR="$myREPOSITORYDIR" \
- ARCHS="ppc i386" \
+ ARCHS="ppc i386 ppc64 x86_64" \
  \
  ppcTARGET="powerpc-apple-darwin9" \
  ppcOSVERSION="10.5" \
  ppcMACSDKDIR="/Developer/SDKs/MacOSX10.5.sdk" \
- ppcOPTIMIZE="-mtune=G5 -ftree-vectorize" \
+ ppcOPTIMIZE="-mcpu=G3 -mtune=G4 -ftree-vectorize" \
  ppcCC="gcc-4.2" \
  ppcCXX="g++-4.2" \
  \
@@ -34,6 +35,20 @@
  i386CC="gcc-4.2" \
  i386CXX="g++-4.2" \
  \
+ ppc64TARGET="powerpc64-apple-darwin9" \
+ ppc64OSVERSION="10.5" \
+ ppc64MACSDKDIR="/Developer/SDKs/MacOSX10.5.sdk" \
+ ppc64OPTIMIZE="-mcpu=G5 -mtune=G5 -ftree-vectorize" \
+ ppc64CC="gcc-4.2" \
+ ppc64CXX="g++-4.2" \
+ \
+ x64TARGET="x86_64-apple-darwin9" \
+ x64OSVERSION="10.5" \
+ x64MACSDKDIR="/Developer/SDKs/MacOSX10.5.sdk" \
+ x64OPTIMIZE="-march=core2 -mtune=core2 -ftree-vectorize" \
+ x64CC="gcc-4.2" \
+ x64CXX="g++-4.2" \
+ \
  OTHERARGs="" \
  OTHERMAKEARGs="--jobs=$PROCESSNUM";
 
@@ -42,6 +57,8 @@
 export \
  ppcONLYARG="$ppcOPTIMIZE -mmacosx-version-min=$ppcOSVERSION" \
  i386ONLYARG="$i386OPTIMIZE -mmacosx-version-min=$i386OSVERSION" \
+ ppc64ONLYARG="$ppc64OPTIMIZE -mmacosx-version-min=$ppc64OSVERSION" \
+ x64ONLYARG="$x64OPTIMIZE -mmacosx-version-min=$x64OSVERSION";
 
 # cmake settings
 export CMAKE_INCLUDE_PATH="$REPOSITORYDIR/include"