echo"ERROR:\nYour Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details.">&2
if!test-e /Developer/SDKs;then
error "Your Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details.">&2
exit 1
fi
}
...
...
@@ -69,7 +69,7 @@ ensure_macosx_sdk_presence()
DISTRO=
BUILDDIR=.
while getopts “ht:d:” OPTION
while getopts “ht:d:b:i:” OPTION
do
case$OPTIONin
h)
...
...
@@ -82,6 +82,12 @@ do
d)
DISTRO=$OPTARG
;;
b)
BUILDDIR=$OPTARG
;;
i)
PREFIX=$OPTARG
;;
?)
usage
exit
...
...
@@ -92,10 +98,35 @@ done
BUILD=`gcc -dumpmachine`
if test"x$TARGET"="x";then
info "No target specified, using '$BUILD'"
TARGET="$BUILD"
info "No target specified, using '$TARGET'"
fi
if test"x$PREFIX"="x";then
PREFIX="`pwd`/hosts/$TARGET"
info "No install dir specified, using '$PREFIX'"
fi
# Make sure prefix is absolute and existing
mkdir-p"${PREFIX}"
PREFIX=`cd"${PREFIX}"&&pwd`
#
# Set up build dir
#
mkdir-p"${BUILDDIR}"
# Install build dir makefile
ln-sf"`pwd`/contrib.mak""${BUILDDIR}/Makefile"
# Create the 'build-src' folder to build from source