2005-12-22 02:33:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2006-02-18 05:49:24 +00:00
|
|
|
# Berkeley Open Infrastructure for Network Computing
|
|
|
|
# http://boinc.berkeley.edu
|
|
|
|
# Copyright (C) 2005 University of California
|
|
|
|
#
|
|
|
|
# This 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 2.1 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This software is distributed in the hope that it will be useful,
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# To view the GNU Lesser General Public License visit
|
|
|
|
# http://www.gnu.org/copyleft/lesser.html
|
|
|
|
# or write to the Free Software Foundation, Inc.,
|
2007-10-09 11:35:47 +00:00
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
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:
|
2008-01-29 11:18:45 +00:00
|
|
|
# curl-7.18.0 with c-ares-1.5.1, jpeg-6b and wxMac-2.8.7
|
2005-12-22 02:33:59 +00:00
|
|
|
#
|
2006-07-22 09:30:34 +00:00
|
|
|
# by Charlie Fenton 7/21/06
|
2007-10-27 11:16:38 +00:00
|
|
|
# Bug fix for wxMac-2.6.3 7/26/07
|
2008-02-27 12:01:55 +00:00
|
|
|
# Updated for curl-7.18.0, c-ares-1.5.1 and wxMac-2.8.7 2/27/08
|
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
|
|
|
|
|
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 "----------------------------------"
|
2008-01-29 11:18:45 +00:00
|
|
|
echo "------- BUILD C-ARES-1.5.1 -------"
|
2005-12-22 02:33:59 +00:00
|
|
|
echo "----------------------------------"
|
|
|
|
echo ""
|
|
|
|
|
2008-02-27 12:01:55 +00:00
|
|
|
cd ../../c-ares-1.5.1/
|
2008-01-29 11:18:45 +00:00
|
|
|
if [ $? -ne 0 ]; then return 1; fi
|
|
|
|
source "${SCRIPT_DIR}/buildc-ares.sh" ${doclean}
|
|
|
|
if [ $? -ne 0 ]; then return 1; fi
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo "------- BUILD CURL-7.18.0 --------"
|
|
|
|
echo "----------------------------------"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
cd "${SCRIPT_DIR}"
|
2006-02-22 11:18:36 +00:00
|
|
|
|
2008-01-29 11:18:45 +00:00
|
|
|
cd ../../curl-7.18.0/
|
2006-07-22 03:35:48 +00:00
|
|
|
if [ $? -ne 0 ]; then return 1; fi
|
2006-12-19 09:52:02 +00:00
|
|
|
source "${SCRIPT_DIR}/buildcurl.sh" ${doclean}
|
2006-07-22 03:35:48 +00:00
|
|
|
if [ $? -ne 0 ]; then return 1; fi
|
2005-12-22 02:33:59 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "----------------------------------"
|
2006-02-22 11:18:36 +00:00
|
|
|
echo "--------- BUILD JPEG-6B ----------"
|
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
|
|
|
|
2006-02-22 11:18:36 +00:00
|
|
|
cd ../../jpeg-6b/
|
2006-07-22 03:35:48 +00:00
|
|
|
if [ $? -ne 0 ]; then return 1; fi
|
2006-12-19 09:52:02 +00:00
|
|
|
source "${SCRIPT_DIR}/buildjpeg.sh" ${doclean}
|
2006-07-22 03:35:48 +00:00
|
|
|
if [ $? -ne 0 ]; then return 1; fi
|
2005-12-22 02:33:59 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "----------------------------------"
|
2008-01-29 11:18:45 +00:00
|
|
|
echo "------- BUILD wxMac-2.8.7 --------"
|
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
|
|
|
|
2008-01-29 11:18:45 +00:00
|
|
|
cd ../../wxMac-2.8.7/
|
2006-07-22 03:35:48 +00:00
|
|
|
if [ $? -ne 0 ]; then return 1; fi
|
2006-12-19 09:52:02 +00:00
|
|
|
source "${SCRIPT_DIR}/buildWxMac.sh" ${doclean}
|
2006-07-22 03:35:48 +00:00
|
|
|
if [ $? -ne 0 ]; then return 1; fi
|
2005-12-22 02:33:59 +00:00
|
|
|
|
2006-02-27 08:51:05 +00:00
|
|
|
cd "${SCRIPT_DIR}"
|
|
|
|
return 0
|