2005-12-22 02:33:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-02-21 02:42:50 +00:00
|
|
|
# This file is part of BOINC.
|
2006-02-18 05:49:24 +00:00
|
|
|
# http://boinc.berkeley.edu
|
2009-02-21 02:42:50 +00:00
|
|
|
# Copyright (C) 2008 University of California
|
2006-02-18 05:49:24 +00:00
|
|
|
#
|
2009-02-21 02:42:50 +00:00
|
|
|
# BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Lesser General Public License
|
|
|
|
# as published by the Free Software Foundation,
|
|
|
|
# either version 3 of the License, or (at your option) any later version.
|
2006-02-18 05:49:24 +00:00
|
|
|
#
|
2009-02-21 02:42:50 +00:00
|
|
|
# BOINC is distributed in the hope that it will be useful,
|
2006-02-18 05:49:24 +00:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
# See the GNU Lesser General Public License for more details.
|
|
|
|
#
|
2009-02-21 02:42:50 +00:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2006-02-18 05:49:24 +00:00
|
|
|
#
|
|
|
|
#
|
2005-12-22 02:33:59 +00:00
|
|
|
# Master script to build Universal Binary libraries needed by BOINC:
|
2012-06-26 07:54:38 +00:00
|
|
|
# curl-7.26.0 with c-ares-1.9.1, openssl-1.0.1c and wxMac-2.8.10
|
2005-12-22 02:33:59 +00:00
|
|
|
#
|
2006-07-22 09:30:34 +00:00
|
|
|
# by Charlie Fenton 7/21/06
|
2011-10-18 12:42:53 +00:00
|
|
|
# Updated 10/18/11 for OS 10.7 lion and XCode 4.2
|
2012-06-26 07:54:38 +00:00
|
|
|
# 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/26/12 for openssl-1.0.1c
|
2012-08-03 22:08:27 +00:00
|
|
|
# Updated 8/3/12 for FreeType-2.4.10 and FTGL-2.1.3~rc5
|
2005-12-22 02:33:59 +00:00
|
|
|
#
|
|
|
|
# Download these three packages and place them in a common parent
|
|
|
|
# directory with the BOINC source tree.
|
|
|
|
#
|
2006-02-27 08:51:05 +00:00
|
|
|
## In Terminal, cd to the mac_build directory of the boinc tree; for
|
|
|
|
## example:
|
2006-02-18 05:49:24 +00:00
|
|
|
## cd [path]/boinc/mac_build/
|
|
|
|
## then run this script:
|
|
|
|
## source setupForBoinc.sh [ -clean ]
|
2005-12-22 02:33:59 +00:00
|
|
|
#
|
|
|
|
# the -clean argument will force a full rebuild of everything.
|
|
|
|
#
|
|
|
|
# This script will work even if you have renamed the boinc/ directory
|
|
|
|
#
|
|
|
|
|
2006-12-19 09:52:02 +00:00
|
|
|
if [ "$1" = "-clean" ]; then
|
|
|
|
doclean="-clean"
|
|
|
|
else
|
|
|
|
doclean=""
|
|
|
|
fi
|
|
|
|
|
2012-08-03 22:08:27 +00:00
|
|
|
caresOK="NO"
|
|
|
|
curlOK="NO"
|
|
|
|
opensslOK="NO"
|
2012-07-27 12:29:16 +00:00
|
|
|
wxWidgetsOK="NO"
|
|
|
|
freetypeOK="NO"
|
|
|
|
ftglOK="NO"
|
|
|
|
|
2008-01-29 11:18:45 +00:00
|
|
|
SCRIPT_DIR=`pwd`
|
2006-12-19 09:52:02 +00:00
|
|
|
|
2005-12-22 02:33:59 +00:00
|
|
|
echo ""
|
|
|
|
echo "----------------------------------"
|
2012-06-26 07:24:07 +00:00
|
|
|
echo "------- BUILD C-ARES-1.9.1 -------"
|
2005-12-22 02:33:59 +00:00
|
|
|
echo "----------------------------------"
|
|
|
|
echo ""
|
|
|
|
|
2012-06-26 07:24:07 +00:00
|
|
|
cd ../../c-ares-1.9.1/
|
2012-08-03 22:08:27 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
source "${SCRIPT_DIR}/buildc-ares.sh" ${doclean}
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
caresOK="YES"
|
|
|
|
fi
|
|
|
|
fi
|
2008-01-29 11:18:45 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "----------------------------------"
|
2012-06-26 07:24:07 +00:00
|
|
|
echo "------- BUILD CURL-7.26.0 --------"
|
2008-01-29 11:18:45 +00:00
|
|
|
echo "----------------------------------"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
cd "${SCRIPT_DIR}"
|
2006-02-22 11:18:36 +00:00
|
|
|
|
2012-06-26 07:24:07 +00:00
|
|
|
cd ../../curl-7.26.0/
|
2012-08-03 22:08:27 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
source "${SCRIPT_DIR}/buildcurl.sh" ${doclean}
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
curlOK="YES"
|
|
|
|
fi
|
|
|
|
fi
|
2012-06-26 07:54:38 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo "----- BUILD OPENSSL-1.0.1c -------"
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
cd "${SCRIPT_DIR}"
|
|
|
|
|
|
|
|
cd ../../openssl-1.0.1c/
|
2012-08-03 22:08:27 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
source "${SCRIPT_DIR}/buildopenssl.sh" ${doclean}
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
opensslOK="YES"
|
|
|
|
fi
|
|
|
|
fi
|
2005-12-22 02:33:59 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "----------------------------------"
|
2012-07-27 12:29:16 +00:00
|
|
|
echo "------- BUILD wxMac-2.8.10 -------"
|
2005-12-22 02:33:59 +00:00
|
|
|
echo "----------------------------------"
|
|
|
|
echo ""
|
|
|
|
|
2006-02-27 08:51:05 +00:00
|
|
|
cd "${SCRIPT_DIR}"
|
2005-12-22 02:33:59 +00:00
|
|
|
|
2009-04-17 11:28:27 +00:00
|
|
|
cd ../../wxMac-2.8.10/
|
2012-07-27 12:29:16 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
source "${SCRIPT_DIR}/buildWxMac.sh" ${doclean}
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
wxWidgetsOK="YES"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo "----- BUILD FreeType-2.4.10 ------"
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo ""
|
2005-12-22 02:33:59 +00:00
|
|
|
|
2006-02-27 08:51:05 +00:00
|
|
|
cd "${SCRIPT_DIR}"
|
2012-07-27 12:29:16 +00:00
|
|
|
|
|
|
|
cd ../../freetype-2.4.10/
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
source "${SCRIPT_DIR}/buildfreetype.sh" ${doclean}
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
freetypeOK="YES"
|
|
|
|
fi
|
|
|
|
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
|
|
|
|
|
2012-08-03 22:08:27 +00:00
|
|
|
if [ "${caresOK}" = "NO" ]; then
|
|
|
|
echo ""
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo "------------ WARNING -------------"
|
|
|
|
echo "------------ -------------"
|
|
|
|
echo "-- COULD NOT BUILD C-ARES-1.9.1 --"
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${curlOK}" = "NO" ]; then
|
|
|
|
echo ""
|
|
|
|
echo "-----------------------------------"
|
|
|
|
echo "------------ WARNING --------------"
|
|
|
|
echo "------------ --------------"
|
|
|
|
echo "--- COULD NOT BUILD CURL-7.26.0 ---"
|
|
|
|
echo "-----------------------------------"
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${opensslOK}" = "NO" ]; then
|
|
|
|
echo ""
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo "------------ WARNING -------------"
|
|
|
|
echo "------------ -------------"
|
|
|
|
echo "- COULD NOT BUILD OPENSSL-1.0.1c -"
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
|
2012-07-27 13:20:10 +00:00
|
|
|
if [ "${wxWidgetsOK}" = "NO" ]; then
|
|
|
|
echo ""
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo "------------ WARNING -------------"
|
|
|
|
echo "------------ -------------"
|
|
|
|
echo "-- COULD NOT BUILD wxMac-2.8.10 --"
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${freetypeOK}" = "NO" ]; then
|
2012-07-27 12:29:16 +00:00
|
|
|
echo ""
|
|
|
|
echo "-----------------------------------"
|
|
|
|
echo "------------ WARNING --------------"
|
2012-07-27 13:20:10 +00:00
|
|
|
echo "------------ -------------"
|
|
|
|
echo "- COULD NOT BUILD FreeType-2.4.10 -"
|
|
|
|
echo "-----------------------------------"
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${ftglOK}" = "NO" ]; then
|
|
|
|
echo ""
|
2012-07-27 12:35:21 +00:00
|
|
|
echo "-----------------------------------"
|
2012-07-27 13:20:10 +00:00
|
|
|
echo "------------ WARNING --------------"
|
|
|
|
echo "------------ -------------"
|
2012-07-27 12:29:16 +00:00
|
|
|
echo "- COULD NOT BUILD FTGL-2.1.3~rc50 -"
|
|
|
|
echo "-----------------------------------"
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
cd "${SCRIPT_DIR}"
|
|
|
|
|
2006-02-27 08:51:05 +00:00
|
|
|
return 0
|