# Configuration for G3 and Panther build
# Copyright (c) 2007-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=2
PROCESSNUM=$(hostinfo | grep "Processors active:" | sed 's/^.*://' | wc -w | sed 's/[^[:digit:]]//g');



mkdir -p $myREPOSITORYDIR;

export \
 REPOSITORYDIR="$myREPOSITORYDIR" \
 ARCHS="ppc" \
 \
 ppcTARGET="powerpc-apple-darwin7" \
 ppcOSVERSION="10.3" \
 ppcMACSDKDIR="/Developer/SDKs/MacOSX10.3.9.sdk" \
 ppcOPTIMIZE="-mcpu=G3 -mtune=G3" \
 \
 OTHERARGs="" \
 OTHERMAKEARGs="--jobs=$PROCESSNUM";


# Deprecated:
export \
 ppcONLYARG="$ppcOPTIMIZE -mmacosx-version-min=$ppcOSVERSION" \


# cmake settings
export CMAKE_INCLUDE_PATH="$REPOSITORYDIR/include"
export CMAKE_LIBRARY_PATH="$REPOSITORYDIR/lib"



# $Id: SetEnv-universal.txt 1902 2007-02-04 22:27:47Z ippei $
