mirror of https://github.com/BOINC/boinc.git
Mac: create build scripts for FreeType-2.4.10 and FTGL-2.1.3-rc5 libraries
svn path=/trunk/boinc/; revision=25900
This commit is contained in:
parent
cad7de4458
commit
1aed0d60f2
|
@ -5081,8 +5081,10 @@ Charlie 26 July 2012
|
||||||
|
|
||||||
Charlie 27 July 2012
|
Charlie 27 July 2012
|
||||||
- Mac: create build scripts for FreeType-2.4.10 and FTGL-2.1.3-rc5
|
- Mac: create build scripts for FreeType-2.4.10 and FTGL-2.1.3-rc5
|
||||||
libraries.
|
libraries; eliminate extra output from wxMac build script.
|
||||||
|
|
||||||
mac_build/
|
mac_build/
|
||||||
buildfreetype.sh
|
buildfreetype.sh
|
||||||
buildFTGL.sh
|
buildFTGL.sh
|
||||||
|
buildWxMac.sh
|
||||||
|
setupforBOINC.sh
|
||||||
|
|
|
@ -33,13 +33,13 @@
|
||||||
## In Terminal, CD to the ftgl-2.1.3~rc5 directory.
|
## In Terminal, CD to the ftgl-2.1.3~rc5 directory.
|
||||||
## cd [path]/ftgl-2.1.3~rc5/
|
## cd [path]/ftgl-2.1.3~rc5/
|
||||||
## then run this script:
|
## then run this script:
|
||||||
## source [path]/buildfreetype.sh [ -clean ]
|
## source [path]/buildFTGL.sh [ -clean ]
|
||||||
##
|
##
|
||||||
## the -clean argument will force a full rebuild.
|
## the -clean argument will force a full rebuild.
|
||||||
##
|
##
|
||||||
|
|
||||||
if [ "$1" != "-clean" ]; then
|
if [ "$1" != "-clean" ]; then
|
||||||
if [ -f .libs/libftgl.a ]; then
|
if [ -f src/.libs/libftgl.a ]; then
|
||||||
echo "ftgl-2.1.3~rc5 already built"
|
echo "ftgl-2.1.3~rc5 already built"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
# by Charlie Fenton 7/21/06
|
# by Charlie Fenton 7/21/06
|
||||||
# Updated for wx-Mac 2.8.10 and Unicode 4/17/09
|
# Updated for wx-Mac 2.8.10 and Unicode 4/17/09
|
||||||
# Updated for OS 10.7 and XCode 4.1 with OS 10.4 compatibility 9/26/11
|
# Updated for OS 10.7 and XCode 4.1 with OS 10.4 compatibility 9/26/11
|
||||||
# Updated for partial OS 10.8 and XCode 4.5 compatibility 7/6/12
|
# Updated for partial OS 10.8 and XCode 4.5 compatibility 7/27/12
|
||||||
## NOTE: To run with XCode 4.5, you must first obtain a copy of the
|
## NOTE: To run with XCode 4.5, you must first obtain a copy of the
|
||||||
## MacOSX10.6.sdk and copy it into the folder:
|
## MacOSX10.6.sdk and copy it into the folder:
|
||||||
## /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
|
## /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
|
||||||
|
@ -58,7 +58,7 @@ else
|
||||||
doclean=""
|
doclean=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
xcodebuild -version -sdk macosx10.6
|
xcodebuild -version -sdk macosx10.6 > /dev/null
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
echo "ERROR: System 10.6 SDK is missing. For details, see build instructions at"
|
echo "ERROR: System 10.6 SDK is missing. For details, see build instructions at"
|
||||||
echo "boinc/mac_build/HowToBuildBOINC_XCode.rtf or http://boinc.berkeley.edu/trac/wiki/MacBuild"
|
echo "boinc/mac_build/HowToBuildBOINC_XCode.rtf or http://boinc.berkeley.edu/trac/wiki/MacBuild"
|
||||||
|
|
|
@ -92,7 +92,7 @@ export CFLAGS="-isysroot ${SDKPATH} -arch i386 -DMAC_OS_X_VERSION_MAX_ALLOWED=10
|
||||||
export SDKROOT="${SDKPATH}"
|
export SDKROOT="${SDKPATH}"
|
||||||
export MACOSX_DEPLOYMENT_TARGET=10.4
|
export MACOSX_DEPLOYMENT_TARGET=10.4
|
||||||
|
|
||||||
./configure --enable-shared=PKGS --host=i386
|
./configure --enable-shared=NO --host=i386
|
||||||
if [ $? -ne 0 ]; then return 1; fi
|
if [ $? -ne 0 ]; then return 1; fi
|
||||||
|
|
||||||
if [ "$1" = "-clean" ]; then
|
if [ "$1" = "-clean" ]; then
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
# Updated 7/6/11 for wxMac-2.8.10 and Unicode
|
# Updated 7/6/11 for wxMac-2.8.10 and Unicode
|
||||||
# Updated 6/25/12 for curl-7.26.0 and c-ares-1.9.1
|
# Updated 6/25/12 for curl-7.26.0 and c-ares-1.9.1
|
||||||
# Updated 6/26/12 for openssl-1.0.1c
|
# Updated 6/26/12 for openssl-1.0.1c
|
||||||
|
# Updated 7/27/12 for FreeType-2.4.10 and FTGL-2.1.3~rc5
|
||||||
#
|
#
|
||||||
# Download these three packages and place them in a common parent
|
# Download these three packages and place them in a common parent
|
||||||
# directory with the BOINC source tree.
|
# directory with the BOINC source tree.
|
||||||
|
@ -47,6 +48,10 @@ else
|
||||||
doclean=""
|
doclean=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
wxWidgetsOK="NO"
|
||||||
|
freetypeOK="NO"
|
||||||
|
ftglOK="NO"
|
||||||
|
|
||||||
SCRIPT_DIR=`pwd`
|
SCRIPT_DIR=`pwd`
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -88,16 +93,81 @@ if [ $? -ne 0 ]; then return 1; fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "----------------------------------"
|
echo "----------------------------------"
|
||||||
echo "------- BUILD wxMac-2.8.10 --------"
|
echo "------- BUILD wxMac-2.8.10 -------"
|
||||||
echo "----------------------------------"
|
echo "----------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
cd "${SCRIPT_DIR}"
|
cd "${SCRIPT_DIR}"
|
||||||
|
|
||||||
cd ../../wxMac-2.8.10/
|
cd ../../wxMac-2.8.10/
|
||||||
if [ $? -ne 0 ]; then return 1; fi
|
if [ $? -eq 0 ]; then
|
||||||
source "${SCRIPT_DIR}/buildWxMac.sh" ${doclean}
|
source "${SCRIPT_DIR}/buildWxMac.sh" ${doclean}
|
||||||
if [ $? -ne 0 ]; then return 1; fi
|
if [ $? -eq 0 ]; then
|
||||||
|
wxWidgetsOK="YES"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${wxWidgetsOK}" = "NO" ]; then
|
||||||
|
echo ""
|
||||||
|
echo "----------------------------------"
|
||||||
|
echo "------------ WARNING -------------"
|
||||||
|
echo "-- COULD NOT BUILD wxMac-2.8.10 --"
|
||||||
|
echo "----------------------------------"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "----------------------------------"
|
||||||
|
echo "----- BUILD FreeType-2.4.10 ------"
|
||||||
|
echo "----------------------------------"
|
||||||
|
echo ""
|
||||||
|
|
||||||
cd "${SCRIPT_DIR}"
|
cd "${SCRIPT_DIR}"
|
||||||
|
|
||||||
|
cd ../../freetype-2.4.10/
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
source "${SCRIPT_DIR}/buildfreetype.sh" ${doclean}
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
freetypeOK="YES"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${freetypeOK}" = "NO" ]; then
|
||||||
|
echo ""
|
||||||
|
echo "-----------------------------------"
|
||||||
|
echo "------------ WARNING --------------"
|
||||||
|
echo "- COULD NOT BUILD FreeType-2.4.10 -"
|
||||||
|
echo "-----------------------------------"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "----------------------------------"
|
||||||
|
echo "------ BUILD FTGL-2.1.3~rc5 ------"
|
||||||
|
echo "----------------------------------"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
cd "${SCRIPT_DIR}"
|
||||||
|
|
||||||
|
cd ../../ftgl-2.1.3~rc5/
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
source "${SCRIPT_DIR}/buildFTGL.sh" ${doclean}
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
ftglOK="YES"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "{$ftglOK}" = "NO" ]; then
|
||||||
|
echo ""
|
||||||
|
echo "-----------------------------------"
|
||||||
|
echo "------------ WARNING --------------"
|
||||||
|
echo "- COULD NOT BUILD FTGL-2.1.3~rc50 -"
|
||||||
|
echo "-----------------------------------"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
cd "${SCRIPT_DIR}"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue