From 55607ea78e10832838d52fdb17cbdfe4355c3265 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 3 Jan 2013 07:42:05 +0000 Subject: Update build and install scripts to use the correct dependencies. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1428195 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/etc/Makefile.am | 4 +- sca-cpp/trunk/macos/macos-install | 112 +++++++++++++++++--------- sca-cpp/trunk/ubuntu/ubuntu-backup | 4 +- sca-cpp/trunk/ubuntu/ubuntu-backup-all | 4 +- sca-cpp/trunk/ubuntu/ubuntu-install | 98 +++++++++++----------- sca-cpp/trunk/ubuntu/ubuntu-install-all | 109 ++++++++++++------------- sca-cpp/trunk/ubuntu/ubuntu-install-nothreads | 98 +++++++++++----------- 7 files changed, 229 insertions(+), 200 deletions(-) (limited to 'sca-cpp') diff --git a/sca-cpp/trunk/etc/Makefile.am b/sca-cpp/trunk/etc/Makefile.am index c34e48d351..5a134c56ca 100644 --- a/sca-cpp/trunk/etc/Makefile.am +++ b/sca-cpp/trunk/etc/Makefile.am @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -EXTRA_DIST = svn-config svn-ignore +EXTRA_DIST = svn-config svn-ignore valgrind-apr.supp -dist_noinst_SCRIPTS = httpd-ipcrm memgrind +dist_noinst_SCRIPTS = httpd-ipcrm callgrind memgrind ios-inspector diff --git a/sca-cpp/trunk/macos/macos-install b/sca-cpp/trunk/macos/macos-install index 40eb21c35d..17fcf18fd5 100755 --- a/sca-cpp/trunk/macos/macos-install +++ b/sca-cpp/trunk/macos/macos-install @@ -16,7 +16,7 @@ # under the License. # Install a complete distribution, the required system tools and libraries, the -# runtime dependencies and the Tuscany SCA runtime on Mac OS X 10.6.7. +# runtime dependencies and the Tuscany SCA runtime on Mac OS X 10.8 / Xcode 4.4. # Display commands as they are executed set -x @@ -24,7 +24,42 @@ set -x # Build and install in the current directory build=`pwd` -# Install pkg-config +# Install autotools as they're not included in Xcode 4.4 anymore +curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.68.tar.gz +tar xzf autoconf-2.68.tar.gz +cd autoconf-2.68 +./configure --prefix=$build/automake-1.11-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build +export PATH=$PATH:$build/automake-1.11-bin + +curl -OL http://ftpmirror.gnu.org/automake/automake-1.11.tar.gz +tar xzf automake-1.11.tar.gz +cd automake-1.11 +./configure --prefix=$build/automake-1.11-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.tar.gz +tar xzf libtool-2.4.tar.gz +cd libtool-2.4 +./configure --prefix=$build/automake-1.11-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Install pkg-config as it's not included in Xcode curl -OL http://pkgconfig.freedesktop.org/releases/pkg-config-0.25.tar.gz tar xzf pkg-config-0.25.tar.gz cd pkg-config-0.25 @@ -89,10 +124,10 @@ fi cd $build # Build HTTP server -curl -OL http://archive.apache.org/dist/httpd/httpd-2.4.2.tar.gz -tar xzf httpd-2.4.2.tar.gz -cd httpd-2.4.2 -./configure --enable-ssl --enable-proxy --enable-usertrack --enable-cgi --enable-session-crypto --enable-mods-shared=most --enable-mpms-shared="prefork worker event" --with-mpm=prefork --with-apr=$build/apr-1.4.6-bin --with-apr-util=$build/apr-util-1.4.1-bin --with-pcre=$build/pcre-8.12-bin --with-expat=$build/expat-2.0.1-bin --prefix=$build/httpd-2.4.2-bin +curl -OL http://archive.apache.org/dist/httpd/httpd-2.4.3.tar.gz +tar xzf httpd-2.4.3.tar.gz +cd httpd-2.4.3 +./configure --enable-ssl --enable-proxy --enable-usertrack --enable-cgi --enable-session-crypto --enable-mods-shared=most --enable-mpms-shared="prefork worker event" --with-mpm=prefork --with-apr=$build/apr-1.4.6-bin --with-apr-util=$build/apr-util-1.4.1-bin --with-pcre=$build/pcre-8.12-bin --with-expat=$build/expat-2.0.1-bin --prefix=$build/httpd-2.4.3-bin make make install if [ "$?" != "0" ]; then @@ -137,22 +172,23 @@ fi cd $build # Build Libcurl -curl -OL http://curl.haxx.se/download/curl-7.24.0.tar.gz -tar xzf curl-7.24.0.tar.gz -cd curl-7.24.0 -./configure --enable-threaded-resolver --prefix=$build/curl-7.24.0-bin --without-libidn +curl -OL http://c-ares.haxx.se/download/c-ares-1.9.1.tar.gz +tar xzf c-ares-1.9.1.tar.gz +cd c-ares-1.9.1 +./configure --prefix=$build/c-ares-1.9.1-bin make make install if [ "$?" != "0" ]; then exit $? fi cd $build - -# Build Libxml2 -curl -OL ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.7.tar.gz -tar xzf libxml2-sources-2.7.7.tar.gz -cd libxml2-2.7.7 -./configure --prefix=$build/libxml2-2.7.7-bin +curl -OL http://curl.haxx.se/download/curl-7.28.0.tar.gz +tar xzf curl-7.28.0.tar.gz +cd curl-7.28.0 +curl -OL http://curl.haxx.se/ca/cacert.pem +mkdir -p $build/curl-7.28.0-bin/lib +cp cacert.pem $build/curl-7.28.0-bin/lib/cacert.pem +./configure --enable-ares=$build/c-ares-1.9.1-bin --with-ca-bundle=$build/curl-7.28.0-bin/lib/cacert.pem --prefix=$build/curl-7.28.0-bin make make install if [ "$?" != "0" ]; then @@ -160,31 +196,27 @@ if [ "$?" != "0" ]; then fi cd $build -# Build Mozilla Portable Runtime -curl -OL http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.8/src/nspr-4.8.8.tar.gz -tar xzf nspr-4.8.8.tar.gz -cd nspr-4.8.8/mozilla/nsprpub -./configure --prefix=$build/nspr-4.8.8-bin --enable-64bit +# Build Libxml2 +curl -OL ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.7.tar.gz +tar xzf libxml2-sources-2.7.7.tar.gz +cd libxml2-2.7.7 +./configure --prefix=$build/libxml2-2.7.7-bin make make install -install_name_tool -id $build/nspr-4.8.8-bin/lib/libnspr4.dylib $build/nspr-4.8.8-bin/lib/libnspr4.dylib -install_name_tool -id $build/nspr-4.8.8-bin/lib/libplc4.dylib $build/nspr-4.8.8-bin/lib/libplc4.dylib -install_name_tool -id $build/nspr-4.8.8-bin/lib/libplds4.dylib $build/nspr-4.8.8-bin/lib/libplds4.dylib -install_name_tool -change @executable_path/libnspr4.dylib $build/nspr-4.8.8-bin/lib/libnspr4.dylib $build/nspr-4.8.8-bin/lib/libplc4.dylib -install_name_tool -change @executable_path/libnspr4.dylib $build/nspr-4.8.8-bin/lib/libnspr4.dylib $build/nspr-4.8.8-bin/lib/libplds4.dylib if [ "$?" != "0" ]; then exit $? fi cd $build -# Build SpiderMonkey -curl -OL http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz -tar xzf js185-1.0.0.tar.gz -cd js-1.8.5/js/src -./configure --prefix=$build/js-1.8.5-bin --enable-threadsafe --with-system-nspr --with-nspr-prefix=$build/nspr-4.8.8-bin +# Build Jansson +curl -OL http://www.digip.org/jansson/releases/jansson-2.4.tar.gz +tar xzf jansson-2.4.tar.gz +cd jansson-2.4 +curl -OL http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/patches/jansson-2.4.patch +patch -p0