Skip to content

Commit

Permalink
Build Jansson 2.7 from source.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasrosdal committed Apr 21, 2015
1 parent 9ae3597 commit 31022a7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/freeciv-web-travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ mysql_pass="vagrant"
resin_version="4.0.40"
resin_url="http://www.caucho.com/download/resin-${resin_version}.tar.gz"
tornado_url="https://pypi.python.org/packages/source/t/tornado/tornado-4.1.tar.gz"
jansson_url="http://www.digip.org/jansson/releases/jansson-2.7.tar.bz2"

# Based on fresh install of Ubuntu 12.04
dependencies="maven mysql-server-5.5 openjdk-7-jdk libcurl4-openssl-dev nginx libjansson-dev subversion pngcrush libtool automake autoconf autotools-dev language-pack-en python3-setuptools libglib2.0-dev python3.2 python3.2-dev imagemagick liblzma-dev"
dependencies="maven mysql-server-5.5 openjdk-7-jdk libcurl4-openssl-dev nginx subversion pngcrush libtool automake autoconf autotools-dev language-pack-en python3-setuptools libglib2.0-dev python3.2 python3.2-dev imagemagick liblzma-dev"

## dependencies
echo "==== Installing Updates and Dependencies ===="
Expand Down Expand Up @@ -71,6 +72,14 @@ tar xvfz tornado-4.1.tar.gz
cd tornado-4.1
python3.4 setup.py install

echo "==== Fetching/Installing Jansson ===="
wget ${jansson_url}
tar xvjf jansson-2.7.tar.bz2
cd jansson-2.7
./configure
make && make install


## mysql setup
echo "==== Setting up MySQL ===="
mysqladmin -u ${mysql_user} -p${mysql_pass} create freeciv_web
Expand Down

0 comments on commit 31022a7

Please sign in to comment.