# Configuration for 4 part universal build, only possible from Leopard
# Copyright (c) 2008, Ippei Ukai


# has to be the absolute path from /
myREPOSITORYDIR="/PATH2HUGIN/mac/ExternalPrograms/repository";

# number of jobs that make can use, probably same as the number of CPUs.
PROCESSNUM=$(hostinfo | grep "Processors active:" | sed 's/^.*://' | wc -w);



mkdir -p $myREPOSITORYDIR;

export \
 REPOSITORYDIR="$myREPOSITORYDIR" \
 ARCHS="ppc i386 ppc64 x86_64" \
 \
 ppcTARGET="powerpc-apple-darwin7" \
 ppcMACSDKDIR="/Developer/SDKs/MacOSX10.3.9.sdk" \
 ppcONLYARG="-mcpu=G3 -mtune=G4 -mmacosx-version-min=10.3" \
 \
 i386TARGET="i386-apple-darwin8" \
 i386MACSDKDIR="/Developer/SDKs/MacOSX10.4u.sdk" \
 i386ONLYARG="-march=prescott -mtune=pentium-m -ftree-vectorize -mmacosx-version-min=10.4" \
 \
 ppc64TARGET="powerpc64-apple-darwin9" \
 ppc64MACSDKDIR="/Developer/SDKs/MacOSX10.5.sdk" \
 ppc64ONLYARG="-mcpu=G5 -mtune=G5 -ftree-vectorize -mmacosx-version-min=10.5" \
 \
 x64TARGET="x86_64-apple-darwin9" \
 x64MACSDKDIR="/Developer/SDKs/MacOSX10.5.sdk" \
 x64ONLYARG="-march=nocona -mtune=generic -ftree-vectorize -mmacosx-version-min=10.5" \
 \
 OTHERARGs="" \
 OTHERMAKEARGs="--jobs=$PROCESSNUM";


# $Id: SetEnv-universal.txt 2238 2007-07-08 11:19:04Z ippei $