summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBrody Kenrick <user.fake@server.userfake>2013-12-11 06:53:43 (GMT)
committerBrody Kenrick <user.fake@server.userfake>2013-12-11 06:53:43 (GMT)
commit225afc966be6a99453b2ff2f77c621b7db01b12e (patch)
tree1ab08c2e9af9785941584b15f98beb4ce1547977 /scripts
parent745664f1266b3a46898c671ba17db21df19adebf (diff)
Add gettext lib for linux also
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/uni-build-dependencies.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/scripts/uni-build-dependencies.sh b/scripts/uni-build-dependencies.sh
index ba328b7..5b9e129 100755
--- a/scripts/uni-build-dependencies.sh
+++ b/scripts/uni-build-dependencies.sh
@@ -409,6 +409,24 @@ build_glew()
GLEW_DEST=$DEPLOYDIR $MAKER install
}
+build_gettext()
+{
+ version=$1
+ echo "Building gettext $version..."
+
+ 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"
@@ -428,10 +446,9 @@ curl --insecure -LO "http://ftp.gnome.org/pub/gnome/sources/glib/$maj_min_versio
tar xJf "glib-$version.tar.xz"
cd "glib-$version"
- ./configure --prefix="$DEPLOYDIR"
+ ./configure --disable-gtk-doc --disable-man --prefix="$DEPLOYDIR" CFLAGS="-I$DEPLOYDIR/include" LDFLAGS="-L$DEPLOYDIR/lib"
make -j$NUMCPU
make install
-
}
build_opencsg()
@@ -628,6 +645,7 @@ build_boost 1.53.0
build_cgal 4.0.2
build_glew 1.9.0
build_opencsg 1.3.2
+build_gettext 0.18.3.1
build_glib2 2.38.2
echo "OpenSCAD dependencies built and installed to " $BASEDIR
contact: Jan Huwald // Impressum