Include common script for Linux builds.

text-module
Torsten Paul 2014-01-19 03:08:58 +01:00 committed by Marius Kintel
parent 067c7bd08f
commit 695c2cbdbf
2 changed files with 10 additions and 89 deletions

View File

@ -121,8 +121,12 @@ To pull the MCAD library (http://reprap.org/wiki/MCAD), do the following:
Prerequisites:
* XCode, including XCode command-line tools (install from XCode Preferences).
* [CMake](http://cmake.org) and [pkg-config](http://www.freedesktop.org/wiki/Software/pkg-config/),
both can be installed manually or through MacPorts/homebrew.
Prerequisites that can be installed through MacPorts/homebrew:
* [CMake](http://cmake.org/)
* [automake](http://www.gnu.org/software/automake/)
* [pkg-config](http://www.freedesktop.org/wiki/Software/pkg-config/)
* [libtool](https://www.gnu.org/software/libtool/)
Then after you've cloned this git repository, run the script that sets up the
environment variables.

View File

@ -515,90 +515,6 @@ build_opencsg()
cd $BASEDIR
}
build_fontconfig()
{
version=$1
if [ -e $DEPLOYDIR/include/fontconfig ]; then
echo "fontconfig already installed. not building"
return
fi
echo "Building fontconfig $version..."
cd "$BASEDIR"/src
rm -rf "fontconfig-$version"
if [ ! -f "fontconfig-$version.tar.gz" ]; then
curl --insecure -LO "http://www.freedesktop.org/software/fontconfig/release/fontconfig-$version.tar.gz"
fi
tar xzf "fontconfig-$version.tar.gz"
cd "fontconfig-$version"
./configure --prefix="$DEPLOYDIR"
make -j$NUMCPU
make install
}
build_freetype()
{
version=$1
if [ -e $DEPLOYDIR/include/freetype2 ]; then
echo "freetype already installed. not building"
return
fi
echo "Building freetype $version..."
cd "$BASEDIR"/src
rm -rf "freetype-$version"
if [ ! -f "freetype-$version.tar.gz" ]; then
curl --insecure -LO "http://download.savannah.gnu.org/releases/freetype/freetype-$version.tar.gz"
fi
tar xzf "freetype-$version.tar.gz"
cd "freetype-$version"
./configure --prefix="$DEPLOYDIR"
make -j$NUMCPU
make install
}
build_ragel()
{
version=$1
if [ -f $DEPLOYDIR/bin/ragel ]; then
echo "ragel already installed. not building"
return
fi
echo "Building ragel $version..."
cd "$BASEDIR"/src
rm -rf "ragel-$version"
if [ ! -f "ragel-$version.tar.gz" ]; then
curl --insecure -LO "http://www.complang.org/ragel/ragel-$version.tar.gz"
fi
tar xzf "ragel-$version.tar.gz"
cd "ragel-$version"
./configure --prefix="$DEPLOYDIR"
make -j$NUMCPU
make install
}
build_harfbuzz()
{
version=$1
if [ -e $DEPLOYDIR/include/harfbuzz ]; then
echo "harfbuzz already installed. not building"
return
fi
echo "Building harfbuzz $version..."
cd "$BASEDIR"/src
rm -rf "harfbuzz-$version"
if [ ! -f "harfbuzz-$version.tar.gz" ]; then
curl --insecure -LO "http://cgit.freedesktop.org/harfbuzz/snapshot/harfbuzz-$version.tar.gz"
fi
tar xzf "harfbuzz-$version.tar.gz"
cd "harfbuzz-$version"
./autogen.sh --prefix="$DEPLOYDIR" --with-glib=yes --with-freetype=yes --with-gobject=no --with-cairo=no --with-icu=no
make -j$NUMCPU
make install
}
build_eigen()
{
version=$1
@ -652,10 +568,11 @@ else
fi
. $OPENSCAD_SCRIPTDIR/setenv-unibuild.sh # '.' is equivalent to 'source'
. $OPENSCAD_SCRIPTDIR/common-build-dependencies.sh
SRCDIR=$BASEDIR/src
if [ ! $NUMCPU ]; then
echo "Note: The NUMCPU environment variable can be set for paralell builds"
echo "Note: The NUMCPU environment variable can be set for parallel builds"
NUMCPU=1
fi
@ -731,9 +648,9 @@ build_glew 1.9.0
build_opencsg 1.3.2
build_gettext 0.18.3.1
build_glib2 2.38.2
build_fontconfig 2.11.0
build_freetype 2.5.0.1
build_fontconfig 2.11.0
build_ragel 6.8
build_harfbuzz 0.9.23
build_harfbuzz 0.9.23 --with-glib=yes
echo "OpenSCAD dependencies built and installed to " $BASEDIR