diff options
| author | Marius Kintel <marius@kintel.net> | 2013-12-11 04:08:04 (GMT) | 
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2013-12-11 04:08:04 (GMT) | 
| commit | 7cb3ea77ff090e136eb4a9536a394b3766908d17 (patch) | |
| tree | 3c2ea1c7982e922d58a3076a7b998eee0ef31d10 /scripts | |
| parent | d46ce3fb8150fe01c0c07fac11ea2e9a8ed97038 (diff) | |
Build glib2 and gettext on Mac, Find macro for glib2
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/macosx-build-dependencies.sh | 34 | 
1 files changed, 24 insertions, 10 deletions
| diff --git a/scripts/macosx-build-dependencies.sh b/scripts/macosx-build-dependencies.sh index 5e26fee..b61c656 100755 --- a/scripts/macosx-build-dependencies.sh +++ b/scripts/macosx-build-dependencies.sh @@ -285,27 +285,40 @@ build_glew()    make GLEW_DEST=$DEPLOYDIR CC=$CC CFLAGS.EXTRA="-no-cpp-precomp -dynamic -fno-common -mmacosx-version-min=$MAC_OSX_VERSION_MIN $GLEW_EXTRA_FLAGS -arch x86_64" LDFLAGS.EXTRA="-mmacosx-version-min=$MAC_OSX_VERSION_MIN $GLEW_EXTRA_FLAGS -arch x86_64" STRIP= install  } -build_glib2() +build_gettext()  { -  version="$1" -  maj_min_version="${version%.*}" #Drop micro +  version=$1 +  echo "Building gettext $version..." -  if [ -e $DEPLOYDIR/lib/glib-2.0 ]; then -    echo "glib2 already installed. not building" -    return +  cd "$BASEDIR"/src +  rm -rf "gettext-$version" +  if [ ! -f "glib-$version.tar.xz" ]; then +    curl --insecure -LO "http://ftpmirror.gnu.org/gettext/gettext-$version.tar.gz"    fi +  tar xzf "gettext-$version.tar.gz" +  cd "gettext-$version" + +  ./configure --prefix="$DEPLOYDIR" +  make -j4 +  make install +} + +build_glib2() +{ +  version=$1 +  echo "Building glib2 $version..." -   echo "Building glib2 $version..."    cd "$BASEDIR"/src    rm -rf "glib-$version" +  maj_min_version="${version%.*}" #Drop micro    if [ ! -f "glib-$version.tar.xz" ]; then      curl --insecure -LO "http://ftp.gnome.org/pub/gnome/sources/glib/$maj_min_version/glib-$version.tar.xz"    fi    tar xJf "glib-$version.tar.xz"    cd "glib-$version" -  ./configure --prefix="$DEPLOYDIR" -  make -j$NUMCPU +  ./configure --disable-gtk-doc --disable-man --prefix="$DEPLOYDIR" CFLAGS="-I$DEPLOYDIR/include" LDFLAGS="-L$DEPLOYDIR/lib" +  make -j4    make install  } @@ -473,7 +486,8 @@ build_boost 1.54.0  # NB! For CGAL, also update the actual download URL in the function  build_cgal 4.3  build_glew 1.10.0 -build_glib2 2.38.1 +build_gettext 0.18.3.1 +build_glib2 2.38.2  build_opencsg 1.3.2  if $OPTION_DEPLOY; then  #  build_sparkle andymatuschak 0ed83cf9f2eeb425d4fdd141c01a29d843970c20 | 
